List ticket types
Ticket types of an event with price, quantity and whether an access code is needed.
GET https://cotlet.dev/api/v1/billetto/events/{event_id}/ticket-types
read
Returns each ticket type of one event with its name, price, quantity and sales period. needs_access_code is true for a ticket type hidden unless a code is entered; that switch lives in the ticket's Advanced settings in the event editor. Pass ticket_type_id to create_access_code.
Parameters
| Name | Type | Description |
|---|---|---|
| event_id string required | string | Event ID from list_events. |
Request
curl https://cotlet.dev/api/v1/billetto/events/event_8c41d2/ticket-types \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("billetto", "list_ticket_types", {"event_id":"event_8c41d2"}) const result = await cotlet.call('billetto', 'list_ticket_types', {"event_id":"event_8c41d2"}); cotlet call billetto list_ticket_types --data '{"event_id":"event_8c41d2"}' Example response
{
"event_id": "1204551",
"ticket_types": [
{
"ticket_type_id": "77120",
"name": "General admission",
"price": 25,
"quantity": 200,
"needs_access_code": false
},
{
"ticket_type_id": "77121",
"name": "Student",
"price": 15,
"quantity": 40,
"needs_access_code": false
},
{
"ticket_type_id": "77122",
"name": "Partner offer",
"price": 18,
"quantity": 30,
"needs_access_code": true
}
]
}