Skip to content

EventsHIgh Event Ticket Price

Akshay Tiwari edited this page Jan 15, 2018 · 5 revisions

1.3 Fetch Ticket Price

Intent

ticket_price

Request Params Description

KEYWORD DESCRIPTION
CITY city name to get list of events
EVENT_ID Events Id for the event
OCCURENCE_ID Occurence Id from the selected occurence (Optional, only required when multiple occurrences present in the event )

Payload

{
  	"city" : "$CITY",
	"event_id": "$EVENT_ID",
        "occurrence_id": $OCCURENCE_ID
}

Response Params Description

KEY DESCRIPTION
EVENT_ID EventsHigh ID for an event
TITLE Event Title
PRICES Price object which has id, type, price etc
PRICES.TICKET_ID EventsHigh Id for a ticket
PRICES.TICKET_TYPE Name of the Type of ticket
PRICES.TICKET_PRICE Price of the ticket
PRICES.DISCOUNTED_PRICE Price of ticket after discount
MIN_TICKET_PRICE Minimum ticket price of the event
MAX_TICKET_PRICE Maximun ticket price of the event

Response Body

{
    "event_id": "$EVENT_ID",
    "title": "$TITLE",
    "prices": [
        {
            "ticket_id": $TICKET_ID,
            "ticket_type": "$TICKET_TYPE",
            "ticket_price": $TICKET_PRICE,
            "discounted_price": $DISCOUNTED_PRICE
        }....,
    ],
    "minTicketPrice": $MIN_TICKET_PRICE,
    "maxTicketPrice": $MAX_TICKET_PRICE
}

Error messages

Some error messages, you might get for an invalid search request. The HTTP response code in this case will be 400.

Status Error message Description
400 Please specify the city city is missing.
401 Please specify the event_id event_id is missing
402 Event not available event_id doesn't exist
403 Please specify the Occurrence Id occurrence_id not passed
404 Tickets not available Tickets don't exist for this occurence_id and/or event_id
Clone this wiki locally