Routes a cancellation request from order status, reason, and customer tier. For e-commerce operators handling a cancellation request.
Parity returns a Cancellation decision — one of: Cannot cancel initiate return, Cancel fraud flag, Cancel stockout, Approve cancel no fee, Approve cancel standard.
| Output | Type | |
|---|---|---|
| Cancellation decision | string | — one of: Cannot cancel initiate return, Cancel fraud flag, Cancel stockout, Approve cancel no fee, Approve cancel standard, Approve cancel with fee |
| Refund eligible | string | — one of: True, False |
| Restocking fee applies | string | — one of: True, False |
| Action required | string |
| Input | Type | |
|---|---|---|
| Order id | string · required | |
| Order status | string · required | |
| Cancellation reason | string · required | |
| Customer tier | string · required | |
| Fraud flag | boolean · required | |
| Inventory available | boolean · required | |
| Order value usd | numeric · required |
Compiled, deterministic, and auditable — the logic is confirmed once by a human, then runs byte-identically every time. No spreadsheets, no code.