Cancel an order (synchronous)
Cancels an order as a CANCELLED transition validated by the order state machine version pinned at creation. A required free-text reason plus any free-form metadata are captured on an immutable timeline event (OrderTrackingEvent — the cancellation moment is previousStatus; the server-validated reason always wins over a same-named metadata key) and echoed back in the response metadata. The transition and the event are written in a single transaction. Orders past INVOICED have no declared edge to CANCELLED and are rejected with 422. accountCode and the actor (user or service account) come from the JWT.
Path parameters
Order identifier (UUID).
Request body
Response
Order cancelled.
Changes
Changed in 2 of the 9 revisions of this API.7
- ○
added the required property
event_idto the response with the200statusresponse-required-property-added
- ○
added the required property
idto the response with the200statusresponse-required-property-added
- ○
added the required property
metadatato the response with the200statusresponse-required-property-added
- ○
added the required property
previous_statusto the response with the200statusresponse-required-property-added
- ○
added the required property
statusto the response with the200statusresponse-required-property-added
- ○
added the required property
updated_atto the response with the200statusresponse-required-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
This revision also has 36 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○