Update a Draft Order
POST
/admin/draft-orders/{id}
Draft Orders
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/draft-orders/' \
--header 'Content-Type: application/json' \
--data-raw '{
"region_id": "string",
"email": "user@example.com",
"no_notification_order": true,
"customer_id": "string",
"country_code": "string",
"discounts": [
{
"code": "string"
}
],
"shipping_address": {
"first_name": "Arno",
"last_name": "Willms",
"phone": 16128234334802,
"company": "string",
"address_1": "14433 Kemmer Court",
"address_2": "Suite 369",
"city": "South Geoffreyview",
"province": "Kentucky",
"postal_code": 72093,
"country_code": "st",
"metadata": {
"car": "white"
}
},
"billing_address": {
"first_name": "Arno",
"last_name": "Willms",
"phone": 16128234334802,
"company": "string",
"address_1": "14433 Kemmer Court",
"address_2": "Suite 369",
"city": "South Geoffreyview",
"province": "Kentucky",
"postal_code": 72093,
"country_code": "st",
"metadata": {
"car": "white"
}
}
}'
Response Response Example
200 - Example 1
{
"draft_order": {
"id": "dorder_01G8TJFKBG38YYFQ035MSVG03C",
"display_id": 2,
"cart_id": "cart_01G8ZH853Y6TFXWPG5EYE81X63",
"cart": {},
"order_id": "order_01G8TJSYT9M6AVS5N4EMNFS1EK",
"order": {},
"canceled_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z",
"no_notification_order": false,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"status": "open",
"idempotency_key": "string",
"metadata": {
"car": "white"
}
}
}
Request
Path Params
id
string
required
Body Params application/json
Responses
Modified at 2023-10-10 11:56:36