PayZuDocs

Get access token

Exchanges the credential for an access token valid for 15 minutes.

POSThttps://api.hub.payzu.com.br/api/v1/oauth/token
POST
/oauth/token

Body Params

Responses

curl -X POST "https://api.hub.payzu.com.br/api/v1/oauth/token" \  -H "Authorization: Basic {{base64(client_id:client_secret)}}" \  -H "Content-Type: application/json" \  -d '{    "grant_type": "client_credentials"  }'
{
"access_token": "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..mQ3Zy1hbVhpbXBsZQ.ZXhlbXBsbw.c2lnbmF0dXJl",
"token_type": "Bearer",
"expires_in": 900,
"scope": "PAYMENT_WRITE PAYMENT_READ STATEMENT_READ"
}