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)
- Mock serverhttps://docs.ticketingevents.com/_mock/openapi/events/{event}/tokens
- QA Serverhttps://qa.ticketingevents.com/v3/events/{event}/tokens
- Production Serverhttps://api.ticketingevents.com/v3/events/{event}/tokens
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"
]
}'The admission token was successfully added to the event
Response
{ "self": "/events/16993717817996/tokens/17370490770235", "code": "A0F9GG8D", "global": true, "sections": [ "/events/16993717817996/sections/16993964783416", "/events/16993717817996/sections/16993964783417" ] }