Skip to main content

Evento charge.updated

Disparado quando uma charge muda sem entrar diretamente em succeeded ou failed. data.object contém a charge completa atualizada. data.previous_attributes contém apenas os campos públicos alterados, com os valores anteriores.
{
  "id": "evt_123",
  "object": "event",
  "created_at": "2026-05-19T18:35:00Z",
  "data": {
    "object": {
      "id": "ch_123",
      "object": "charge",
      "amount": 9990,
      "amount_captured": 0,
      "amount_refunded": 0,
      "billing_details": {},
      "captured": false,
      "created_at": "2026-05-19T18:34:58Z",
      "currency": "brl",
      "customer": "cus_123",
      "description": null,
      "disputed": false,
      "invoice": "inv_123",
      "livemode": true,
      "metadata": {},
      "paid": false,
      "payment_error": null,
      "payment_intent": "pi_123",
      "payment_method": "pm_123",
      "payment_method_details": {},
      "receipt_url": null,
      "refunded": false,
      "refunds": {
        "object": "list",
        "data": [],
        "has_more": false,
        "url": "/v1/refunds?charge=ch_123"
      },
      "status": "processing",
      "updated_at": "2026-05-19T18:35:00Z"
    },
    "previous_attributes": {
      "status": "pending"
    }
  },
  "livemode": true,
  "organization": "org_123",
  "request": {
    "id": null
  },
  "type": "charge.updated"
}