Developers / Docs / Issue rewards
Issue rewards
Issue Caship Rewards from your billing screen.
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.
- 1 · IdentifyCashier scans the customer's Caship QR or types the ProCo.
- 2 · Submit the saleBill number, amount and outlet go to Caship with an idempotency key.
- 3 · CheckCaship checks the customer, the outlet's Rewards Budget and the category rate.
- 4 · ApproveAutomatic for trusted outlets, or the owner approves in the app.
- 5 · ConfirmThe customer sees points at once; you get a sale.approved event.
How the reward is worked out
Reward = category rate × bill value, taken from the outlet's Rewards Budget when the sale is approved. The rate follows the outlet's category and its own Reward % Meter. You see only your own cost; how the reward is shared inside Caship stays private.
When the budget runs low
If the Rewards Budget is too low, the sale cannot be approved and the owner gets a top-up alert. Your software receives a clear error, see Errors.
Returns
When a bill is returned, reverse the sale. The reward is taken back and you receive sale.reversed.
Calls and events
| Call | Purpose | Scope |
|---|---|---|
| POST /v1/sales | Submit a sale | rewards.issue |
| POST /v1/sales/{id}/reverse | Reverse after a return | rewards.issue |
| GET /v1/rewards | Read reward history | rewards.read |
Events: sale.approved, sale.reversed.
