---
search:
  tags:
    - customer
    - POST
seo:
  description: >-
    Requires the X-Customer-Session header. The enterprise service API…
    Reference for the POST /customer/tickets/{id}/cancel endpoint in the
    FreeTicket B2B API.
sidebar:
  label: Cancel the buyer's own purchase (only if not yet paid)
  badge: POST
title: Cancel the buyer's own purchase (only if not yet paid)
type: openapi-operation
---
Requires the `X-Customer-Session` header. The enterprise service API key is OPTIONAL (see /customer/tickets). Only cancels PENDING sales (releases inventory and seats). A CONFIRMED sale responds 409 with code `REFUND_REQUIRED`: refunds are handled by the organizer. `{id}` accepts the sale id or its `reference`.

`POST /customer/tickets/{id}/cancel`
