Orders

Cancel tickets or close an order without a refund

Changed on
post/orders/{id}/cancel

Request

  • Base URL
    https://api.session.services
  • Auth
    API 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 the path request parameter id

    • breaking

      the ticketIds request property's minItems was increased to 1

    • breaking

      the idempotencyKey request property's minLength was increased from 0 to 1

    8 more changes in this revision