cancelOrder
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsRequires tenant-admin policy: sk01_/pat01_ with write scope. Captured-payment cancellation and cancellation of a placed zero-total order without any payment record require sk01_ on this HTTP path (or the internal Admin Panel action). PAT admission alone does not authorize either cancellation and returns 403 role_denied. Customer JWT is denied.
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?stringReuse the same identity and request body after an uncertain result.
1 <= lengthapplication/json- body
orderNumber*stringOrder number to cancel
1 <= lengthreasonCode?stringOperator-selected cancel reason code
"other""customer""inventory""fraud""declined""staff""other"reasonDetail?stringInternal cancellation detail stored on the order
length <= 2000Successful operation
application/json- response
orderId*string1 <= lengthtransactionId*string1 <= lengthrefundedAmount*00providerRefunded*falsefalserefundPending*truetruestatus*"canceled""canceled"cancelCommitted*truetrueExamples 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/cancel' \ -H 'Content-Type: application/json' \ -d '{ "orderNumber": "string"}'{ "orderId": "string", "transactionId": "string", "refundedAmount": 0, "providerRefunded": false, "refundPending": true, "status": "canceled", "cancelCommitted": true}