menu

Authenticate

Authenticate method will return the Token ID that needs to be echoed back in every subsequent request. In case of session expiry or log outs, the authenticate method needs to be called again and the updated Token ID needs to be passed in every subsequent request.

Points To Remember for Token ID:

  • Generate single token in a day as it is valid for 24 hours.
  • Do not generate token id with every search.

  • Service URL (REST) to be used:
    https://xmloutapi.tboair.com/API/V1/Authenticate/ValidateAgency

    Authenticate Request
    Level
    Element
    Format
    Comments
    Mandatory/ Optional
    1
    BookingMode
    String
    API
    Mandatory
    2
    UserName
    String
    User name provided to the agency at registration
    Mandatory
    3
    Password
    String
    Password provided to the agency at registration(Use API Password)
    Mandatory
    4
    IPAddress
    String
    Public Server IP
    Mandatory

    Authenticate Response

    Level

    Element

    Format

    Comments

    Mandatory/ Optional

    1

    Currency

    String

    Configured currency

    Mandatory

    1.2

    LocalCurrency

    String

    Agency Preference Currency

    Mandatory

    1.3

    LocalCurrencyROE

    String

    Rate of Exchange with respect to USD

    Mandatory

    1.4

    IsSuccess

    String

    Response status

    Mandatory

    1.6

    LoginName

    String

    Login Name (user name) of

    Mandatory

    1.7

    LoginDetails

    String

    Login Details of the client

    Mandatory

    1.8

    TokenId

    String

    Token ID

    Mandatory (Token Id to be echoed back in further requests valid for 24 hrs )

    1.9

    TrackingId

    String

    TrackingId

    1.10

    Error

    Mandatory

    2

    ErrorCode

    Integer

    Code corresponding to the Error

    Mandatory

    2.1

    ErrorMessage

    String

    Contains error message

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

    Presented By: TBO Holidays