This document is issued as an addendum to the CCBill API documentation and discusses subscription cancellation functionality. This document is written for developers, technicians, and others with advanced coding skills.
Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string to the following CGI script with variable values appended:
https://datalink.ccbill.com/utils/subscriptionManagement.cgi
Once the variables have been passed to the script, the subscription will be canceled.
cancelSubscription | clientSubacc | usingSubacc | subscriptionId | returnXML |
Main Account | O | X | ||
Main Account w/XML | O | X | X | |
Sub Account | X | X | ||
Sub Account w/XML | X | X | X |
A success or failure code will be returned. For a full list of error codes and explanations, please consult the CCBill API Guide.
https://datalink.ccbill.com/utils/subscriptionManagement.cgi?clientSubacc=&usingSubacc=0005&subscriptionId=1071776966&username=ccbill12&password=test123&action=cancelSubscription&clientAccnum=923590
Fields: "results" Values: "1"
!!!Request string https://datalink.ccbill.com/utils/subscriptionManagement.cgi?clientSubacc=&usingSubacc=0005&subscriptionId=1071776966&username=ccbill12&password=test123&returnXML=1&action=cancelSubscription&clientAccnum=923590
<?xml version='1.0' standalone='yes'?> <results>1</results>