API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Billing · Authentication

Get a token (Billing)

POST/v1/authorize
Base URL: https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.br

Issues 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/json
grant_typestringrequired

Always client_credentials.

client_credentials

Responses

200Access token.
access_tokenstringrequired

Access token (JWT).

refresh_tokenstring

Refresh token.

expires_inintegerrequired

Lifetime in seconds.

Example: 600
expire_atstring

Expiry in milliseconds since the epoch, as a string.

Example: "1792629300075"
token_typestringrequired

Bearer.

Bearer
400grant_type other than client_credentials: 3500034 validation_error.
codeintegerrequired

Numeric error code, from Efí's error table (e.g. 3500034).

Example: 3500034
errorstringrequired

Error name (e.g. validation_error, invalid_status, property_does_not_exists).

Example: "validation_error"
error_descriptionobjectrequired

Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.

Texto
Propriedade
propertystring

Invalid property.

Example: "/payment/banking_billet/customer/name"
messagestring

Error message.

Example: "O nome deve ter nome e sobrenome."
401Invalid or inactive credentials: 3500008 unauthorized.
codeintegerrequired

Numeric error code, from Efí's error table (e.g. 3500034).

Example: 3500034
errorstringrequired

Error name (e.g. validation_error, invalid_status, property_does_not_exists).

Example: "validation_error"
error_descriptionobjectrequired

Error text, or an object with the invalid property (a JSON Pointer-style path, like /items/0/value) and the message.

Texto
Propriedade
propertystring

Invalid property.

Example: "/payment/banking_billet/customer/name"
messagestring

Error message.

Example: "O nome deve ter nome e sobrenome."