Introduction
API Reference
- Auth
- Events
- ListRates
- Lists
- Locations
- Organizations
- Payments
- TicketRates
- Tickets
- Webhook Endpoints
Webhooks
- Introduction
- Events
Get ticket rate by slug
Get ticket rate by slug
curl --request GET \
--url https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{slug} \
--header 'X-Api-Key: <api-key>'
{
"data": {
"_id": "abcdefghi1234567890",
"organization_id": "abcdefghi1234567890",
"event_id": "abcdefghi1234567890",
"name": "General Access",
"slug": "general-access",
"valid_from": "2022-01-01T00:00:00.000Z",
"complete": false,
"type": "limited",
"show_all_prices": true,
"prices": [
{
"_id": "1643064796675",
"name": "Early Bird",
"price": 12,
"valid_until": "2022-01-01T00:00:00.000Z",
"quantity": 0,
"fee_type": "percentage",
"fee_quantity": 10,
"includes": "1 Drink",
"additional_info": "Only valid before 2:00 am."
}
],
"supplements": [
{
"_id": "1643064796675",
"label": "1 Copa",
"price": 12,
"has_fake_price": false,
"fake_price": 15
}
],
"available": true,
"current_price": {
"_id": "1643064796675",
"name": "Early Bird",
"price": 12,
"valid_until": "2022-01-01T00:00:00.000Z",
"quantity": 0,
"fee_type": "percentage",
"fee_quantity": 10,
"includes": "1 Drink",
"additional_info": "Only valid before 2:00 am."
},
"warranty": {
"enabled": true,
"percentage": 20,
"hours": 12
},
"availability": {
"sold": 10,
"available": 90
},
"min": 1,
"max": 10,
"questions": [
{
"_id": "1643064796675",
"label": "¿How did you hear about us?",
"type": "dropdown",
"required": true,
"items": [
"Instagram",
"Appear"
]
}
]
},
"success": true
}
Authorizations
Path Parameters
Ticket rate slug
"abcde12345"
Query Parameters
Event of the ticke rate
Response
Ticket rate organization unique identifier.
"abcdefghi1234567890"
Event unique identifier.
"abcdefghi1234567890"
Name of the ticket rate.
"General Access"
Name URL-friendly identifier.
"general-access"
Date when the ticket rate will be available for sale.
"2022-01-01T00:00:00.000Z"
If the ticket rate is marked as complete.
false
limited
, public
"limited"
Prices of the ticket rate.
A ticket rate can have one or multiple prices but only one can be active at a time.
Price of the ticket.
12
Date until the price will be available.
"2022-01-01T00:00:00.000Z"
Max number of tickets that can be purchased with this price. <br>NOTE: 0 means unlimited.
0
Content the price includes.
"1 Drink"
Additional info.
"Only valid before 2:00 am."
Unique identifier for the price.
"1643064796675"
Name of the price.
"Early Bird"
Type of the fee.
percentage
, fixed
"percentage"
Quantity of the fee.
10
Supplements of the ticket rate. Each supplement increases the price of the ticket.
Unique identifier for the supplement.
"1643064796675"
Label of the supplement.
"1 Copa"
Price of the supplement.
12
If the supplement has a fake price.
false
Fake price of the supplement.
15
If the ticket rate is available.
true
Minimum number of tickets that can be purchased in a single order.
1
Maximum number of tickets that can be purchased in a single order.
10
Questions of the ticket rate.
Unique identifier for the question.
"1643064796675"
Label of the question.
"¿How did you hear about us?"
text
, dropdown
"dropdown"
If the question is required.
true
Options of the question.
["Instagram", "Appear"]
Ticket rate unique identifier.
"abcdefghi1234567890"
If the ticket rate is configured to show all prices.
true
Current price available of the ticket rate.
Price of the ticket.
12
Date until the price will be available.
"2022-01-01T00:00:00.000Z"
Max number of tickets that can be purchased with this price. <br>NOTE: 0 means unlimited.
0
Content the price includes.
"1 Drink"
Additional info.
"Only valid before 2:00 am."
Unique identifier for the price.
"1643064796675"
Name of the price.
"Early Bird"
Type of the fee.
percentage
, fixed
"percentage"
Quantity of the fee.
10
curl --request GET \
--url https://channels-service-alpha.fourvenues.com/ticket-rates/by-slug/{slug} \
--header 'X-Api-Key: <api-key>'
{
"data": {
"_id": "abcdefghi1234567890",
"organization_id": "abcdefghi1234567890",
"event_id": "abcdefghi1234567890",
"name": "General Access",
"slug": "general-access",
"valid_from": "2022-01-01T00:00:00.000Z",
"complete": false,
"type": "limited",
"show_all_prices": true,
"prices": [
{
"_id": "1643064796675",
"name": "Early Bird",
"price": 12,
"valid_until": "2022-01-01T00:00:00.000Z",
"quantity": 0,
"fee_type": "percentage",
"fee_quantity": 10,
"includes": "1 Drink",
"additional_info": "Only valid before 2:00 am."
}
],
"supplements": [
{
"_id": "1643064796675",
"label": "1 Copa",
"price": 12,
"has_fake_price": false,
"fake_price": 15
}
],
"available": true,
"current_price": {
"_id": "1643064796675",
"name": "Early Bird",
"price": 12,
"valid_until": "2022-01-01T00:00:00.000Z",
"quantity": 0,
"fee_type": "percentage",
"fee_quantity": 10,
"includes": "1 Drink",
"additional_info": "Only valid before 2:00 am."
},
"warranty": {
"enabled": true,
"percentage": 20,
"hours": 12
},
"availability": {
"sold": 10,
"available": 90
},
"min": 1,
"max": 10,
"questions": [
{
"_id": "1643064796675",
"label": "¿How did you hear about us?",
"type": "dropdown",
"required": true,
"items": [
"Instagram",
"Appear"
]
}
]
},
"success": true
}