/
Terminates a subscription
PUT {{baseURL}}/sub-api/v1/subscriptions/{{subscriptionId}}/terminate
This endpoint terminates, or cancels, an active subscription.
This action occurs immediately and cannot be undone.
Security
Bearer
- Mock serverhttps://developer.flute.com/_mock/api-reference/sub-api/v1/subscriptions/{subscriptionId}/terminate
- Sandbox environmenthttps://sandbox.api.flute.com/sub-api/v1/subscriptions/{subscriptionId}/terminate
- Production environmenthttps://api.flute.com/sub-api/v1/subscriptions/{subscriptionId}/terminate
curl -i -X PUT \
https://developer.flute.com/_mock/api-reference/sub-api/v1/subscriptions/79c0d1e2-3f4a-4b5c-6d7e-8f9a0b1c2d58/terminate \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Indicates the subscription status identifier.
Possible values:
| Value | Meaning |
|---|---|
| 1 | Active |
| 2 | Completed |
| 3 | Suspended |
| 4 | Delinquent |
| 5 | Terminated |
| 6 | Deleted |
Example: 2
Example:2
Indicates the subscription status.
Possible values:
| Value | Meaning |
|---|---|
| Active | 1 |
| Completed | 2 |
| Suspended | 3 |
| Delinquent | 4 |
| Terminated | 5 |
| Deleted | 6 |
Example: Completed
Example:"Completed"
Response
{ "id": "055422f6-93a0-4872-9134-76153da2a0b9", "statusId": 5, "status": "Terminated", "message": "Subscription is terminated.\n\nFuture payments will no longer be processed. This action is permanent.\n" }