SmakeSmake API Docs
EndpointsDraft Orders

Create Draft Order

POST
/draft-orders

Creates an order in draft state without sending it to production. Use this to prepare an order — for example while a customer is still checking out — and later call Complete Draft Order to hand it over for production, or Update/Delete Draft Order to adjust or discard it first. Processing happens asynchronously; poll the returned job or use webhooks for the result.

AuthorizationBearer
AuthorizationBearer <token>

In: header

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

application/json

Request example
curl -X POST "https://example.com/draft-orders" \  -H "X-Api-Version: 2022-02-01" \  -H "Content-Type: application/json" \  -d '{    "customer": {      "email": "[email protected]"    },    "items": [      {        "quantity": 1,        "variant": {          "type": "basic",          "id": 1        }      }    ],    "shipments": [      {        "shipping_method": {          "handle": "noLabel"        }      }    ],    "shipping_address": {      "first_name": "System",      "last_name": "User",      "street1": "Example Street 1",      "zip": "10115",      "city": "Berlin",      "country_code": "DE",      "phone": "+49123456789",      "email": "[email protected]"    },    "payments": [      {        "payment_method": {          "handle": "invoice"        }      }    ]  }'
{}