API Reference
Pix with biometrics
/v1/pagamentos-biometria/pixhttps://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brInitiates a Pix with an autorizado enrollment, without redirecting the payer. The amount can't exceed the enrollment's limiteTransacao. In Mimicr the payment settles on its own within a few seconds (aceito, or rejeitado for 0.11), and the result arrives through the webhook.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
Idempotency key, 36 to 72 characters (a UUID works). The same key with the same body returns the first response; with another body, 409 conflito_chave_idempotencia. Missing: 400 chave_idempotencia_obrigatorio; wrong length: 431 chave_idempotencia_invalida.
"6f1c1d2e-9a3b-4c5d-8e7f-0a1b2c3d4e5f"Body
application/jsonThe payer's autorizado enrollment.
Who receives: contaBanco or chave. Leave the payee out when paying a QR Code (pagamento.qrCode). In Mimicr, when the payee is the sandbox's own account (its Efí account or one of its Pix keys), the amount goes into the balance.
Show child attributes
Show child attributes
Payee name.
"Lucas Silva"Payee's CPF or CNPJ.
"17558266300"ISPB of the payee's bank (8 digits). 09089356 is Efí.
"09089356"Branch, without check digit.
"0001"Account number, with check digit.
"654984"CACC checking, SLRY salary, SVGS savings, TRAN payment account.
CACCSLRYSVGSTRANPayee's Pix key.
"2badfe30-d03b-4da1-9f2f-02b5dcef765c"Show child attributes
Amount in reais with two decimals. In homologation, 0.11 is rejected and any other amount is accepted.
"9.99"Payer's message.
"Churrasco"Your own identifier, returned in queries and webhooks. Must be text.
"6236574863254"IBGE city code (7 digits).
Pix copy and paste (BR Code), when paying a QR Code.
txid of the charge, when there is one.
Responses
200Payment created.
Payment identifier.
"urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"Send the payer to this address to authorize at their bank. In Mimicr it is the sandbox's own consent page (/consentimento/{urn}), with Authorize and Refuse buttons.
"https://openfinance.efi.mimicr.dev/consentimento/urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"400parametro_ausente: "O parâmetro '…' está ausente".
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"401Missing, invalid or expired token, or a token issued for another API (invalid_token).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"403The token lacks the scope the route requires (insufficient_scope).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"404recurso_nao_encontrado.
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"422entidade_nao_processavel: the request can't be processed in the current state (e.g. enrollment not authorized, amount outside the limits, already canceled).
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"500erro_aplicacao: internal server error.
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"