Read sales orders and create new ones.
List sales ordersReturns a page of sales orders, oldest change first, so you can page with `updatedAfter` set to the last `updatedAt` you stored. Filter by `customerId` or `status`.Create a sales orderCreates a sales order for a customer. Needs a read-write API key. Prices, tax and totals are worked out by the server: leave `unitPrice` off a line 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. The order starts as `DRAFT`, which reserves no stock, unless you send `status: CONFIRMED`, which confirms it and reserves stock. A confirmed order 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; with negative stock allowed it is confirmed and the shortfall is a backorder. Send an `Idempotency-Key` so a retry never creates a second order.Get a sales orderReturns one sales order with its lines, including shipped and invoiced quantities.