01.software Docs

updateLegacyOrder

Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.

All HTTP operations
POST
/api/orders/update

Tenant-admin write; server-derived financial states are rejected with 422, not accepted operator targets.

Authorization

bearerAuth
headerAuthorizationBearer <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.

Request Body

application/json
  1. body
orderNumber*string
Length1 <= length
status*string
Value in"pending""paid""canceled""preparing""shipped""delivered""confirmed"

Response Body

Actual shaped success body

application/json
  1. 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*string
createdAt?string
updatedAt?string
orderNumber?string
status?string
financialStatus?string
totalAmount?number|null
currency?string|null
customerSnapshot?
shippingAddress?
[key: string]?any

Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.

Example Request
curl -X POST 'https://api.01.software/api/orders/update' \  -H 'Content-Type: application/json' \  -d '{  "orderNumber": "string",  "status": "pending"}'
Example Response
{  "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"  }}