menu

BUS BLOCK

This API method is used to tentatively book (block) a ticket. This tentative ticket will be blocked for a specified time and can be confirmed within specified time limit.

Once user gives all the requested details along with the seat numbers and boarding point, client calls the block method to book the seats tentatively. If the specified seats are still available from supplier side, then system blocks them tentatively. These seats are blocked for some specified time (5 to 8 Min) and this value is returned in the tentative booking confirmation. If there is no confirmation call (next step) from the client before that time, the system will unblock the seats.

Key Points: Few points to remember before calling the block method

  • In case of multiple passenger ticket all passenger details like Name, Email, Gender, Phone no, Age, Address are mandatory
  • Address is mandatory only for lead guest
  • ID type is mandatory or not will be define by the IsTypeRequired node of search response. If value of this node is true, then ID-type is mandatory and need to pass in book
  • This method should be called after taking guest details from the client, so that in case of any price change a proper intimation can be provided
  • In case of Price change, you will get new price in the BlockBus response with

IsPriceChanged node set as true.

Service URL (REST) to be used:

https://BusBE.tektravels.com/Busservice.svc/rest/Block

Bus Block Request

Level

Parameter

Data Type

Description

Mandatory

1

EndUserIp

String

IP Address of the end user

Yes

2

TokenId

String

Authenticate method give Token ID. Token Id to be echoed back in further requests. For more details of Token id please check

authenticate method

Yes

4

TraceId

String

Unique identifier for identifying every unique search Required for audit

purpose

Yes

5

ResultIndex

Integer

Result Index

Yes

6

BoardingPointId

Integer

Id of the boarding point selected (e.g. 43289)

Yes

7

DroppingPointId

Integer

Id of the dropping point selected (e.g. 43281)

Yes

8

Passenger []

Array

Array of passenger details

like name, email, Gender etc

Yes

8.1

Title

Enumeration

Title of passenger

Yes

8.1.1

FirstName

String

First name of passenger

Yes

8.1.2

LastName

String

Last name of passenger

Yes

8.1.3

Email

String

Email address of passenger

Yes

8.1.4

Phoneno

Integer

Phone no of passenger

Yes

8.1.5

Gender

Enumeration

Gender of passenger Possible values Male = 1, Female = 2

Yes

8.1.6

IdType

Enumeration

Id proof type

Possible values Pan no, Voterid card, Passport

Yes

8.1.7

IdNumber

String

Id proof number

Yes

8.1.8

Address

String

Address of the passenger (Address is mandatory only for the lead guest)

Yes

8.1.9

Age

Integer

Age of the passenger

Yes

8.2

Seat

Array

Array of seat details seat name, seat no

Yes

8.2.1

SeatIndex

Integer

SeatIndex (e.g. 9)

Yes

8.3

Price

Array

 

Yes

8.3.1

CurrencyCode

String

Currency in which minimum bus price is returned

Yes

8.3.2

BasePrice

Decimal

Base price of bus

Yes

8.3.3

Tax

Decimal

Tax applicable on bus price

Yes

8.3.4

OtherCharges

Decimal

Other charges applicable on bus price

Yes

8.3.5

Discount

Decimal

Discount applicable on bus price

Yes

8.3.6

PublishedPrice

Decimal

This price would be different only if Bus Price is on PUBLISHED. In case of NET, Published Price would be

same as Offered Price)

Yes

8.3.7

PublishedPriceRoundedOff

Decimal

This price is for display purpose onl

Yes

8.3.8

OfferedPrice

Decimal

Offered Price of the Bus

Yes

8.3.9

OfferedPriceRoundedOff

Decimal

Offered Price (rounded off) of the Bus

Yes

8.3.10

AgentCommission

Decimal

TBO will part this amount if bus price is on Published

Yes

8.3.11

AgentMarkUp

Decimal

Agent will earn this amount if

Bus markup is set from backend

Yes

8.3.12

ServiceTax

Decimal

Service tax applicable for the bus

Yes

8.3.13

TDS

Decimal

TDS applicable on Commission Earned.

This would be deducted only

when commission is parted to the agent

Yes

8.4

GST

Decimal

Define the CGST and IGST rate and amount applicable on the bus price

Yes

8.4.1

CGSTAmount

Decimal

CGST amount

Yes

8.4.2

CGSTRate

Decimal

Rate of CGST

Yes

8.4.3

CessAmount

Decimal

Cess amount

Yes

8.4.4

CessRate

Decimal

Rate of cess

Yes

8.4.5

IGSTAmount

Decimal

IGST amount

Yes

8.4.6

IGSTRate

Decimal

Rate of IGST

Yes

8.4.7

SGSTAmount

Decimal

SGST S amount

Yes

8.4.8

SGSTRate

Decimal

Rate of SGST

Yes

8.4.9

TaxableAmount

Decimal

Total taxable amount

Yes

Bus Block Response

Level

Parameter

Data Type

Description

Mandatory

1

ResponseStatus

Enumeration

Define the status of response whether its successful, failed or Not set

Successful = 1, Failed = 2)

Yes

2

Error

Object

 

Yes

2.1

ErrorCode

String

Code corresponding to the Error

Yes

2.2

ErrorMessage

String

Contain error description corresponding to ErrorCode. Error Message would be blank

in case ErrorCode=0

Yes

3

TraceId

String

Unique identifier for identifying every unique search Required for audit

purpose

Yes

4

BoardingPointdetails[]

Array

 

Yes

4.1

CityPointAddress

String

Address of selected Boarding point (e.g., Baramunda Bus Terminus)

Yes

4.2

CityPointContactNumber

Integer

Contact details of bus operator (e.g., 9437136588)

Yes

4.3

CityPointIndex

Integer

Id of the boarding point (e.g. 43289)

Yes

4.4

CityPointLandmark

String

Landmark of boarding point

Yes

4.5

CityPointLocation

String

Name of the boarding point location

Yes

4.6

CityPointName

String

Name of the boarding point (e.g., Baramunda Bus Terminus)

Yes

4.7

CityPointTime

String

Time of boarding at this location. (e,g, 1215)

Yes

5.

DropingPointdetails

Object

Dropping point details

Yes

5.1

CityPointIndex

Integer

Name of the dropping point (e.g., Baripada Bus Stand)

Yes

5.2

CityPointLocation

String

Name of the dropping point location at destination (e.g. Baripada Bus Stand)

Yes

5.3

CityPointTime

Date Time

Time of the dropping point at this location

Yes

6.

Passenger []

 

Array of passenger details

like name, email, Gender etc

Yes

6.1

Title

 

Title of passenger

Yes

6.2

Address

String

Address of the passenger

Yes

6.3

Age

Integer

Age of the passenger

Yes

6.4

Email

String

Email address of passenger

Yes

6.5

FirstName

String

First name of passenger

Yes

6.6

Gender

String

Define the gender of passenger

Male = 1, Female = 2

Yes

6.7

IDNumber

 

Id proof number

Yes

6.8

IDType

Enumeration

Id proof type

Yes

6.9

LastName

String

Last name of passenger

Yes

6.11

PhoneNo

Integer

Phone no of passenger

Yes

7

Seat

Object

 

Yes

7.1

IsLadiesSeat

Boolean

Define Seats reserved for ladies’ possible values are True or False

Yes

7.2

IsMalesSeat

Boolean

Seats reserved for males’

possible values are True or False

Yes

7.3

IsUpper

Boolean

 

Yes

7.4

RowNo

Integer

Define the seat row number in which row seat lies

Yes

7.5

SeatIndex

Integer

 

Yes

7.6

SeatName

String

This is seat no

Yes

7.7

SeatStatus

Boolean

Define Seat is Available or not

possible values are True or

False

Yes

7.8

SeatType

Enumeration

Define the type of seat possible value can be

seat = 1, sleeper = 2,seatCumSleeper = 3, UpperBerth = 4,LowerBerth = 5

Yes

8.

Price

Object

 

Yes

8.1

CurrencyCode

String

Currency in which minimum bus price is returned

Yes

8.2

BasePrice

Decimal

Base price of bus

Yes

8.3

Tax

Decimal

Tax applicable on bus price

Yes

8.4

OtherCharges

Decimal

Other charges applicable on bus price

Yes

8.5

Discount

Decimal

Discount applicable on bus

price

Yes

8.6

PublishedPrice

Decimal

This price would be different only if Bus Price is on PUBLISHED. In case of NET, Published Price would be

same as Offered Price)

Yes

8.7

PublishedPriceRoundedOff

Decimal

This price is for display purpose only

Yes

8.8

OfferedPrice

Decimal

Offered Price of the Bus

Yes

8.9

OfferedPriceRoundedOff

Decimal

Offered Price (rounded off) of the Bus

Yes

8.10

AgentCommission

Decimal

TBO will part this amount if

bus price is on Published

Yes

8.11

AgentMarkUp

Decimal

Agent will earn this amount if Bus mark-up is set from backend

Yes

8.12

ServiceTax

Decimal

Service tax applicable for the bus

Yes

8.13

TDS

Decimal

TDS applicable on Commission Earned.

This would be deducted only

when commission is parted to the agent

Yes

9

GST

Object

Define the CGST and IGST

rate and amount applicable on the bus price

Yes

9.1

CGSTAmount

Decimal

CGST amount

Yes

9.2

CGSTRate

Decimal

Rate of CGST

Yes

9.3

CessAmount

Decimal

Cess amount

Yes

9.4

CessRate

Decimal

Rate of cess

Yes

9.5

IGSTAmount

Decimal

IGST amount

Yes

9.6

IGSTRate

Decimal

Rate of IGST

Yes

9.7

SGSTAmount

Decimal

SGST S amount

Yes

9.8

SGSTRate

Decimal

Rate of SGST

Yes

9.9

TaxableAmount

Decimal

Total taxable amount

Yes