Skip to main content

Authentication

Authentication should be done with API clients, use the client_id/client_secret from the Checkout API client to get an access token (see Get token endpoint). Read more about how to set the basic auth Authorization header at wikipedia.

Request

POST https://checkout.dintero.com/v1/accounts/{ACCOUNT_ID}/auth/token Get token

Authorization: Basic base64{client_id:client_secret}
{
"grant_type": "client_credentials",
"audience": "https://api.dintero.com/v1/accounts/{ACCOUNT_ID}"
}

Response

{
"access_token": "eyJhbGci...t7P4",
"token_type": "Bearer",
"expires_in": 86400
}

Use the access_token returned from Get token as JWT Bearer Authorization when accessing the API.