Bus Block Seat

This API method is used to tentatively book a ticket. This tentative ticket would be blocked for a specific period of time and can be confirmed within specified time limit.

point, clients would call the block method to book the seats tentatively. If the seats requested are still available on the supplier's end, the system will temporarily reserve them. The seats are reserved for a set period of time, typically 5 to 8 minutes, and this value is returned in the tentative booking confirmation. If the client does not confirm (the next step) within this timeframe, the system will unblock the seats.

Key Points Few Points to Remember Before Calling the Block Method
  • All passengers must provide their Name, Email, Gender, Phone number, Age, and Address when purchasing a multiple passenger ticket.
  • Address is mandatory only for lead guests.
  • The requirement for the ID type will be determined by the IsTypeRequired node in the search response. If the value of this node is true, then the ID type is mandatory and needs to be passed in the book.
  • This method should be called after collecting guest details from the client, so that if there is any change in the price, a proper intimation can be provided.
  • If there is a change in price, you will be notified about the same in the BlockBus response with IsPriceChanged node set as true.

Service URL (REST) to be used: https://staging.travelxmlapi.com/V3/busservice/busrest/block_seat

Authorization Method

With this method, the sender places a username:password into the request header. The username and password are encoded with Base64, which is an encoding technique that converts the username and password into a set of 64 characters to ensure safe transmission. Here’s an example of a Basic Auth in a request header: Authorization: Basic ABCD*******************