API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Open Finance · Setup

Get the configuration

GET/v1/config
Base URL: https://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.br

Returns the application's current configuration.

Authorization

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

Responses

200Current settings.
redirectURLstringrequired

Where the payer returns after authorizing or refusing at the bank. Efí appends identificadorPagamento (or identificadorVinculo, identificadorAdesao) and, on refusal, erro=acesso_negado.

Example: "https://sua-app.dev/open-finance/retorno"
webhookURLstringrequired

URL that receives the webhooks of payments, refunds, enrollments and consents.

Example: "https://sua-app.dev/open-finance"
webhookSecurityobject

How your server recognizes Efí's webhooks. Mimicr has no mTLS: in mtls mode the POST goes to the URL as is.

Show child attributes
typestringrequired

mtls (default): Efí presents its certificate. hmac: the registered hash goes in the URL query string (?hmac=<hash>), with no body signature.

mtlshmac
hashstring

Required when type is hmac.

processPaymentstring

sync (default): the payer sees Efí's processing page on the way back. async: returns straight away and the result arrives through the webhook.

syncasync
generateTxIdForInicboolean

Generates a txid automatically for payments to a Pix key. Default false.

401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
403The token lacks the scope the route requires (insufficient_scope).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
404configuracao_nao_encontrada: there was no PUT /v1/config yet.
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"
500erro_aplicacao: internal server error.
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"