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

Get a notification

GET/v1/notification/{token}
Base URL: https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.br

On every status change of a charge, carnê or subscription that has a notification_url, Efí sends a POST to that URL with a single form field, notification=<token> (application/x-www-form-urlencoded). The token stays the same for the object's whole lifecycle. Call this route with it to find out what changed: the response carries the full history, in order.

If your URL doesn't answer 2xx, Efí retries up to 10 times (5, 10, 20, 40, 80, 160, 320, 640, 1280 and 52560 minutes after the failure). In Mimicr, a 2xx answer or a call to this route ends the token's pending retries.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

tokenstringrequired

Token received in the notification POST (UUID).

Example: "09027955-5e06-4ff0-a9c7-46b47b8f1b27"

Responses

200Token history.
codeintegerrequired

200.

Example: 200
dataobject[]required
Show child attributes
idintegerrequired

Sequence of the change on the token, starting at 1.

Example: 1
typestringrequired

Type of the object that changed.

chargecarnetsubscriptioncarnet_chargesubscription_charge
identifiersobjectrequired

{charge_id}, {carnet_id}, {subscription_id}, {carnet_id, charge_id} or {subscription_id, charge_id}, depending on type.

Show child attributes
charge_idinteger

Charge.

carnet_idinteger

Carnê.

subscription_idinteger

Subscription.

statusobjectrequired
Show child attributes
currentstringrequired

New status.

Example: "waiting"
previousstring | null

Previous status; null on the first event.

Example: "new"
custom_idstring | null

Your identifier.

created_atstringrequired

When it changed, YYYY-MM-DD HH:mm:ss.

valueinteger

Amount paid in cents, on payment confirmations.

received_by_bank_atstring

Date the bank received it, YYYY-MM-DD, on boleto payment confirmations.

400Unknown token: 3500010 property_does_not_exists.
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."
401Token missing, invalid, expired (600 s) or from another API: 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."