Skip to content

Events High Check Inventory API

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

1.2 Check Inventory

Intent

inventory_check

Request Params Description

KEYWORD DESCRIPTION
EVENTID Unique identifier for an event
TICKET_TYPE The label of Ticket Selected
PRICE The Final price of the ticket as visible to the user. If the ticket price is discounted, it should be equal to the discounted price as given in the Event JSON. Otherwise, this should be exactly same as ticket-original-price.
ORIGINAL_PRICE The actual, non-discounted price of the ticket
QUANTITY Quantity of the ticket selected. Must be non-zero.
OCCURRENCE_START_DATE The occurrence start date of the ticket

Payload

{
  	"eventID" : "$EVENTID",
        "tickets" : [
           {
              "ticket_type" : "$TICKET_TYPE"
              "price" : "$PRICE",
              "originalPrice" : "$ORIGINAL_PRICE",
              "quantity" : "$QUANTITY",
              "occurence_startDate" : "$OCCURRENCE_START_DATE"
           }...,
        ]
}

Response Params Description

KEY DESCRIPTION
OK 200 OK response code is returned.
RESPONSE Ticket Availability
TOTAL_TICKET_AMOUNT Price of the ticket

Response Body

{
    "ok": 1,
    "response": "$RESPONSE",
    "totalTicketAmount": "$TOTAL_TICKET_AMOUNT"
}

Error messages

Some error messages, you might get an invalid search request.

Status Error message Description
202 sold_out Event is sold out.
202 ticket_closed Ticketing has been closed for this event.
202 ticket_limit_exceeded Ticket selection is beyond allowed limit.
202 ticket_not_found One of more ticket(s) are not found.
202 ticket_price_invalid One or more ticket(s) has price mismatch.
202 invalid_request Request has missing information.
500 Internal Server Error.
400 Bad Request Response.
401 Please specify the eventID eventId is missing
402 Please specify the tickets tickets are missing
403 Please specify the tickets data One or more parameters in tickets are missing
Clone this wiki locally