4. Reading the response                  

4. Reading the response                  

PagBrasil's response will be an JSON with the following values:

Field

Description

Field

Description

access_token

Token used to authorize PagBrasil API requests

expires_in

Token validity period, in seconds

The access token has a short expiration time and must be regenerated by the backend before it expires.

CONFIDENTIAL