Confirm a reviewed draft order
const url = 'https://example.com/orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/confirm';const options = { method: 'POST', headers: { cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"expectedUpdatedAt":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/confirm \ --header 'Content-Type: application/json' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token> \ --data '{ "expectedUpdatedAt": "2026-04-15T12:00:00Z" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "expectedUpdatedAt": "2026-04-15T12:00:00Z"}Responses
Section titled “Responses”Confirmed order
object
UUID v7
UUID v7
Consumer: use consumer list prices. trade: use trade prices where set. Agreed rates, customer price lists and price rules still take priority.
UUID v7
object
UUID v7
object
UUID v7
object
UUID v7
The drop that failed, while the order is open, for delivery and not back on a round. Only the full order fills it: not the items of GET /orders.
object
UUID v7
Delivery: goes on a round. collection: the customer picks it up from the yard; never planned onto a van, and comes off stock when marked collected.
UUID v7
Bottle: Bottle owns invoicing and payment. shop: the connected shop owns both, so Bottle must only fulfil the order. elsewhere: the business invoiced or took payment outside Bottle, so Bottle only fulfils the order.
object
object
object
UUID v7
On_account: billed later, nothing to collect. link: a payment link raised in the accounting system. cash: the driver takes it at the door.
object
UUID v7
UUID v7
Pence, as agreed when the order was written, and as typed.
object
UUID v7
object
UUID v7
object
object
object
UUID v7
UUID v7
object
object
UUID v7
Own_driver: the business’s own driver delivered it. delivery_partner: another company delivered it for the business.
object
UUID v7
UUID v7
object
UUID v7
UUID v7
object
object
UUID v7
UUID v7
Example
{ "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "customerId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "pricingAudience": "consumer", "deliveryAddressId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "placement": "drop", "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "round": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "status": "planned" }, "deliveredBy": { "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "failedDrop": { "reason": "nobody_in", "roundId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "status": "draft", "fulfilment": "delivery", "source": "office", "shopId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "billingOwner": "bottle", "trackingRef": "7K3M9QWXZ2", "leaveInstruction": "none", "deliveryOptionId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "surchargeAppliesTo": "all_orders", "surchargeChargeBy": "per_order", "surchargeTargetIds": [ "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" ], "paymentMethod": "on_account", "cylinderCharge": "deposit", "lines": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "productName": "19kg propane" } ], "collect": [ { "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "productName": "19kg propane" } ], "returned": [ { "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "productName": "19kg propane" } ], "availableDepositRefund": { "lines": [ { "depositProductId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "cylinderProductId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ] }, "payments": [ { "method": "cash", "cashLocation": "office" } ], "paidVia": "online", "invoice": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "number": "INV-BTL00042", "status": "sent" }, "deliveryMethod": "own_driver", "partnerDelivery": { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "partnerId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "sentVia": "email", "edited": [ "products" ] }, "deliveryCorrections": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "kind": "delivered", "lineId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ], "deliveryProofs": [ { "kind": "signature" } ], "deliveryNotes": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "orderId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ]}Owner or admin required
object
Example
{ "error": "not_found", "message": "Customer not found"}Order not found
object
Example
{ "error": "not_found", "message": "Customer not found"}Draft changed or already confirmed
object
Example
{ "error": "not_found", "message": "Customer not found"}