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

Set the webhook

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

Registers the URL that receives payment status changes. There is one URL per account; each call replaces the previous one. At Efí the URL must accept Efí's certificate (mTLS); in Mimicr HTTPS is enough (or http://localhost).

Authorization

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

Body

application/json
urlstringrequired

HTTPS URL.

Example: "https://sua-app.dev/contas"

Responses

201Webhook registered.
urlstring

Registered URL.

400erro_de_validacao (no url) or url_invalida (not HTTPS).
erro e descricao
errointegerrequired

Always 0.

Example: 0
descricaostringrequired

Error description.

Example: "Código de barras inválido"
nome e mensagem
nomestringrequired

Error code (e.g. erro_de_validacao).

Example: "erro_de_validacao"
mensagemstringrequired

Error description.

Example: "A propriedade dataInicio é obrigatória"
mensagem
mensagemstringrequired

Schema validation message.

Example: "must NOT have fewer than 44 characters"
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"