Get all ticket classes
The "Get All Ticket Classes" API allows users to retrieve information about all ticket classes created within a specific event in their Zoho Backstage portal. Users must provide the portal_id and event_id to access this information.
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
OAuth Scope
zohobackstage.eventticket.READ
Path Parameters
- portal_id (Long Integer)
The unique identifier of the portal from which you want to retrieve ticket classes. For example, "portal_id": "19593237" specifies the portal with ID 19593237. - event_id (Long Integer)
The unique identifier of the event for which you want to retrieve ticket class details. For example, "event_id": "3000000000022" specifies the event with ID 3000000000022.
Response Structure and Field Explanations
The response provides a JSON object containing pagination details and an array of ticket class objects. Each ticket class object includes detailed information about the ticket class. Below are the fields included in the response, along with explanations:
pagination (Object)
Contains details about the pagination of the results.- total_count (Integer)
The total number of items available. For example, "total_count": "1" indicates there is 1 item. - page (Integer)
The current page number of the results. For example, "page": "1" indicates the first page. - per_page (Integer)
The number of items per page. For example, "per_page": "100" specifies that 100 items are shown per page. - total_pages (Integer)
The total number of pages available. For example, "total_pages": "1" indicates there is 1 page. - has_more_items (Boolean)
A flag indicating if there are more items available. For example, "has_more_items": "false" means no additional items are available.
- total_count (Integer)
ticket_classes (Array of Objects)
This array contains objects, each representing a ticket class.- id (Long Integer)
The unique identifier assigned to the ticket class. For example, "id": "27000000023381" identifies the ticket class with ID 27000000023381. - ticket_class_type (Integer)
The type of ticket class. Possible values include:1 - Free
2 - Paid
- ticket_class_type_string (String)
A textual representation of the ticket class type. For example, "ticket_class_type_string": "free" indicates a free ticket class. - quantity (Integer)
The total quantity of tickets available. For example, "quantity": "100" specifies that 100 tickets are available. - sold (Integer)
The total quantity of tickets sold. For example, "sold": "2" indicates that 2 tickets have been sold. - sales_start_date (String)
The date and time when ticket sales begin, in UTC format. For example, "sales_start_date": "2024-05-22T11:38:03Z" specifies the sales start date and time. - sales_end_date (String)
The date and time when ticket sales end, in UTC format. For example, "sales_end_date": "2024-06-25T11:30:00Z" specifies the sales end date and time. - hidden (Boolean)
A flag indicating whether the ticket class is hidden. For example, "hidden": "false" means the ticket class is not hidden. - minimum_buying_limit (Integer)
The minimum buying limit for the ticket. For example, "minimum_buying_limit": "1" specifies that a minimum of 1 ticket can be bought. - maximum_buying_limit (Integer)
The maximum buying limit for the ticket. For example, "maximum_buying_limit": "10" specifies that a maximum of 10 tickets can be bought. - featured (Boolean)
A flag indicating whether the ticket class is featured. For example, "featured": "false" means the ticket class is not featured. - status (Integer)
The status of the ticket class. Possible values include:0 - Active
1 - Deleted
2 - Closed
3 - Abandoned
4 - Sold Out
- status_string (String)
A textual representation of the ticket class status. For example, "status_string": "active" indicates the ticket class is active. - attend_mode (Integer)
The mode of attendance. Possible values include:0 - Both
1 - Venue
2 - Online
- attend_mode_string (String)
A textual representation of the mode of attendance. For example, "attend_mode_string": "venue" indicates the ticket class is for venue attendance. - amount (Number)
The price of the ticket. For example, "amount": "0" indicates a free ticket. - currency_code (String)
The currency code for the ticket price. For example, "currency_code": "USD" specifies that the ticket price is in USD. - language (String)
The default language of the ticket class. For example, "language": "en" specifies English. - name (String)
The name of the ticket class. For example, "name": "Free" is the name of the ticket class. - description (String)
A description of the ticket class. For example, "description": "null" indicates no description is provided. - created_by (Object)
An object containing details about the creator of the ticket class.- id (Long Integer)
The unique identifier of the creator. For example, "id": "27000000000001" identifies the creator with ID 27000000000001. - email (String)
The email of the creator. For example, "email": "sam@zoho.com" is the creator's email. - first_name (String)
The first name of the creator. For example, "first_name": "sam" is the creator's name. - company (String)
The company of the creator. For example, "company": "null" indicates no company is provided. - designation (String)
The designation of the creator. For example, "designation": "null" indicates no designation is provided.
- id (Long Integer)
- last_modified_by (Object)
An object containing details about the last modifier of the ticket class.=- id (Long Integer)
The unique identifier of the last modifier. For example, "id": "27000000000001" identifies the last modifier with ID 27000000000001. - email (String)
The email of the last modifier. For example, "email": "sam@zoho.com" is the last modifier's email. - first_name (String)
The first name of the last modifier. For example, "first_name": "sam" is the last modifier's name. - company (String)
The company of the last modifier. For example, "company": "null" indicates no company is provided. - designation (String)
The designation of the last modifier. For example, "designation": "null" indicates no designation is provided.
- id (Long Integer)
- id (Long Integer)
URL
Copied/v3/portals/{portal_id}/events/{event_id}/ticket_classesExample
Copiedhttps://zohoapis.com/backstage/v3/portals/19593237/events/3000000000022/ticket_classesSample Response
Copied{
"pagination": {
"total_count": 1,
"page": 1,
"per_page": 100,
"total_pages": 1,
"has_more_items": false
},
"ticket_classes": [
{
"id": "27000000023381",
"ticket_class_type": 1,
"ticket_class_type_string": "free",
"quantity": 100,
"sold": 2,
"sales_start_date": "2024-05-22T11:38:03Z",
"sales_end_date": "2024-06-25T11:30:00Z",
"hidden": false,
"minimum_buying_limit": 1,
"maximum_buying_limit": 10,
"featured": false,
"status": 0,
"status_string": "active",
"attend_mode": 1,
"attend_mode_string": "venue",
"amount": 0,
"currency_code": "USD",
"language": "en",
"name": "Free",
"description": null,
"created_by": {
"id": "27000000000001",
"email": "sam@zoho.com",
"first_name": "sam",
"company": null,
"designation": null
},
"last_modified_by": {
"id": "27000000000001",
"email": "sam@zoho.com",
"first_name": "sam,
"company": null,
"designation": null
}
}
]
}