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

Parameters: list_ticket_types
NameTypeDescription
event_id string required string Event ID from list_events.

Request

cURL
curl https://cotlet.dev/api/v1/billetto/events/event_8c41d2/ticket-types \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("billetto", "list_ticket_types", {"event_id":"event_8c41d2"})
Node.js
const result = await cotlet.call('billetto', 'list_ticket_types', {"event_id":"event_8c41d2"});
CLI
cotlet call billetto list_ticket_types --data '{"event_id":"event_8c41d2"}'

Example response

JSON

{
  "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
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.