WEBHOOK
payment_session.created
{
  "id": "evt_12345",
  "type": "payment_session.created",
  "data": {
    "id": "ps_123456",
    "type": "one_time",
    "amount": 5222,
    "currency": "usd",
    "customer_id": "cus_12345",
    "status": "active",
    "session_url": "https://merchant.com/payment",
    "metadata": {
      "order_id": "o_b5MuE6le7p9W5Ufsf8tQk"
    },
    "external_reference": "ext_abc123",
    "created_at": "2025-01-03T12:00:00Z",
    "updated_at": "2025-01-03T12:00: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