createLegacyOrder
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsTenant-admin write; pre-0.45 placement transport, raw server Order. Provider ID fields must be paired.
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.
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
pgPaymentId and pgProvider must be provided together; numeric relationship IDs normalize to strings.
pgPaymentId?string1 <= lengthpgProvider?string^[a-z0-9][a-z0-9_-]{0,63}$orderNumber*string1 <= lengthcustomer?|numbercustomerSnapshot*shippingAddress?orderItems*array<>1 <= items <= 100totalAmount*number0 <= valueshippingAmount?number0 <= valuediscountCode?stringsource?string"web""app""manual""api""import"test?booleantags?array<>items <= 50Actual 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/orders/create' \ -H 'Content-Type: application/json' \ -d '{ "orderNumber": "string", "customerSnapshot": { "email": "user@example.com" }, "orderItems": [ { "variant": "string", "quantity": 1 } ], "totalAmount": 0}'{ "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" }}