Cancels a pending order. Cannot cancel orders that have fulfilled subscriptions.
| Scenario | Use This |
|---|---|
| Customer changed their mind | Cancel Order |
| Order created in error | Cancel Order |
| Items no longer available | Cancel Order |
| Order already has subscriptions | Cancel subscriptions instead |
| Field | Required | Description |
|---|---|---|
reason | No | Reason for cancellation (max 1000 chars) |
| Field | Description |
|---|---|
success | Always true on success |
message | Confirmation message |
orderId | The cancelled order ID |
cancelled| Error Code | Cause | Solution |
|---|---|---|
NOT_FOUND | Order doesn’t exist | Verify order ID |
ORDER_NOT_CANCELLABLE | Order has active subscriptions | Cancel subscriptions first |
ALREADY_CANCELLED | Order already cancelled | No action needed |
API key obtained from FlexPortal dashboard
Your tenant identifier
The order ID
1000