API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Account opening

Register a webhook

POST/v1/webhook
Base URL: https://abrircontas.efi.mimicr.dev · provider: https://abrircontas-h.api.efipay.com.br

Registers a URL that receives account events (conta_aberta, conta_recusada_pelo_cliente_final). Before saving, Efí tests the URL with a POST and expects a 2xx. To edit a URL, also send identificadorWebhook. There can be several URLs; every event goes to all of them.

Authorization

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

Body

application/json
webhookUrlstringrequired

HTTPS URL.

Example: "https://sua-app.dev/abertura"
identificadorWebhookstring

To edit an existing webhook.

Responses

200Webhook registered.
identificadorWebhookstring

Webhook identifier.

400url_webhook (no URL), protocolo_da_url (not HTTPS), url_cadastrada, chave_invalida (unknown identifier), or the URL failed the test: url_falhou_com_erro, limite_de_tempo_atingido_para_url, url_inacessivel.
nomestringrequired

Error code.

Example: "conta_nao_encontrada"
mensagemstringrequired

Error description.

Example: "Conta simplificada não encontrada."
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"
500erro_aplicacao: "Ocorreu um erro na aplicação."
nomestringrequired

Error code.

Example: "conta_nao_encontrada"
mensagemstringrequired

Error description.

Example: "Conta simplificada não encontrada."