Authentication

Get the access token

EnvironmentMethodEndpoint
Sandboxhttps://authsandbox.braspag.com.br/oauth2/token
Productionhttps://auth.braspag.com.br/oauth2/token

Once you have the credential, you will need to "encode" it in Base64, using the client_id:client_secret convention, and send the result in the header via the Authorization field.

Example:

  • client_id: braspagtestes
  • client_secret: 1q2w3e4r5t6y7u8i9o0p0q9w8e7r6t5y4u3i2o1p
  • String to be encoded in Base64: braspagtestes:1q2w3e4r5t6y7u8i9o0p0q9w8e7r6t5y4u3i2o1p
  • Result after encoding: YnJhc3BhZ3Rlc3RlczoxcTJ3M2U0cjV0Nnk3dThpOW8wcDBxOXc4ZTdyNnQ1eTR1M2kybzFw
Language