Guides
Biometrics and Pix Automático
Enroll the payer's account to pay without redirection and create Pix Automático consents through Open Finance.
Two Efí Open Finance journeys ask for consent once and then pay without sending the payer to the bank: the Journey without Redirection (biometric payments) and Pix Automático. At Efí they require an Efí Empresas account; in Mimicr any sandbox can use them. The token and configuration are the ones from Pix through Open Finance.
Biometrics: create the enrollment
curl --request POST \
--url https://openfinance.efi.mimicr.dev/v1/pagamentos-biometria/vinculos \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency-key: 0b8f4d4e-2c1a-4f7e-9d3b-5a6c7e8f9a0b' \
--header 'Content-Type: application/json' \
--data '{ "pagador": { "idParticipante": "9f4cd202-8f2b-11ec-b909-0242ac120002", "cpf": "94271564656" } }'{
"identificadorVinculo": "urn:efi:4e137d9b-2e45-480b-87e7-d70e52065de3",
"redirectURI": "https://openfinance.efi.mimicr.dev/consentimento/urn:efi:4e137d9b-2e45-480b-87e7-d70e52065de3"
}The enrollment starts pendente. The payer authorizes once at redirectURI, or the test uses npx mimicr action efi openfinance.consent kind=vinculo id=urn:efi:… approve=true. Authorized, the webhook {"identificadorVinculo": "...", "status": "autorizado", "tipo": "vinculo"} arrives; refused, rejeitado with motivo: "Usuário rejeitou o vinculo". Reference: Create an enrollment.
List enrollments with ?cpf=94271564656 shows the limits. In Mimicr every enrollment has a limiteTransacao of 1000.00, a limiteDiario of 5000.00 and lasts one year.
Biometrics: pay
curl --request POST \
--url https://openfinance.efi.mimicr.dev/v1/pagamentos-biometria/pix \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency-key: 3c2d1e0f-4a5b-4c6d-8e9f-0a1b2c3d4e5f' \
--header 'Content-Type: application/json' \
--data '{
"identificadorVinculo": "urn:efi:4e137d9b-2e45-480b-87e7-d70e52065de3",
"favorecido": { "contaBanco": { "nome": "Lucas Silva", "documento": "17558266300", "codigoBanco": "09089356", "agencia": "0001", "conta": "654984", "tipoConta": "TRAN" } },
"pagamento": { "valor": "1.00", "idProprio": "bio-1" }
}'The response has identificadorPagamento and redirectURI, like Efí's, but the payer doesn't need to open anything: in Mimicr the payment settles on its own within a few seconds (aceito, or rejeitado for 0.11) and the tipo: pagamento webhook arrives. An unauthorized enrollment or an amount above limiteTransacao answers 422 entidade_nao_processavel. Reference: Pix with biometrics.
List biometric Pix returns the payments under a key named vinculos, like Efí. Revoke an enrollment ends the enrollment.
Pix Automático: create the consent
curl --request POST \
--url https://openfinance.efi.mimicr.dev/v1/pagamentos-automaticos/adesao \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"pagador": { "idParticipante": "9f4cd202-8f2b-11ec-b909-0242ac120002", "cpf": "94271564656", "nome": "Josué Villa Real" },
"favorecido": { "contaBanco": { "nome": "Lucas Silva", "documento": "17558266300", "codigoBanco": "09089356", "agencia": "0001", "conta": "654984", "tipoConta": "TRAN" } },
"assinatura": {
"expiracao": "2027-10-21",
"descricao": "Mensalidades do curso XYZ",
"idProprio": "6236574863254",
"configuracao": {
"automatico": {
"valorMinimo": "10.00",
"valorMaximo": "50.00",
"intervalo": "MENSAL",
"dataInicio": "2026-10-22",
"permiteRetentativa": false,
"primeiroPagamento": { "data": "2026-10-21", "valor": "20.00", "infoPagador": "Parcela 1" }
}
}
}
}'{
"identificadorAdesao": "urn:efi:0c7f2fcf-d3d0-4bcc-97b2-fe13e4d4387d",
"redirectURI": "https://openfinance.efi.mimicr.dev/consentimento/urn:efi:0c7f2fcf-d3d0-4bcc-97b2-fe13e4d4387d"
}Use valorFixo or the valorMinimo–valorMaximo range, never both (422). intervalo is SEMANAL, MENSAL, TRIMESTRAL, SEMESTRAL or ANUAL. Reference: Create a consent.
The payer authorizes at redirectURI (or openfinance.consent with kind=adesao). The consent becomes autorizado, but the webhook says status: aceito, as in Efí's documentation. If there is a primeiroPagamento, it is scheduled right away (for today, if its date has passed).
| Consent | When |
|---|---|
pendente | Waiting for the consent |
autorizado | The payer authorized (webhook aceito) |
rejeitado | The payer refused: A autorização foi recusada pelo usuário |
revogado | Revoke a consent |
finalizado | Past assinatura.expiracao |
Pix Automático: charge
curl --request POST \
--url https://openfinance.efi.mimicr.dev/v1/pagamentos-automaticos/pix \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency-key: 9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b' \
--header 'Content-Type: application/json' \
--data '{
"identificadorAdesao": "urn:efi:0c7f2fcf-d3d0-4bcc-97b2-fe13e4d4387d",
"pagamento": { "valor": "30.00", "data": "2026-10-26", "infoPagador": "Parcela 2" }
}'{ "identificadorAdesao": "urn:efi:0c7f2fcf-d3d0-4bcc-97b2-fe13e4d4387d", "endToEndId": "E09089356202610220135iS7wqEYNb1p", "status": "pendente", "data": "2026-10-26" }The payment becomes agendado within seconds and settles on its date: aceito, or rejeitado with Saldo insuficiente for 0.11. Each step triggers a tipo: pagamento webhook with identificadorAdesao. Outside the consent's range, or with an unauthorized consent, the response is 422 entidade_nao_processavel. Reference: Schedule a Pix Automático.
To settle before the date, advance the clock (npx mimicr clock efi +5d) or use npx mimicr action efi openfinance.settle_auto_pix e2eId=E0908…. Cancel a Pix Automático cancels a pendente or agendado payment; revoking the consent cancels every open one.