Developers / Docs / Webhooks & events
Webhooks & events
Caship tells your system the moment something happens.
Illustrative. The Partner API is a proposal. Names, fields and numbers on this page show the intended shape; the final contract will be published as an OpenAPI file with the sandbox.
Events
| Event | Fires when | You usually |
|---|---|---|
| sale.approved | A reward is issued for a bill | Print points on the receipt |
| sale.reversed | A reward is taken back after a return | Update the bill |
| redemption.completed | Customer confirmed paying with points | Close the bill |
| redemption.refunded | Points are returned to the customer | Reopen the bill |
| voucher.issued | A code is created for a customer | Show it in their account |
| voucher.redeemed | A code is used at an outlet | Mark it as used |
| voucher.expired | A code passes its end date | Release its budget |
| reimbursement.released | A reimbursement batch is released | Reconcile the books |
Payload
POST https://your-server.example/caship-events
{
"id": "evt_3Q9X",
"type": "sale.approved",
"created": "2026-12-04T10:30:00+05:30",
"data": { "bill_no": "2041", "points": 275, "outlet_id": "OUT-0231" }
}
Verify every event
Each event carries a signature header. Compute it the same way you sign requests, with your secret, and reject anything that does not match or is older than five minutes.
Retries
Events are sent from a background queue. If your server does not answer with a 2xx status, Caship tries again with growing gaps. Always answer quickly and process in the background. Because an event can arrive more than once, use the event id to ignore repeats.
Testing
In the sandbox, a tester page lets you fire any event and replay old ones.
