Create sale fulfilment
Opens a fulfilment for a completed sale. Defaults to Awaiting dispatch.
Create the sale with POST /sales first, using salesChannel online. Then call this endpoint with the sale uuid from that response. A new fulfilment is saved with status draft, which the fulfilment screen shows as Awaiting dispatch. Calling create again for the same sale without items returns the first fulfilment. To ship a partial delivery, call create again with an items array; Tracksales opens another fulfilment for the requested quantities (within what is still unfulfilled on the sale).
Required scope: fulfilments:create
Request URL: https://api.tracksales.co/v1/sales/{uuid}/fulfilment
Path Params
Sale UUID returned by Create sale
Body Params
Shipping address. Falls back to the customer address on the sale when omitted.
Delivery zone name. Must match a Tracksales zone such as CBD & Central or Westlands–Waiyaki Way. Unknown values are ignored.
Note stored on the fulfilment, such as the storefront order number.
delivery or pickup. Defaults to the organization fulfilment type, usually delivery.
Partial line items to fulfil. Each entry needs itemId (Tracksales product id) and quantity. When omitted, all remaining sale quantities are included. When provided after a fulfilment already exists, a new fulfilment is created for those quantities only (up to what is still unfulfilled on the sale).
Responses
201Created
Fulfilment created with status draft (Awaiting dispatch).
200OK
A fulfilment already exists for this sale. The existing record is returned.
401Unauthorized
API key is missing or invalid.
403Forbidden
API key lacks the required scope.
404Not Found
Fulfilment was not found.
422Validation Error
Request validation failed.