Skip to main content

Webhooks

Configuration error codes for the /v1/webhook routes, and how API statuses map to the events delivered to your endpoint.

The event catalogue and payloads are in Webhook events; delivery rules and authentication are in Webhooks overview.

API status ↔ webhook event​

The API and the webhook payload use different vocabularies for the same outcome. Map them explicitly instead of comparing strings across the two.

OperationAPI final statusTypical webhook
DepositPAIDpixChargePaid → paid
DepositEXPIREDpixChargeExpired → expired
WithdrawSUCCESSpixWithdrawSuccess → success
WithdrawREJECTED / FAILEDpixWithdrawFailed → rejected / failed
RefundREFUNDEDpixRefundSuccess → success
RefundNOT_EXECUTEDpixRefundFailed → failed

Pix In rejection reasons (pixChargeRejected)​

rejectedReasonDescription
EmissaoExpiradaCharge issuance expired.
LiquidacaoExpiradaSettlement window expired.
(other)Charge rejected — see rejectedDescription in the payload.

Error codes​

BAD_REQUEST (400)​

Error codeDescription
invalid_valueInvalid request body, URL too long, empty bearer token, missing notification id, or delete/resend failed.
invalid_eventOne or more values in webhookEvents are not official event names.
invalid_protocolWebhook URL must use HTTPS.
invalid_auth_typeAuthentication type must be basic or bearer.
mtls_not_configuredmTLS is required on the URL but is not configured.
webhook_unreachableProbe request to the URL failed (network).
webhook_timeoutProbe request to the URL exceeded the timeout.
webhook_errorProbe request to the URL failed.
webhook_http_errorURL returned a non-success HTTP status during probe.
webhook_no_responseNo response received from the URL during probe.

NOT_FOUND (404)​

Error codeDescription
webhook_not_foundWebhook configuration or notification record not found.

UNPROCESSABLE_ENTITY (422)​

Error codeDescription
invalid_valueNotification is not eligible for resend.

INTERNAL_SERVER_ERROR (500)​

Error codeDescription
internal_errorInternal error while processing notification query or resend.

See also HTTP errors.