Skip to content

Issue admission tokens

Request

Create tokens that authorise event staff to grant admission to the event. Tokens allow event staff to redeem tickets and admit patrons to one or more event sections. Each event has a global token that allows redemption of tickets for all sections. Additional tokens can be created, as needed, and should be issued to event staff on a one-to-one basis.

Security
SessionKey(Required scopes: administrator)
Path
eventintegerrequired

Unique identifier of the requested event

Bodyapplication/json
sectionsArray of stringsrequired

List of sections this token can redeem tickets for.

curl -i -X POST \
  'https://docs.ticketingevents.com/_mock/openapi/events/{event}/tokens' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "sections": [
      "/events/16993717817996/sections/16993964783416",
      "/events/16993717817996/sections/16993964783417"
    ]
  }'

Responses

The admission token was successfully added to the event

Bodyapplication/json
selfstring, (uri)

URI of the token resource

codestring

The code used to uniquely identify this token in the system

globalboolean

Whether or not this is a global event token

sectionsArray of strings

List of sections this token can redeem tickets for.

Response
{ "self": "/events/16993717817996/tokens/17370490770235", "code": "A0F9GG8D", "global": true, "sections": [ "/events/16993717817996/sections/16993964783416", "/events/16993717817996/sections/16993964783417" ] }