CreateSalesOrderInput
Id of the customer the order is for, from the customers list.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dA UUID you generate for this order. Same effect as the Idempotency-Key header: a retry with the same key and body returns the original order.
Order date, ISO 8601. Defaults to today. Any other day needs the user who created the key to hold the back-dating permission.
2026-01-15Contact email to record on the order.
buyer@example.comContact phone number to record on the order.
+1 555 0100Your own reference for the order, such as its id in your system.
INT-0001ISO 4217 currency code of the order. Defaults to the workspace currency. A line is priced only from a price in this currency; a line with none is refused.
USDRate from the order currency to the workspace currency. Greater than zero. Worked out by the server when you leave it off for a foreign currency.
Possible values: > 0
1Warehouse the order is fulfilled from.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dDate the order is promised to the customer, ISO 8601.
Payment terms code, from the payment terms list.
NET_30Shipping method to record on the order.
Free-text notes on the order.
Free-text notes for your own team.
Instructions for the delivery.
items object[]required
The order lines.
Id of the product the variant belongs to. An empty string lets the server take it from the variant; a product that does not match the variant is refused.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dVariant id, from the products list.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dWarehouse this line ships from.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dQuantity ordered, in the unit given by uomId. Must be greater than zero.
2Unit price in the order currency. Leave it off to use the catalogue price. A price you send can be refused, depending on the workspace's pricing settings and the permissions of the user who created the key.
12.5Set to true when unitPrice deliberately differs from the catalogue price. The user who created the key may need the price-override permission.
Why the price was overridden.
Possible values: <= 500 characters
Tax rate percent for the line, used in place of the product's configured tax.
10Line discount, from 0 to 100 percent.
Possible values: >= 0 and <= 100
0Notes on the line.
Id of the unit of measure the quantity is in, from the units list.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dTax group to use for the line, in place of the product's configured tax.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dShipping charge in the order currency. Defaults to 0.
0Order-level discount amount in the order currency. Defaults to 0.
Possible values: >= 0
0Id of a discount scheme to apply to the order.
9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6dWhether line prices already include tax (INCLUSIVE) or tax is added on top (EXCLUSIVE).
Possible values: [INCLUSIVE, EXCLUSIVE]
billingAddress object
Billing address for the order.
Street address, line 1.
1 Example StreetStreet address, line 2.
City.
ExamplevilleState or province.
Example StatePostal code.
12345Country.
ExamplelandId of the saved address this was copied from. Kept for reference only.
Short label for the address, kept for reference only.
Kind of address, such as BILLING or SHIPPING. Kept for reference only.
shippingAddress object
Shipping address for the order.
Street address, line 1.
1 Example StreetStreet address, line 2.
City.
ExamplevilleState or province.
Example StatePostal code.
12345Country.
ExamplelandId of the saved address this was copied from. Kept for reference only.
Short label for the address, kept for reference only.
Kind of address, such as BILLING or SHIPPING. Kept for reference only.
Status the order starts in. DRAFT reserves no stock. AWAITING_PAYMENT also reserves none; use it for an order that waits for payment before it is confirmed. CONFIRMED confirms the order and reserves stock, and is refused if the customer's credit limit does not allow it or, when the workspace does not allow negative stock, stock does not cover it. Defaults to DRAFT.
Possible values: [DRAFT, AWAITING_PAYMENT, CONFIRMED]
The customer's own purchase order number.
Possible values: <= 100 characters
PO-12345{
"customerId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"idempotencyKey": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"orderDate": "2026-01-15",
"customerEmail": "buyer@example.com",
"customerMobile": "+1 555 0100",
"reference": "INT-0001",
"currency": "USD",
"exchangeRate": 1,
"warehouseId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"promisedDate": "2024-07-29T15:51:28.071Z",
"paymentTerms": "NET_30",
"shippingMethod": "string",
"notes": "string",
"internalNotes": "string",
"deliveryInstructions": "string",
"items": [
{
"productId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"variantId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"warehouseId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"quantity": 2,
"unitPrice": 12.5,
"priceOverride": true,
"overrideReason": "string",
"taxRate": 10,
"discountPercent": 0,
"notes": "string",
"uomId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"taxGroupId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d"
}
],
"shippingAmount": 0,
"discountAmount": 0,
"discountSchemeId": "9d2f6b1c-8e47-4a30-b5c2-0e1f3a4b5c6d",
"taxCalculationMethod": "INCLUSIVE",
"billingAddress": {
"street1": "1 Example Street",
"street2": "string",
"city": "Exampleville",
"state": "Example State",
"postalCode": "12345",
"country": "Exampleland",
"id": "string",
"label": "string",
"type": "string"
},
"shippingAddress": {
"street1": "1 Example Street",
"street2": "string",
"city": "Exampleville",
"state": "Example State",
"postalCode": "12345",
"country": "Exampleland",
"id": "string",
"label": "string",
"type": "string"
},
"status": "DRAFT",
"customerPoNumber": "PO-12345"
}