Follow these steps to successfully request a delivery and perform other related actions.
Authentication is based on OAuth 2.0 standard, Client Credentials grant.
In order to use the API, you must attach the access token to Authorization
header as a Bearer token.
See an example of an integration:
POST /auth-sessions
{
"grant_type": "eyJz93a...k4laUWw",
"client_id": "string",
"client_secret": "string"
}
Status Code 200
{
"access_token": "client_credentials",
"token_type": "Bearer",
"expires_in": 3600
}
Status Code 400
The server cannot or will not process the request due to something that is perceived to be your error (e.g., malformed request syntax, invalid request message). You are to modify the request before sending it again.
{
"code": "string",
"message": "string"
}
Status Code 401
Not Authorized. You are either using an expired Access token to access the data or trying to initialize Auth session with invalid data.