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

Configure a webhook

PUT/v2/webhook/{chave}
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Registers (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

chavestringrequired

Pix key of the authenticated account.

Body

application/json
webhookUrlstringrequired

HTTPS URL that receives the notifications.

Example: "https://sua-app.dev/webhooks/efi"

Responses

201Webhook registered. In Mimicr the body echoes webhookUrl.
webhookUrlstring

HTTPS URL that receives the notifications.

Example: "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.
nomestringrequired

Error code in snake_case, for example cobranca_nao_encontrada.

Example: "cobranca_nao_encontrada"
mensagemstringrequired

Error message in Portuguese.

Example: "Nenhuma cobrança encontrada para o txid informado"
errosobject[]

Schema validation details (only on json_invalido).

Show child attributes
chavestring

Keyword of the violated rule, for example required, pattern or enum.

Example: "pattern"
caminhostring

Path of the invalid field, for example .body.valor.original.

Example: ".body.valor.original"
mensagemstring

Description of the violation.

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

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
403The token lacks the required scope (insufficient_scope).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"