Cancels an active subscription. Use when customer wants to end subscription without returning device immediately.
| Scenario | Use This |
|---|---|
| Customer requests termination | Cancel |
| Repeated payment failures | Cancel |
| Fraud detected | Cancel |
| Customer wants device back immediately | Early Return |
| Customer wants to purchase device | Buyout |
| Field | Required | Description |
|---|---|---|
rentalId | Yes | The subscription ID to cancel |
reason | Yes | Cancellation reason (see options below) |
notes | No | Additional notes (max 1000 chars) |
| Reason | When to Use |
|---|---|
customer_request | Customer asked to end subscription |
payment_failure | Repeated failed payment attempts |
fraud | Fraudulent activity detected |
admin_decision | Internal business decision |
other | Other reasons (specify in notes) |
cancelled| Field | Description |
|---|---|
success | Always true on success |
rentalId | The cancelled subscription ID |
assetSerialNumber | Serial number of device to collect |
| Aspect | Cancel | Early Return |
|---|---|---|
| Primary use | Administrative termination | Customer-initiated return |
| Device return | Scheduled separately | Immediate return expected |
| Fees | No automatic fee | May include early return fee |
| Typical scenarios | Payment issues, fraud | Customer doesn’t want device |
| Error Code | Cause | Solution |
|---|---|---|
NOT_FOUND | Subscription doesn’t exist | Verify subscription ID |
ALREADY_CANCELLED | Subscription already cancelled | No action needed |
ALREADY_ENDED | Subscription already ended | Cannot cancel completed subscriptions |
API key obtained from FlexPortal dashboard
Your tenant identifier
The subscription ID