Paycose Docs
FlowEvents

Payment intent events

What data you get for payment_intent.canceled.

Fires when a Payment Intent is canceled — currently the only payment intent event the platform sends.

Prop

Type

{
  "id": "pi_01J8XYZABCDEFGHJKMNPQR",
  "object": "payment_intent",
  "status": "canceled",
  "amount": 150000,
  "currency": "THB",
  "cancellation_reason": "expired",
  "cancellation_source": "local_ttl",
  "customer_id": "cus_01J8XYZABCDEFGHJKMNPQR",
  "charge_id": "ch_01J9ABCDEFGHJKMNPQRSTV",
  "canceled_at": "2026-07-25T17:40:00Z",
  "failure_code": "expired",
  "failure_message": "The underlying charge expired before it was completed."
}

customer_id, charge_id, canceled_at, failure_code, and failure_message only appear when the intent has them.