Cancel Subscription

This action cancels an active subscription (only subscriptions in Active or Provisioning status can be cancelled.) This call returns the cancelled subscription so you can inspect the status field to ensure it was cancelled as expected.

subscriptionIdIntegerThis is the Subscription Id for the Subscription you want to cancel. Passing the incorrect Id can potentially cancel a different Subscription.Yes
This field defines how the system behaves when cancelling the subscription.

"None" will have no reversal take place. The system will fully earn the charges from the current period as though services provided have completed and been provided fully.

"Unearned" will reverse the unearned deferred revenue of the current period's charges. This is typically a partial reversal based on daily or monthly earning rules set on the plan product at the time the subscription was created.

"Full" will fully reverse all charges for the current period, regardless of how much has been earned.
curl -X POST "" \
	-H "Content-Type: application/json" \
	-H "Authorization: Basic {APIKey}" \
	-d "{subscriptionId:{subscriptionId},cancellationOption:'None'}"
//Json Payload
string jsonData = "{subscriptionId:{subscriptionId},cancellationOption:'None'}";
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://");
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey);
//Set request method
request.Method = "POST";
//Add the json data to request
using (var streamWriter = new StreamWriter(request.GetRequestStream()))
//Perform the request
var httpResponse = (HttpWebResponse)request.GetResponse();
//Record the response from our request
var result = "";
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
  result = streamReader.ReadToEnd();
#Import library JSON
import json
#Import library Requests
import requests
#Pass in a dictionary to the Headers parameter
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' :'application/json'}
#Pass in a dictionary to the Payload parameter
payload = {'subscriptionId':{id},'cancellationOption':'None'}
#Pass in your URI, Payload and Headers
r ='{id}', data=json.dumps(payload), headers=headers)
  "subscriptionId": 12345,
  "cancellationOption": "None"
      "planDescription":"Basic Monthly Services for Kennedy Consulting",



      "cancellationTimestamp": null,
      "modifiedTimestamp": "2020-04-27T19:10:14.023",

      "invoiceDay": 1,
      "invoiceMonth": null,
      "canMigrate": false,
      "migrationDate": null,
      "scheduledMigrationDate": null,
      "migrations": null,  
    "ErrorId": 0,
    "HttpStatusCode": 400,
    "Errors": [
            "Key": "subscriptionCancel.CancellationOption",
            "Value": "Allowable Cancel Options are: None, Unearned, Full"