API References
...
Subscriptions
Update Subscription
1 min
code examples curl location globoff request patch 'https //api nue io/subscriptions/{subscriptionid}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'patch', headers myheaders, redirect 'follow' }; fetch("https //api nue io/subscriptions/{subscriptionid}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api nue io/subscriptions/{subscriptionid}") https = net http new(url host, url port) https use ssl = true request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api nue io/subscriptions/{subscriptionid}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // successful update of the subscription { "status" "", "data" \[ { "actualsubscriptionterm" 0, "autorenew" false, "billingtiming" "", "createdbyid" "", "createddate" "", "customerid" "", "evergreen" false, "externalid" "", "externalname" "", "id" "", "lastmodifiedbyid" "", "lastmodifieddate" "", "listprice" 0, "name" "", "orderondate" "", "orderproductid" "", "parentobjecttype" "", "pricebookentryid" "", "pricebookid" "", "productid" "", "quantity" 0, "renewalterm" 0, "rootid" "", "salesprice" 0, "status" "", "subscriptioncompositeid" "", "subscriptionenddate" "", "subscriptionlevel" 0, "subscriptionstartdate" "", "subscriptionterm" 0, "subscriptionversion" 0, "taxamount" 0, "tcv" 0, "totalacv" 0, "totalamount" 0, "totalprice" 0, "totaltcv" 0, "uomid" "" } ], "warnings" \[ {} ] }