Cancel Scheduled Migration

This endpoint allows you to delete a given scheduled migration.

Path Parameters

PropertyTypeDescription
subscriptionIdIntegerThe Fusebill generated ID of the subscription whose scheduled migration you wish to cancel
curl -X DELETE "https://secure.fusebill.com/v1/subscriptions/{subscriptionId}/migrate" \
-H "Content-Type: application/json" \
-H "Authorization: Basic {APIKey}"
//query parameter
int queryParameter = {subscriptionId};
//Setup API key
string apiKey = "{APIKey}";
//Configure URI
WebRequest request = WebRequest.Create("HTTPS://secure.fusebill.com/v1/subscriptions/"+queryParameter+"/migrate");
//Add Content type
request.ContentType = "application/json";
//Add Api key authorization
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey);
//Set request method
request.Method = "DELETE";
//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 Requests
import requests
#Define your header parameters
headers = {'Authorization' : 'Basic {API Key}', 'Content-Type' : 'application/json'}
#Pass in your URI and headers and store the response object
r = requests.delete('https://secure.fusebill.com/v1/subscriptions/{subscriptionId}/migrate', headers=headers)
print(r.content)
Response
Upon success this call returns 204 No Content
{
    "ErrorId": 0,
    "HttpStatusCode": 404,
    "Errors": [
        {
            "Key": "Api Error",
            "Value": "ScheduledMigration with id 11530673 not found."
        }
    ]
}
Language
Authorization