Event types
The events CashPayment sends.
| Type | Sent when | data.status |
|---|---|---|
order.paid | The invoice is paid. Also sent when a payment arrives after the order expired. | paid |
order.expired | An unpaid order passes expiresAt. | expired |
webhook.test | You click 发送测试事件 (Send test event) in the merchant console. | — |
order.paid
Fulfil the order. Each order sends order.paid at most once.
An order can receive order.expired and later order.paid, when the customer pays just before the invoice expires and the payment settles afterwards. Treat order.paid as final.
order.expired
Release stock or mark the checkout abandoned. It is sent within about a minute after expiresAt, and only for orders that expire while your endpoint is enabled.
webhook.test
Sent only when you ask for it, whatever events the endpoint subscribes to. data is an empty object:
{
"id": "evt_test_9b2c1d0e4f5a4b6c8d7e0f1a2b3c4d5e",
"type": "webhook.test",
"timestamp": "2026-11-17T12:00:00.000Z",
"data": {}
}Respond with a 2xx status. Ignore event types you don't handle, so new types never break your endpoint.