Configurando Token de acesso
Solicitação do Token de Acesso
Lembrando: Lembrando que antes é necessário configurar o certificado MTLS.
Requisição
curl --location 'https://api.pix.a27bank.com.br/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=<your_client_id>' \
--data-urlencode 'client_secret=<your_client_secret>' \
--data-urlencode 'grant_type=client_credentials' \
Resposta
{
"access_token": "eyJhbGciOi…",
"expires_in": 300,
"refresh_expires_in": 0,
"token_type": "Bearer",
"not-before-policy": 1680810673,
"scope": "profile email qrcodes"
}