API Reference
Get a token (Billing)
/v1/authorizehttps://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brIssues the Billing API access token. Send the application credentials (homologation Client_Id and Client_Secret) in Authorization: Basic base64(client_id:client_secret). The Billing API doesn't use a certificate (mTLS).
The access_token is valid for 600 seconds (expires_in); expire_at is the expiry instant in milliseconds since the epoch, as a string. Use it as Authorization: Bearer <access_token> on the other routes. This response doesn't use the {code, data} envelope.
In Mimicr, the token is a JWT signed with the sandbox Client_Secret: rotating the secret invalidates the tokens issued, and a token from another Efí API answers 401. The refresh_token is returned as at Efí, but no route accepts it.
Authorization
Public route, no token.
Body
application/jsonAlways client_credentials.
client_credentialsResponses
200Access token.
Access token (JWT).
Refresh token.
Lifetime in seconds.
600Expiry in milliseconds since the epoch, as a string.
"1792629300075"Bearer.
Bearer400grant_type other than client_credentials: 3500034 validation_error.
Numeric error code, from Efí's error table (e.g. 3500034).
3500034Error name (e.g. validation_error, invalid_status, property_does_not_exists).
"validation_error"Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.
Texto
Propriedade
Invalid property.
"/payment/banking_billet/customer/name"Error message.
"O nome deve ter nome e sobrenome."401Invalid or inactive credentials: 3500008 unauthorized.
Numeric error code, from Efí's error table (e.g. 3500034).
3500034Error name (e.g. validation_error, invalid_status, property_does_not_exists).
"validation_error"Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.
Texto
Propriedade
Invalid property.
"/payment/banking_billet/customer/name"Error message.
"O nome deve ter nome e sobrenome."