Get access_token

Generate an access token to authenticate requests to the APIs Split de Pagamento and the API E-commerce Cielo.

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

The access token is required only for the following APIs:

  • APIs Split de Pagamento (Sellers Onboarding, Split Reconciliation, Physical World, and Post-Transactional Split);
  • API E-commerce Cielo.

The access token is not used in transactional requests for Split via Gateway de Pagamento. In this case, authentication is done exclusively using MerchantId and MerchantKey.

See more details in the Resource list.

APIs Split de Pagamento and API E-commerce Cielo use the OAuth 2.0 protocol for authentication. Before making calls, you must generate an access token using your credentials:

  • MerchantId: identifier in Split Payment;
  • ClientSecret: key used for authentication.

To obtain the access_token:

  1. Concatenate MerchantId and ClientSecret: MerchantId:ClientSecret;
  2. Encode the result in Base64;
  3. Send a request to the authorization server using the generated alphanumeric code.
⚠️

The access_token is valid for 20 minutes. After expiration, generate a new token.

You must send the access_token returned by the authentication API in all requests to APIs Split de Pagamento and API E-commerce Cielo as the authorization key.


Form Data
string
required
Defaults to client_credentials

client_credentials

Headers
string
required

Basic {base64}

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json