API Reference
Get a notification
/v1/notification/{token}https://cobrancas.efi.mimicr.dev · provider: https://cobrancas-h.api.efipay.com.brOn 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
Token received in the notification POST (UUID).
"09027955-5e06-4ff0-a9c7-46b47b8f1b27"Responses
200Token history.
200.
200Show child attributes
Sequence of the change on the token, starting at 1.
1Type of the object that changed.
chargecarnetsubscriptioncarnet_chargesubscription_charge{charge_id}, {carnet_id}, {subscription_id}, {carnet_id, charge_id} or {subscription_id, charge_id}, depending on type.
Show child attributes
Charge.
Carnê.
Subscription.
Show child attributes
New status.
"waiting"Previous status; null on the first event.
"new"Your identifier.
When it changed, YYYY-MM-DD HH:mm:ss.
Amount paid in cents, on payment confirmations.
Date the bank received it, YYYY-MM-DD, on boleto payment confirmations.
400Unknown token: 3500010 property_does_not_exists.
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."401Token missing, invalid, expired (600 s) or from another API: 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."