Cancel a subscription
Subscriptions
Cancel Subscription
Cancels an active subscription. Use when customer wants to end subscription without returning device immediately.
POST
Cancel a subscription
Overview
Cancel an active subscription. Use this when a customer wants to terminate their subscription without going through the normal end-of-contract flow. Unlike early return, cancellation doesn’t immediately trigger a device return.When to Use Cancellation
| 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 |
Request Fields
| 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 Options
| 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) |
Example Request
What Happens
When you cancel a subscription:- Subscription status changes to
cancelled - Future payments are voided
- Asset marked for return collection
- Cancellation logged with reason and timestamp
Response Fields
| Field | Description |
|---|---|
success | Always true on success |
rentalId | The cancelled subscription ID |
assetSerialNumber | Serial number of device to collect |
Example: Cancel with Payment Failure
Example: Customer-Initiated Cancellation
Cancellation vs Early Return
| 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 Handling
| 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 |
Related Endpoints
- Early Return - Return device and end subscription
- Get Subscription - Check current status
- List Subscriptions - Find subscriptions to cancel
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Path Parameters
The subscription ID
Body
application/json