SmakeSmake API Docs
EndpointsDraft Orders

Update Draft Order

PATCH
/draft-orders/{id}

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
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      }    ]  }'
{}