EndpointsDraft Orders
Update Draft Order
Updates the quantities of items on a draft order before it is completed. Each item is addressed by its order item ID or external identifier.
AuthorizationBearer
Authorization
default AuthorizationBearer <token>
In: header
Path Parameters
id*integer
Draft order ID.
Header Parameters
X-Api-Version?string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
Request example
curl -X PATCH "https://example.com/draft-orders/2" \ -H "X-Api-Version: 2022-02-01" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "id": 130, "quantity": 2 } ] }'{}Show Draft Order GET
Returns a single draft order by ID, before it has been completed and handed over to production.
Delete Draft Order DELETE
Permanently deletes a draft order that has not yet been completed. Once a draft order has been completed and handed over to production it can no longer be deleted.