Skip to main content

Cancel Plan

Cancel a specific existing subscription plan.

POST https://api.spotflow.co/api/v1/plans/:plan-id/cancel

Headers

authorization
String

Bearer SECRET_KEY
Include your secret key in the request header as a Bearer token for authorization. Unauthorized requests will result in a 401 HTTP status code.

Path Parameters

plan-id int32

This is the unique ID of the subscription plan you want to cancel.

Sample Response

200 OK

{
"id": "11aa6bc6-52e6-4821-900c-f33f9bf0c060",
"title": "Dstv Sub",
"frequency": "MONTHLY",
"internalReference": "test-1212",
"amount": 1000.00,
"currency": "USD",
"status": "cancelled",
"createdAt": "2024-06-06T19:43:55Z"
}