TravelCaster API - Flights - Transactions list

Back to Flights home.


Authentication

To connect to the API you will need a username and a password. The API provides you with two passwords, one for the development environment and one for the production one. Depending on the password you send with your credentials, you will access one environment or the other.

Important notice: the following indications assume you have a username and password given by a TravelCaster partner. If not, please contact your TravelCaster partner and request your access.

API operations

The API gateway has the following operations:

Structure of any API message

Any gateway message (with the exception of the GetAccessToken operation) has a common structure to straighten the path for your implementation and provide you with an easy way to test it and diagnose any issues you may encounter.

Each request or response object is different, but they have these fields in common:

  • Token - the token returned in the GetAccessToken call for a username/password combo. You must include the token on each call you make to the API. The same token is returned on the response message for conversation validation purposes. See the GetAccessToken page for more information about the token.
  • TransactionID - a unique string corresponding to the resulting transaction. It has no relevant information about the response, but in case you run into any issue with the API, you have to supply it to the API support team to be able to trace and detect the issue and provide you with a solution.
  • TransactionCode - the result code for the current transaction. When a transaction had no errors, a null value will be returned. Any value different than null means something went wrong in the API. See the Transaction Codes page for a list of possible codes.
  • TransactionMessage - the result message for the current transaction. Depending on the transaction, it could provide you a more granular error description that the one from the TransactionCode by itself.

Back to Flights home.


See change history for this file
Loading...