Skip to content

Travelyaari Book Seats API

sharathn92 edited this page Oct 31, 2017 · 7 revisions

1.6 Book Seats

Intent

book_seats

Request Params Description

KEYWORD DESCRIPTION
HOLD_ID Travel yaari ID for holding seats

Payload

{
  "HoldId": $HOLD_ID
}

Response Params Description

KEY DESCRIPTION
$HOLD_ID Travelyaari ID for booking to hold seat
$TOTAL_FARE Total fare of journey
$TICKET_NO Ticket number for the journey
$PNR_NO PNR number for the journey

Response Body

{
        "HoldId": $HOLD_ID,
        "TotalFare": $TOTAL_FARE,
        "TicketNo": “$TICKET_NO”,
        "PNRNo": “$PNR_NO”
}

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 holdId is missing Hold Id is missing.
Clone this wiki locally