Request authentication & authorization
Learn how to authenticate and authorize requests to the Invoice API.
OAUTH2 Authentication
The authentication flow consists of two main parts:
- Receiving a Bearer token from the OAUTH2 endpoint.
- Making a call to the Invoice API using this token.
Obtaining a Bearer token
First, you will need to obtain a ClientId and ClientSecret from our account or partner manager.
Using these secrets, you will need to obtain a Bearer token:
- Create a
POSTrequest to the endpointhttps://auth.travel-data-api.bcdtravel.com/oauth2/token.
Headers
Body
After that, you will be issued an Access Bearer Token with a 1-hour lifetime.
Calling the Invoice API
In order to call the Invoice API using the token, create an Authorization header in the following format:
