{"id":497,"date":"2020-08-10T18:44:10","date_gmt":"2020-08-10T18:44:10","guid":{"rendered":""},"modified":"2021-06-09T15:09:19","modified_gmt":"2021-06-09T15:09:19","slug":"ccbill-api-cancel-subscription","status":"publish","type":"post","link":"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription","title":{"rendered":"CCBill API: Cancel\u00a0Subscription"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"Introduction\">Introduction<\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Overview\">Overview<\/h2>\n\n\n\n<p>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:<\/p>\n\n\n\n<pre id=\"codebox1\" class=\"wp-block-preformatted\">https:\/\/datalink.ccbill.com\/utils\/subscriptionManagement.cgi<\/pre>\n\n\n\n<p>Once the variables have been passed to the script, the subscription will be canceled.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Required_X_and_Optional_O_Parameters\">Required (X) and Optional (O)&nbsp;Parameters<\/h3>\n\n\n\n<figure id=\"wpfancytable1\" class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>cancelSubscription<\/td><td class=\"has-text-align-center\" data-align=\"center\">clientSubacc<\/td><td class=\"has-text-align-center\" data-align=\"center\">usingSubacc<\/td><td class=\"has-text-align-center\" data-align=\"center\">subscriptionId<\/td><td class=\"has-text-align-center\" data-align=\"center\">returnXML<\/td><\/tr><tr><td>Main Account<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;O<\/td><td class=\"has-text-align-center\" data-align=\"center\">X<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><\/tr><tr><td>Main Account w\/XML<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;O<\/td><td class=\"has-text-align-center\" data-align=\"center\">X<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;X<\/td><\/tr><tr><td>Sub Account<\/td><td class=\"has-text-align-center\" data-align=\"center\">X<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><td class=\"has-text-align-center\" data-align=\"center\">X&nbsp;<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><\/tr><tr><td>Sub Account w\/XML<\/td><td class=\"has-text-align-center\" data-align=\"center\">X<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><td class=\"has-text-align-center\" data-align=\"center\">X&nbsp;<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;X<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Information_Returned\">Information Returned<\/h3>\n\n\n\n<p>A success or failure code will be returned. For a full list of error codes and explanations, please consult the CCBill API Guide.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"CSV_Version_Example\">CSV Version&nbsp;Example<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Request_string\">Request string<\/h4>\n\n\n\n<pre id=\"codebox2\" class=\"wp-block-preformatted\">https:\/\/datalink.ccbill.com\/utils\/subscriptionManagement.cgi?clientSubacc=&amp;usingSubacc=0005&amp;subscriptionId=1071776966&amp;username=ccbill12&amp;password=test123&amp;action=cancelSubscription&amp;clientAccnum=923590<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Return\">Return<\/h4>\n\n\n\n<pre id=\"codebox3\" class=\"wp-block-preformatted\">Fields: \"results\" \nValues: \"1\"<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"XML_Version_Example\">XML Version&nbsp;Example<\/h3>\n\n\n\n<pre id=\"codebox4\" class=\"wp-block-preformatted\">!!!Request string https:\/\/datalink.ccbill.com\/utils\/subscriptionManagement.cgi?clientSubacc=&amp;usingSubacc=0005&amp;subscriptionId=1071776966&amp;username=ccbill12&amp;password=test123&amp;returnXML=1&amp;action=cancelSubscription&amp;clientAccnum=923590<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"Return_2\">Return<\/h4>\n\n\n\n<pre id=\"codebox5\" class=\"wp-block-preformatted\">&lt;?xml version='1.0' standalone='yes'?&gt; \n&lt;results&gt;1&lt;\/results&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This document is issued as an addendum to the CCBill API documentation and discusses...<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"kk_blocks_editor_width":"","_kiokenblocks_attr":"","_kiokenblocks_dimensions":"","footnotes":""},"categories":[29],"tags":[],"class_list":["post-497","post","type-post","status-publish","format-standard","hentry","category-api-documentation"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CCBill Merchant Knowledge Base | CCBill API: Cancel Subscription<\/title>\n<meta name=\"description\" content=\"Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string a CGI script.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CCBill Merchant Knowledge Base | CCBill API: Cancel Subscription\" \/>\n<meta property=\"og:description\" content=\"Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string a CGI script.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription\" \/>\n<meta property=\"og:site_name\" content=\"CCBill Doc\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-10T18:44:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-09T15:09:19+00:00\" \/>\n<meta name=\"author\" content=\"Goran Jevtic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Goran Jevtic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription\",\"url\":\"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription\",\"name\":\"CCBill Merchant Knowledge Base | CCBill API: Cancel Subscription\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/doc\/#website\"},\"datePublished\":\"2020-08-10T18:44:10+00:00\",\"dateModified\":\"2021-06-09T15:09:19+00:00\",\"author\":{\"@id\":\"https:\/\/ccbill.com\/doc\/#\/schema\/person\/07053eea9e71524817d8c51f00e49547\"},\"description\":\"Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string a CGI script.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ccbill.com\/doc\/#website\",\"url\":\"https:\/\/ccbill.com\/doc\/\",\"name\":\"CCBill Doc\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ccbill.com\/doc\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ccbill.com\/doc\/#\/schema\/person\/07053eea9e71524817d8c51f00e49547\",\"name\":\"Goran Jevtic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/doc\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2f1f69525606d377dbc5663dc0499431?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2f1f69525606d377dbc5663dc0499431?s=96&d=mm&r=g\",\"caption\":\"Goran Jevtic\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CCBill Merchant Knowledge Base | CCBill API: Cancel Subscription","description":"Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string a CGI script.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription","og_locale":"en_US","og_type":"article","og_title":"CCBill Merchant Knowledge Base | CCBill API: Cancel Subscription","og_description":"Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string a CGI script.","og_url":"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription","og_site_name":"CCBill Doc","article_published_time":"2020-08-10T18:44:10+00:00","article_modified_time":"2021-06-09T15:09:19+00:00","author":"Goran Jevtic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Goran Jevtic","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription","url":"https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription","name":"CCBill Merchant Knowledge Base | CCBill API: Cancel Subscription","isPartOf":{"@id":"https:\/\/ccbill.com\/doc\/#website"},"datePublished":"2020-08-10T18:44:10+00:00","dateModified":"2021-06-09T15:09:19+00:00","author":{"@id":"https:\/\/ccbill.com\/doc\/#\/schema\/person\/07053eea9e71524817d8c51f00e49547"},"description":"Subscription cancellation allows merchants to cancel a consumer subscription. This is performed by sending a query string a CGI script.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ccbill.com\/doc\/ccbill-api-cancel-subscription"]}]},{"@type":"WebSite","@id":"https:\/\/ccbill.com\/doc\/#website","url":"https:\/\/ccbill.com\/doc\/","name":"CCBill Doc","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ccbill.com\/doc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ccbill.com\/doc\/#\/schema\/person\/07053eea9e71524817d8c51f00e49547","name":"Goran Jevtic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/doc\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2f1f69525606d377dbc5663dc0499431?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2f1f69525606d377dbc5663dc0499431?s=96&d=mm&r=g","caption":"Goran Jevtic"}}]}},"_links":{"self":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/posts\/497"}],"collection":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":3,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/posts\/497\/revisions"}],"predecessor-version":[{"id":3895,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/posts\/497\/revisions\/3895"}],"wp:attachment":[{"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/categories?post=497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ccbill.com\/doc\/wp-json\/wp\/v2\/tags?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}