ADVENTURE API
HOMESTAYS API

Bus Block Ticket

post
Bus Block Ticket

https://traveloapi.com/yourapi/bus/block_ticket
Request
Response
Path Parameters
gatkey
required
string
gatkey (provided by traveloapi) Pass gatkey with url.
Query Parameters
APIBlockTicketRequest
optional
string
sourceCity
optional
string
Name of the source city
destinationCity
optional
string
Name of the destination city
inventoryType
optional
string
InventoryType value
routeScheduleId
optional
string
routeScheduleId value
customerName
optional
string
Name of the person who book the ticket
customerLastName
optional
string
Last Name of the person who book the ticket
customerEmail
optional
string
Email id of the person who book the ticket
doj
optional
string
Date of Journey in the yyyy-mm-dd format
boardingPoint
optional
array
It consists of id, location, time
id
optional
string
Boarding point id
location
optional
string
Boarding point location
Time
optional
string
Boarding point dispatcher time
customerPhone
optional
string
Mobile number of the person who book the ticket
emergencyPhNumber
optional
string
Emergency mobile number
CustomerAddress
optional
string
Address of the person who book the ticket
blockSeatPaxDetails
optional
array
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.
optional
string
optional
string
optional
string
optional
string
dd
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
dd
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
optional
string
200: OK
{
"blockTicketKey":"TRVALOS0S2833565",
"inventoryType":0,
"apiStatus":{
"message":"SUCCESS",
"success":true
}
}
404: Not Found
{
"message": "error"
}

EXAMPLE REQUEST :

{
"sourceCity": "Hyderabad",
"destinationCity": "Bangalore",
"doj": "2014-04-11",
"routeScheduleId": "6310",
"boardingPoint": {
"id": "6",
"location": "Ameerpet,|Jeans Corner",
"time": "09:00PM"
},
"customerName": "test",
"customerLastName": "testing",
"customerEmail": "test@gmail.com",
"customerPhone": "9999999999",
"emergencyPhNumber": "8888888888",
"customerAddress": "kphp",
"blockSeatPaxDetails": [
{
"age": "26",
"name": "test123",
"seatNbr": "R9",
"sex": "M",
"fare": 425,
"totalFareWithTaxes": 456,
"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
}