WEBHOOK
payment_session.updated
{
  "id": "evt_12345",
  "type": "payment_session.updated",
  "data": {
    "id": "ps_123456",
    "type": "first_in_series",
    "amount": 10000,
    "currency": "usd",
    "customer_id": "cus4VQUfZlXuO8Xpt",
    "payment_method_id": "pmtizWG6Vcvy4VYiU",
    "payment_id": "pay_87C7PAP35KcdpzAgckBvB",
    "payment_status": "paid",
    "status": "completed",
    "session_url": "https://merchant.com/payment",
    "metadata": {
      "subscription_plan": "premium"
    },
    "external_reference": "ext_xyz789",
    "created_at": "2025-01-03T12:00:00Z",
    "updated_at": "2025-01-03T12:05:00Z"
  }
}

Body

application/json

Represents an occurrence in the system that triggers the webhook, containing an identifier, event type, and relevant data.

Response

200

Return a 200 status to indicate that the data was received successfully