API Reference
Configure a webhook
/v2/webhook/{chave}https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brRegisters (or replaces) the URL that receives the key's Pix: received, sent and refunds. Before saving, Efí sends a test notification to the URL, which must answer 2xx. Notifications go to webhookUrl + /pix; end the URL with ?ignorar= to avoid the suffix.
At the real Efí the URL must also accept mTLS (or the x-skip-mtls-checking: true header). Mimicr has no mTLS: the test is a single POST with {"evento": "teste_webhook"} and http://localhost is accepted.
Scope: webhook.write.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Pix key of the authenticated account.
Body
application/jsonHTTPS URL that receives the notifications.
"https://sua-app.dev/webhooks/efi"Responses
201Webhook registered. In Mimicr the body echoes webhookUrl.
HTTPS URL that receives the notifications.
"https://sua-app.dev/webhooks/efi"400valor_invalido (invalid URL or not HTTPS), webhook_invalido (the URL did not answer the test with 2xx) or chave_nao_encontrada.
Error code in snake_case, for example cobranca_nao_encontrada.
"cobranca_nao_encontrada"Error message in Portuguese.
"Nenhuma cobrança encontrada para o txid informado"Schema validation details (only on json_invalido).
Show child attributes
Keyword of the violated rule, for example required, pattern or enum.
"pattern"Path of the invalid field, for example .body.valor.original.
".body.valor.original"Description of the violation.
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"403The token lacks the required scope (insufficient_scope).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"