Orders
Cancel tickets or close an order without a refund
Changed onpost/orders/{id}/cancel
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
id, string required
Unique order identifier
Request body
object required
cancelOrder, boolean
Close the order and cancel all its tickets. Omit or use false to cancel tickets while allowing replacement issuance.
ticketIds, string[]
Tickets to cancel. Omit to cancel every ticket on the order.
idempotencyKey, string required
Stable key for this cancellation. Reuse when retrying.
reason, string required
Reason shown to the buyer and included in their email when notification is enabled, 1–500 characters after trimming.
notify, boolean
Email the order buyer after cancellation.
Response
OK
object required
cancellation, object required
Staff-only cancellation history, including notification preference.
Changes
- breaking
added the pattern
^ord_[0-9a-z]{26}$to thepathrequest parameterid - breaking
the
ticketIdsrequest property's minItems was increased to1 - breaking
the
idempotencyKeyrequest property's minLength was increased from0to1
8 more changes in this revision
- breaking