Skip to main content

Get Tickets By Event ID

Introduction

The Get Tickets By Event ID API allows you to retrieve ticket details for a specific event based on the event ID. This API provides information about ticket types, ticket prices, ticket availability, and more.

Retrieve Tickets

To retrieve a ticket, you need to send an HTTP POST request to the following endpoint:

Endpoint

https://api.paydexp.com/v1/event/{id}/tickets

Authorization

Users need to include basic authentication credentials in the request headers.

Authorization: Basic {base64_encoded_username_password}

Where base64_encoded_username_password is a Base64-encoded string of your API username and password joined by a colon.

Code Examples

Below are code examples in different programming languages demonstrating how to retrieve event details using HTTP POST requests.

curl --location --request POST 'https://api.paydexp.com/api/v1/event/79/tickets' \
--header 'Authorization: ••••••'

Example of a successful response

{
"success": true,
"data": [
{
"id": 1759,
"name": "VIP Ticket",
"description": "VIP access with premium seating",
"price": 150.00,
"status": "active",
"is_sold_out": false,
"sale_start_date": "2025-11-01",
"sale_end_date": "2025-12-14"
},
{
"id": 1760,
"name": "General Admission",
"description": "Standard entry ticket",
"price": 50.00,
"status": "active",
"is_sold_out": false,
"sale_start_date": "2025-11-01",
"sale_end_date": "2025-12-14"
}
],
"message": "Tickets retrieved successfully."
}

Conclusion

The Get Tickets By Event ID API provides detailed information about tickets available for a specific event. By using this API, you can retrieve ticket details such as ticket names, prices, descriptions, quantities, and more. This information can help you manage ticket sales effectively and provide a seamless experience for event attendees.