API Reference
Subscriptions
Retrieve Subscription Services
1min
code examples curl location 'https //api fictive com/rest/api/subscriptions?servicereference=array' \\ \ 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 'get', headers myheaders, redirect 'follow' }; fetch("https //api fictive com/rest/api/subscriptions?servicereference=array", 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 fictive com/rest/api/subscriptions?servicereference=array") https = net http new(url host, url port) https use ssl = true request = net http get 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 fictive com/rest/api/subscriptions?servicereference=array" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses \[ { "contractreference" "0010sgfc5sycg6aem3", "subscriptiongroup" "monthly magazine", "subscriptiongrouptag" "monthly subscription", "subscriptiongroupstatus" "active", "subscriptiondescription" "day digital monthly subscription", "subscriptiontitle" "monthly", "subscriptiontype" "subscriptionperiod", "subscriptionstatus" "active", "initialpricingenabled" false, "trialinfo" { "trialenabled" false, "trialunit" "month", "trialperiod" 0, "discountpercentage" 0, "nonpaymenttrial" false, "trialchargedassingleperiod" false }, "contractinfo" { "contractunit" "minutes", "contractperiod" 5, "autorenewdefault" "enabled" }, "pricinginfo" \[ { "currency" "gbp", "initialprice" 0, "priceisgross" true, "renewalprice" 2 5, "priceid" 16889, "taxcategory" "standard", "resourcereference" "0010nwr3qdgg734qm2", "paymentmethod" "ewallet", "role" "default" } ], "allowedpaymentmethods" \[ "creditcard", "paypal", "directdebit", "cash", "cheque" ], "customparameters" \[ { "parametername" "thirdpartyref", "parametertype" "string", "parametervalue" "1221332525" } ], "cancellationdetails" { "cancellationoption" "fullrefundinservicecredits", "minimumrefundthresholdenabled" true, "minimumrefundthresholds" \[ { "currency" "gbp", "amount" 10 23 }, { "currency" "eur", "amount" 11 99 } ] }, "images" \[ { "imageid" 14, "displayname" "testimage", "filename" "433 62c5f972 80ad 4239 97fc 428eb93916e8", "default" true, "location" "https //s3 eu west 1 amazonaws com/fictive dev one/433 62c5f972 80ad 4239 97fc 428eb93916e8" } ], "grouplicensing" { "standard" 1, "overflow" 0 }, "paymentoptions" { "cardtypes" \[ { "name" "visa", "allowrepeats" false, "use3dsecureforalltransactions" true, "use3dsecureonfirsttransaction" false } ], "directdebittypes" \[ { "name" "bacs", "allowed" true }, { "name" "sepa", "allowed" true } ], "banktransfertypes" \[ { "name" "alipay", "allowed" true }, { "name" "globalcollect", "allowed" false }, { "name" "momo", "allowed" true }, { "name" "przelewy24", "allowed" false }, { "name" "smartlink", "allowed" false } ] } } ]// no content \[ { "contractreference" "", "subscriptiongroup" "", "subscriptiongrouptag" "", "subscriptiongroupstatus" "", "subscriptiondescription" "", "subscriptiontitle" "", "subscriptiontype" "", "subscriptionstatus" "", "initialpricingenabled" false, "trialinfo" { "trialenabled" false, "trialunit" "", "trialperiod" "", "discountpercentage" "", "nonpaymenttrial" false, "trialchargedassingleperiod" false }, "contractinfo" { "contractunit" "", "contractperiod" "", "autorenewdefault" "" }, "pricinginfo" \[ { "currency" "", "initialprice" "", "priceisgross" false, "renewalprice" "", "priceid" "", "taxcategory" "", "resourcereference" "", "paymentmethod" "", "role" "" } ], "allowedpaymentmethods" \[ "" ], "customparameters" \[ { "parametername" "", "parametertype" "", "parametervalue" "" } ], "cancellationdetails" { "cancellationoption" "", "minimumrefundthresholdenabled" false, "minimumrefundthresholds" \[ { "currency" "", "amount" "" } ] }, "images" \[ { "imageid" "", "displayname" "", "filename" "", "default" false, "location" "" } ], "grouplicensing" { "standard" "", "overflow" "" }, "paymentoptions" { "cardtypes" \[ { "name" "", "allowrepeats" false, "use3dsecureforalltransactions" false, "use3dsecureonfirsttransaction" false } ], "directdebittypes" \[ { "name" "", "allowed" false } ], "banktransfertypes" \[ { "name" "", "allowed" false } ] } } ]// •request is invalid // •no subscription found \<br />•the servicegroup specified does not exist // •internal server error
🤔
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.