| Operation | Endpoint | Typical use |
|---|---|---|
| Cancel | POST /v1/orders/{uuid}/cancel | The order should no longer continue |
| Refund | POST /v1/orders/{uuid}/refund | Money/points need to be returned after settlement |
Cancel an order
Use cancellation when the order should be stopped rather than financially reversed later. Example:Current behavior
- validates merchant ownership of the order
- rejects already-cancelled or already-refunded orders
- defaults the reason to
"Order cancelled via API"if omitted - emits webhook event
cancelled
Refund an order
Use refund after an order is already settled and value must be returned. Example full refund:Current behavior
- supports both full and partial refunds
- emits webhook event
refunded - updates
order_statustofully_refundedorpartially_refunded
How Points value is reversed
Replacing (redeem) orders
For a redeem checkout, refunding reverses the redeemed value and updates the order status accordingly.Earning orders
For an earning order, refunding reverses previously awarded points. In partial refunds, the backend calculates the proportional points to reverse and includes remaining amounts in the refund payload used internally.Auto-refund edge case
There is also an internal system event calledauto_refunded. This can occur when the backend automatically reverses a replacing order because an expected transaction record was missing during reconciliation. Integrators should treat it as a refund-class terminal state and handle it in webhook consumers.
Recommended merchant policy
Use cancel before fulfilment
Use cancel before fulfilment
If the order should simply stop and has not entered your final fulfilment path, cancel is usually cleaner than refund.
Use refund after settlement
Use refund after settlement
If value was already settled, use the refund endpoint so Points can properly reverse the financial and loyalty effects.
Persist refund reasons
Persist refund reasons
Even when not required, always send a human-readable
reason so support teams can reconcile merchant actions against webhook history.Webhooks you should expect
| Action | Webhook |
|---|---|
| Cancel | cancelled |
| Refund | refunded |
| Internal automatic reversal | auto_refunded |
Next
Order Lifecycle
See where cancellation and refund fit in the state machine.
Webhook Events
Payload examples for
cancelled, refunded, and related events.
