Request a PIS access token
Flow
- Create a Fintecture account
- Register a client application and get the credentials (i.e the
app_id
andapp_secret
) associated to it - Encode your credentials using Base64 (
Basic base64({app_id}:{app_secret})
) to generate theAuthorization
header - Request an access token using your credentials, the
pis
scope and theAuthorization
header - Extract following information from provided response body:
access_token
is to be used for endpoints' callsexpires_in
allows you to know token's duration validity
- Use
access_token
for every payment endpoint requiring Bearer - Check regularly
expires_in
and before access token's expiration, ask for a new one
Updated 8 months ago