Webhooks

Payment cancelled

The payment was cancelled or definitively failed before completing.

The HTTP body is this object exactly — there is no envelope and no type field. The event name is delivered in the X-Webhook-Event header. Most optional fields arrive as an explicit null; a few keys are dropped from the JSON entirely when unset, and those are marked as such below. Read values with a null-safe accessor rather than testing key presence.

postWebhookPAYMENT_CANCELLED

Payload

idstring uuid

Payment id. Present only on some cancellation paths.

txIdstring

Payment transaction id.

status'CANCELLED'

Always CANCELLED.

amountnumber

Gross amount in BRL. Present only on some cancellation paths.

reasonstring

Provider-supplied reason, when available.

Response

Return a 2xx status to acknowledge receipt.

Changes