Skip to content
FreeTicketDocs
Esc
↑↓navigate↵open⌘Jpreview

Cancel the buyer's own purchase (only if not yet paid)

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
Authorization
AuthorizationAPI key · headerrequired

API key prefixed with Bearer . Alternative: the x-api-key header with the raw key. Available scopes: read and write (see /.well-known/oauth-protected-resource).

or
x-api-keyAPI key · headerrequired

Raw API key (without Bearer ), alternative to Authorization.

Path parameters
idstringrequired
Header parameters
X-Workspace-Idstring

Active workspace to operate on. Optional: when omitted, the default workspace of the user who owns the key is used (pickActiveOrg).

Responses
200

OK

dataCustomerTicketCancelResultrequired
Show properties
idstringrequired
referencestringrequired
statusstringrequired
401

Missing or invalid credential.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
403

Insufficient role or resource not accessible.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
404

Resource does not exist or is out of scope.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
422

Request body/parameter validation failed.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
Try it
Server
Authorization
Parameters
Request
curl -X POST 'https://admin.appfreeticket.com/api/v1/customer/tickets/string/cancel' \
  -H 'Authorization: YOUR_API_KEY'
Response
{
  "data": {
    "id": "string",
    "reference": "string",
    "status": "string"
  }
}