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

Release the seats of a purchase session

Requires the X-Customer-Session header. The enterprise service API key is OPTIONAL. Marks the session expired and releases in seats.io the seats held with its holdToken. Idempotent: repeating it changes nothing. It NEVER releases a token that backs a live sale (pending payment or confirmed) nor that of a converted session: those seats belong to the order. Call it when the map clock runs out. Another buyer’s session is 404.

POST/customer/purchase-sessions/{id}/release
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

dataPurchaseSessionStatusrequired
Show properties
idstringrequired
statestringrequired

live: can create the order. superseded: another tab/device replaced it. expired: the map clock ran out or it was released. converted: it already created its order (orderId).

Allowed:livesupersededexpiredconverted
seatsDeadlinestring | nullrequired
Show properties
Any of:
string
string
null
null
orderIdstring | nullrequired

Sale created with this session, if any.

Show properties
Any of:
string
string
null
null
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
429

Too many requests: rate limit exceeded.

errorobjectrequired
Show properties
codestringrequired
messagestringrequired
retryablebooleanrequired
detailsany
Try it
Server
Authorization
Parameters
Request
curl -X POST 'https://admin.appfreeticket.com/api/v1/customer/purchase-sessions/string/release' \
  -H 'Authorization: YOUR_API_KEY'
Response
{
  "data": {
    "id": "string",
    "state": "live",
    "seatsDeadline": "string",
    "orderId": "string"
  }
}