Fetch Tickets
This endpoint can be used to fetch a list of events enabled for the consumer. The response provides full details for the event including dates, times, description, images, and pricing for all possible ticket variants.
Making the Request
MethodGET
Endpoint/v2/consumer/event/
Request Parameters
None
Auth Required
Yes
Example Request
cURL
curl -X GET \
https://tbe.thuprai.com/v2/consumer/event/ \
-H 'Authorization: Bearer <your-auth-token>'
2
3
Python
import requests
url = 'https://tbe.thuprai.com/v2/consumer/event/'
headers = { 'Authorization': 'Bearer <your-auth-token>'}
response = requests.post(url, headers=headers)
print(response.text)
2
3
4
5
6
Success Response
Code : 200 OK
Content example
[
{
"id": 513,
"slug": "concert-by-night",
"title": "Event Title Goes Here",
"nepali_title": null,
"subtitle": "Studio Theatre",
"start_date": "2023-08-20",
"start_time": "17:00:00",
"date_info": "Sunday, August 20, 2023",
"time_info": "Gates Open at 4:30 PM",
"introduction": "<p>This is the introduction. Concert by Night @ Studio Theatre</p>\r\n\r\n<p>Studio Theatre, Pinglasthan, Gaushala</p>",
"organizer_text": "Studio Theatre",
"excerpt": "This is the full content, not the introduction. Concert by Night @ Studio Theatre\r\n\r\nStudio Theatre, Pinglasthan, Gaushala. This is the full content, not",
"location": "27.69960204506183,85.34265518188477",
"venue": "Studio Theatre, Pinglasthan, Gaushala",
"content": "<p>This is the full content, not the introduction. Concert by Night @ Studio Theatre</p>\r\n\r\n<p>Studio Theatre, Pinglasthan, Gaushala. This is the full content, not the introduction. Concert by Night @ Studio Theatre. This is the full content, not the introduction. Concert by Night @ Studio Theatre. This is the full content, not the introduction. Concert by Night @ Studio Theatre. This is the full content, not the introduction. Concert by Night @ Studio Theatre. This is the full content, not the introduction. Concert by Night @ Studio Theatre.</p>\r\n\r\n<ul>\r\n\t<li>a</li>\r\n\t<li>b</li>\r\n</ul>\r\n\r\n<p> </p>",
"video_embed_link": null,
"map_link": "http://maps.google.com/maps?&z=18&q=27.69960204506183+85.34265518188477&ll=27.69960204506183+85.34265518188477",
"image": "http://127.0.0.1:8000/media/__sized__/event/WhatsApp_Image_2022-08-17_at_9.36.17_AM-thumbnail-960x480-70.jpeg",
"featured_image": "http://127.0.0.1:8000/media/__sized__/event/featured_image/Hiunko_prithvi_yatra_-_drama-crop-c0-5__0-5-1200x630-70.jpg",
"cover_image": {
"detail_4xl": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-2000x400-70.jpg",
"detail_3xl": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-1500x300-70.jpg",
"detail_2xl": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-1400x280-70.jpg",
"detail_xl": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-1200x240-70.jpg",
"detail_md": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-900x180-70.jpg",
"detail_sm": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-600x120-70.jpg",
"detail_xs": "http://127.0.0.1:8000/media/__sized__/event/cover_image/Hiunko_prithvi_yatra_-_drama-thumbnail-400x80-70.jpg"
},
"instance_variants": [
{
"product_id": 2481,
"title": "Regular",
"mrp": 1000,
"selling_price": 1000,
"instance_id": 1063
}
]
}
]
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Notes
The
instance_variants
key in the response lists all possible ticket options with price. Whiletitle
denotes the ticket type, tickets are to be made available for purchase at the value described byselling_price
.Displaying values in
date_info
andtime_info
should be preferred over values instart_date
andend_date
while showing details of the event.start_date
,end_date
are made available so that the consumer can synchronize it in its database and use the values for sorting/ordering the events.