menu

GetAgencyBalance

GetAgencyBalance method can be used to get realtime Balance in TBO Account.

Service URL (REST) to be used:
http://Sharedapi.tektravels.com/SharedData.svc/rest/GetAgencyBalance


GetAgencyBalance Request

Level

Element

Format

Remark

Mandatory/ Optional

1

ClientId

String

ApiIntegrationNew (Staging)
tboprod (Production)

Mandatory

2

TokenAgencyId

String

It will be received in authenticate response

Mandatory

3

TokenMemberId

String

It will be received in authenticate response

Mandatory

4

EndUserIp

String

IP address of the End User

Mandatory

5

TokenId

String

It will be received in authenticate response

Mandatory

GetAgencyBalance Response

Level

Element

Format

Comments

Mandatory/ Optional

1

Status

Enumeration

Status

Mandatory Not Set = 0 Successful = 1,Failed = 2

2

AgencyType

Enumeration

Agency Type

Mandatory Not Set = 0, Cash = 1, Credit = 2

3

CashBalance

Decimal

Cash Balance

Mandatory

4

CreditBalance

Decimal

Credit Balance

Mandatory

5

Error

Mandatory

5.1

ErrorCode

Integer

Code corresponding to the Error

Mandatory

5.2

ErrorMessage

String

Contains error message

Mandatory (Will contain error description corresponding to ErrorCode. Error Message would be blank in case ErrorCode=0)