CreateSalesOrderCommandRequestInput
Creates a sales order for a customer with its line items. - Request
CreateSalesOrderCommandRequestInputFields
The ID of the shipping method. Fails with a GraphQL error whose extensions.code is ShippingMethodNotFound.
The ID of the user responsible for the sales order.
The ID of the process status. Fails with a GraphQL error whose extensions.code is ProcessStatusNotFound.
The ID of the payment method. Fails with a GraphQL error whose extensions.code is PaymentMethodNotFound.
The ID of the customer. Fails with a GraphQL error whose extensions.code is CustomerNotFound.
The company that sells. Defaults to the default company; fails with a GraphQL error whose extensions.code is CompanyNotFound.
Vouchers that are sold.
How and when the sales order is to be shipped.
The address the goods are shipped to. Defaults to the billing address.
The payment terms.
Line items for items of the catalog.
Discounts such as a coupon.
Free line items.
Charges such as shipping or a payment fee. A shipping charge needs ShippingMethodId, else ShippingChargeRequiresShippingMethod.
The billing address.
A text printed on the documents.
The date of the sales order. Defaults to now.
The number of the sales order. Defaults to the next number; fails with a GraphQL error whose extensions.code is SalesOrderNumberInUse.
An internal note.
The language of the documents as BCP 47 language tag, for example de or de-AT. Language subtag in lower case, region subtag in upper case; case does not matter on input. Wawi currently holds only the two-letter language subtag. Fails with a GraphQL error whose extensions.code is LANGUAGE_NOT_ACTIVE.
The number of the sales order on the sales channel.
The order number of the customer.
The comment of the customer.
The currency as ISO 4217 code. Defaults to the currency of the customer; fails with CurrencyNotFound.
The exchange rate to the currency of the company. Defaults to the rate of the currency; 0 or less fails with CurrencyFactorNotPositive.
A temporary ID chosen by the client. It is not stored and is returned unchanged.
Suppresses the automatic workflow triggers of this call. Defaults to false when omitted.
Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.
Was this page helpful?