blockSeat
POST
/travel/bus/blockSeat
S.No | Attribute | Descriptions | Required |
---|---|---|---|
3 | sourceCity | Name of the source city | true |
4 | destinationCity | Name of the destination city | true |
5 | inventoryType | InventoryType value | true |
5 | routeScheduleId | routeScheduleId value | true |
5 | customerName | Name of the person whobook the ticket | true |
5 | customerLastName | Last Name of the person who book the ticket | true |
5 | customerEmail | Email id of the person who book the ticket | true |
5 | doj | Date of Journey in the yyyy-mm-dd format | true |
5 | boardingPoint | It consists of id, location, time | true |
5 | id | Boarding point id | true |
5 | location | Boarding point location | true |
5 | Time | Boarding point dispatcher time | true |
5 | customerPhone | Mobile number of the person who book the ticket | true |
5 | emergencyPhNumber | Emergency mobile number | true |
5 | CustomerAddress | Address of the person who book the ticket | true |
5 | blockSeatPaxDetails | List of BlockSeatPaxDetails member variables. It Consists of age, name, seatNbr, sex, fare, totalFareWithTaxes, ladiesSeat, lastName, mobile, title, email, idType, idNumber, nameOnId, primary, ac, sleeper. | true |
5 | Age | Passenger Age | true |
5 | name | Passenger Name | true |
5 | seatNbr | Passenger Seat Number | true |
5 | Sex | Sex(M/F) | true |
5 | Fare | Seat Fare | true |
5 | totalFareWithTaxes | Seat Fare with service tax amount | true |
5 | ladiesSeat | LadiesSeat(true/false) | true |
5 | lastName | Last name of the Passenger | true |
5 | mobile | Mobile number of the person who travel | true |
5 | Title | Title | true |
5 | Email id of the person who travel | true | |
5 | idType | Id Card Type(pan,passport,.....) | true |
5 | idNumber | Id Card Number of given Card | true |
5 | nameOnId | Name on the Id Card | true |
5 | primary | Is primary passenger (true/false) | true |
5 | Ac | Is AC bus(true/false) | true |
5 | sleeper | Is Sleeper(true/false) | true |
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/travel/bus/blockSeat' \
--header 'Token: ZKEYza2COHK0QVkcVkwUb6WeIgWiS' \
--header 'checkSum: 739f448d1cc4f5bbbd048e68ba2b8885b0f8414ed4090ad967df7d15d7cdbbae' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceCity": "Hyderabad",
"destinationCity": "Chennai",
"doj": "2020-09-21",
"routeScheduleId": "23214",
"boardingPoint": {
"id": "2224",
"location": "S.R Nagar,ABC Complex KAVERI TRAVELS OFFICE ,Ph No : 7799888678,7799888674",
"time": "10:00PM"
},
"customerName": "test",
"customerLastName": "testing",
"customerEmail": "test@gmail.com",
"customerPhone": "9999999999",
"emergencyPhNumber": "8888888888",
"customerAddress": "kphp",
"blockSeatPaxDetails": [
{
"age": "26",
"name": "test123",
"seatNbr": "3L",
"sex": "M",
"fare": 1280,
"totalFareWithTaxes": 1344,
"ladiesSeat": false,
"lastName": "test456",
"mobile": "7777777777",
"title": "Mr",
"email": "testing@gmail.com",
"idType": "PAN",
"idNumber": "AWk123232",
"nameOnId": "test",
"primary": true,
"ac": false,
"sleeper": false
}
],
"inventoryType": 0
}'
Response Response Example
{
"apiStatus": {
"message": "SUCCESS",
"success": true
},
"inventoryType": 0,
"blockTicketKey": "PNRS0S232141805",
"api_mode": "TEST"
}
Request
Header Params
Token
string
required
Example:
ZKEYza2COHK0QVkcVkwUb6WeIgWiS
checkSum
string
required
Example:
739f448d1cc4f5bbbd048e68ba2b8885b0f8414ed4090ad967df7d15d7cdbbae
Body Params application/json