Get client access token
Client access token
This is always the first step when interacting with our API to identify the merchant/client. This operation is meant to be server to server API call, it is expected that the client call this operation from their backend.
Validation period
The generated Client Access Token will be valid for 12 hours so no need to generate a new one for every user or every time the page loads. The merchant is expected to use the same client token for the whole duration of its validity
CURL example
curl --location --request POST "'https://gateway.mondiapay.com/v1/api/oauth/token"?grant_type=client_credentials&client_id=12345&client_secret=12345\
--header 'accept: application/json'
--header ''content-type: application/x-www-form-urlencoded''
Response Example
{
" access_token ": " C12345 "
" token_type ": " bearer "
" expires_in ": " 43200 "
}