finalizeDraftOrder
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsSame handleDraftOrderComplete implementation. Tenant-admin write; optional fingerprint confirmation and optional retry key. Durable committed order identity recovers even without an HTTP key; stale drafts conflict.
bearerAuthAuthorizationBearer <token>Public integration credentials: verified opaque sk01_ secret key or pat01_ personal access token; operation policy and read/write scopes still apply. These credentials are not Customer JWTs.
id*stringDocument ID
X-Idempotency-Key?stringOptional retry identity. Preserve exact body and identity for the same operation; absence does not imply safe automatic retry.
1 <= lengthapplication/json- body
fingerprint?string^draft-order:v1:[0-9a-f]{64}$Actual shaped success body
application/json- response
Actual authenticated Payload Order document. Relationship depth and field access vary. This is server-only legacy wire, not the canonical public DTO or a browser discovery promise.
id*stringcreatedAt?stringupdatedAt?stringorderNumber?stringstatus?stringfinancialStatus?stringtotalAmount?number|nullcurrency?string|nullcustomerSnapshot?shippingAddress?[key: string]?anyExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/draft-orders/string/finalize' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "createdAt": "string", "updatedAt": "string", "orderNumber": "string", "status": "string", "financialStatus": "string", "totalAmount": 0, "currency": "string", "customerSnapshot": { "name": "string", "email": "string", "phone": "string" }, "shippingAddress": { "countryCode": "string", "regionCode": "string", "postalCode": "string", "address": "string", "detailAddress": "string", "deliveryMessage": "string", "recipientName": "string", "phone": "string" }}