API Reference
Get a token (Open Finance)
/v1/oauth/tokenhttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brExchanges the application credentials (Client_Id and Client_Secret, in HTTP Basic) for a Bearer access token valid for 3600 seconds. The token only works on the Open Finance API: each Efí API has its own authorization endpoint and scopes. At Efí the request requires the application certificate (mTLS); Mimicr has no certificate, just swap the host.
Authorization
Public route, no token.
Body
application/jsonAlways client_credentials.
client_credentialsResponses
200Access token.
JWT to send in Authorization: Bearer <token>.
Always Bearer.
BearerLifetime in seconds (3600).
3600Granted scopes, space-separated: gn.opb.participants.read, gn.opb.payment.pix.send, gn.opb.payment.pix.read, gn.opb.payment.pix.refund, gn.opb.payment.pix.cancel, gn.opb.config.write, gn.opb.config.read, gn.opb.jwr.enrollment.read, gn.opb.jwr.enrollment.write, gn.opb.jwr.payment.read, gn.opb.jwr.payment.write, gn.opb.automatic.consent.write, gn.opb.automatic.consent.read, gn.opb.automatic.payment.write, gn.opb.automatic.payment.read.
400grant_type other than client_credentials (unsupported_grant_type).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"401Invalid Client_Id or Client_Secret (invalid_client).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"