---
title: "Cancel tickets or close an order without a refund"
method: POST
path: "/orders/{id}/cancel"
tags: ["Orders"]
---

# Cancel tickets or close an order without a refund

`POST /orders/{id}/cancel`

## Request

- Base URL: `https://api.session.services`
- URL: `https://api.session.services/orders/{id}/cancel`
- Auth: API key in header `x-tenant-id`

## Path parameters

- `id` string, required: Unique order identifier

## Request body

- object
  - `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 `200`

OK

- object
  - `cancellation` object, required: Staff-only cancellation history, including notification preference.
    - `id` string, required: Unique order cancellation identifier
    - `request` object, required: Original request identity and selection.
      - `cancelOrder` boolean: Whether this request closes the order to further ticket issuance.
      - `idempotencyKey` string, required: Client key identifying the accepted cancellation request.
      - `ticketIds` string[]: Original ticket selection for replaying the request. Omitted to select all tickets.
    - `ticketIds` string[], required: Tickets selected for this cancellation operation.
    - `fullCancellation` boolean, required: Whether the request selected all tickets. Closing the order is controlled separately by request.cancelOrder.
    - `reason` string, required: Reason shared with the buyer.
    - `actor` object, required
      - `type` 'USER' | 'SYSTEM', required: Actor responsible for the cancellation.
      - `userId` string: Unique user identifier
      - `name` string: Actor name captured when the cancellation was requested.
    - `createdAt` string, date-time, required: Time the cancellation request was accepted.
    - `completedAt` string, date-time: Time ticket cancellation completed.
    - `status` 'PROCESSING' | 'SUCCEEDED', required: Ticket cancellation progress, independent of email delivery.
    - `retryAction` 'RESUME_CANCELLATION': Replay the original request to complete unfinished cancellation work.
    - `notification` object, required
      - `requested` boolean, required: Whether staff requested a buyer email. Delivery is tracked by the shared notification service.

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404
- `409`: 409
- `412`: 412
- `422`: 422
- `429`: 429
- `500`: 500
- `501`: 501
- `503`: 503

## Changes

- **2026-11-09** `38649d1c1ac7`: 5 breaking, 2 warning, 4 info
  - added the pattern `^ord_[0-9a-z]{26}$` to the `path` request parameter `id`
  - the `ticketIds` request property's minItems was increased to `1`
  - the `idempotencyKey` request property's minLength was increased from `0` to `1`
  - the `reason` request property's minLength was increased from `0` to `1`
  - …7 more
- **2026-11-09** `24b4e38e7054`: 4 breaking, 8 info
  - the `cancellation/reason` response property's maxLength was unset from `500` for the response status `200`
  - the `cancellation/reason` response property's minLength was decreased from `1` to `0` for the response status `200`
  - the `cancellation/completedAt` response's property format changed from `date-time` to no format for status `200`
  - the `cancellation/createdAt` response's property format changed from `date-time` to no format for status `200`
  - …8 more
- **2026-09-17** `c4279aa0cd2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/session/apis/session-services-api/changes/orders/:id/cancel/post.md)

---

[API](https://skmtc.dev/session/apis/session-services-api.md) - [All operations](https://skmtc.dev/session/apis/session-services-api/llms.txt) - [OpenAPI document](https://skmtc.dev/session/apis/session-services-api/revisions/9346dc3eea56?raw)
