AccessToken is a resource that authorizes access to specific client data, such as their credit card information. To consume the methods of the Protected Card API, it is necessary to obtain the access_token in the OAuth 2.0 standard:
Environment
URL + Endpoint
Authorization
SANDBOX
https://authsandbox.braspag.com.br/oauth2/token
"Basic {base64}"
PRODUCTION
https://auth.braspag.com.br/oauth2/token
"Basic {base64}"
Concatenate ClientId and ClientSecret (ClientId:ClientSecret).
Encode the concatenation result in base64, creating a string.
Send a request to the authorization server using the alphanumeric code created (string) - see example below.
ℹ️
Request the support team to create the ClientId and ClientSecret for your store to use in both SANDBOX and PRODUCTION environments.