menu

GetAgencyBalance

GetAgencyBalance method can be used to know the Agency Balance in TBO Account.
Service URL (REST) to be used:
http://api.tektravels.com/SharedServices/SharedData.svc/rest/GetAgencyBalance

GetAgencyBalance Request

Level

Element

Format

Comments

Mandatory/ Optional

1

ClientId

String

Client ID – ApiIntegrationNew

Mandatory

2

TokenAgencyId

String

Agency ID

Mandatory

3

TokenMemberId

String

Member ID

Mandatory

4

EndUserIp

String

IP address of the End User

Mandatory

5

TokenId

String

Token ID

Mandatory (Token Id received in authenticate response)

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)