data object with the details of the resource involved. This page explains the envelope; the Events page lists what data contains for each category.
The envelope
The examples on the Events page carry a few more envelope fields, such as
context_id and context_type. They are not needed to handle a notification.
Reading a notification
The notification below reports a cash-in document that settled:category and type say what happened, ref_id says to which document, and data carries the document itself. Amounts are in cents (BRL 100.00 = 10000), so this payment is BRL 1.00.
- Route on
categoryandtype. Together they name the event,in_document.settledhere. - Find your own record with
ref_id, or withdata.external_idwhen you sent one in the request that created the resource. - Update that record from
data. If you prefer to read the current state from the API, fetch the resource byref_id.
Next steps
- Events: every category and type, with the
dataof each. - Webhook authentication: verify the body before you trust it.
- Cash-in and Cash-out: the flows that produce the main events.

