Guides
Introduction
Mimicr's Efí simulator answers on the same paths as Efí's six APIs, so you can integrate and test without depending on the homologation environment.
The Efí simulator reproduces Efí Bank's six APIs, each on its own host, as at Efí: the API Pix (with Pix Automático), the API Cobranças (boleto, card, carnês, payment links and subscriptions), Open Finance, Pagamento de contas (bill payments), Extratos (statements) and Abertura de contas (account opening). Paths, bodies, status codes, scopes and error formats are Efí's, and so are the homologation rules Efí documents.
To use it, swap the host and use the Client_Id and Client_Secret of your Mimicr sandbox. The rest of the integration stays the same, including the official SDKs.
Host swap
| API | Efí (homologation) | Mimicr |
|---|---|---|
| API Pix | https://pix-h.api.efipay.com.br | https://pix.efi.mimicr.dev |
| API Cobranças | https://cobrancas-h.api.efipay.com.br | https://cobrancas.efi.mimicr.dev |
| Open Finance | https://openfinance-h.api.efipay.com.br | https://openfinance.efi.mimicr.dev |
| Pagamento de contas | https://pagarcontas-h.api.efipay.com.br | https://pagarcontas.efi.mimicr.dev |
| Extratos | https://extratos-h.api.efipay.com.br | https://extratos.efi.mimicr.dev |
| Abertura de contas | https://abrircontas-h.api.efipay.com.br | https://abrircontas.efi.mimicr.dev |
Efí's production hosts (without -h) map to the same Mimicr hosts. Paths do not change: /oauth/token and /v2/... on the API Pix, /v1/... on the others.
At the real Efí, the API Pix, Open Finance, Pagamento de contas, Extratos and Abertura de contas require the application's P12/PEM certificate (mTLS) on every request. Mimicr uses no certificate: HTTPS with the credentials is enough. See Authentication.
What the simulator covers
- API Pix: OAuth token with scopes, immediate (cob) and due-date (cobv) charges, cobv batches, locations and QR codes, received Pix and refunds, Pix send by key and by bank details, QR code payment, split, random keys, balance, settings, receipts, MED, reconciliation statement and webhooks.
- Pix Automático: recurrences, confirmation requests, recurring charges with retries, recurrence locations and the
/recand/cobrwebhooks, in journeys 1 to 4. - API Cobranças: boletos (Bolix), card, carnês, payment links, plans and subscriptions, with token notifications. See Boleto.
- Open Finance, Pagamento de contas, Extratos and Abertura de contas: see Open Finance payments, Bill payments, CNAB 240 statements and Account opening.
- Efí's three error formats and the homologation rules: charges up to R$ 10.00 paid on their own, R$ 0.01 refund rejected and the Pix send amount table.
Money in and out through any API counts in the same account balance, which starts at R$ 1,000.00.
What Mimicr adds
In Efí's homologation, the other side (the payer, the payee's bank, the SPI) can barely be driven. In Mimicr you can: pay a charge, receive a Pix without a txid, decide a send or a refund, open and decide a MED infraction, authorize or reject a recurrence and settle a recurring charge. You can also advance the sandbox clock, inject failures and wait for a webhook. All of this is in the control API (https://api.mimicr.dev), the CLI (npx mimicr), the MCP server and the console. See Sandbox control.
Where Efí does not document a behavior, Mimicr makes its own decision and the guides flag it with "In Mimicr, ...". That is not a promise about Efí's production behavior.
Where to start
- Quickstart: from activation to the first paid charge with a webhook.
- Authentication, Environment and Homologation rules.
- API Pix: immediate charges, due-date charges, Pix send, refunds, Pix Automático and webhooks.
- API reference: start with Get a token and Create a charge.