API Reference
Account Groups
Retrieve All Subscriptions
1min
code examples curl location globoff 'https //api fictive com/rest/api/accounts/groups/{accountgrouptoken}/subscriptions' \\ \ 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/accounts/groups/{accountgrouptoken}/subscriptions", 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/accounts/groups/{accountgrouptoken}/subscriptions") 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/accounts/groups/{accountgrouptoken}/subscriptions" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "subscriptions" \[ { "accountsubscriptioninfo" { "expirydate" "2021 09 21t05 33 09 4477272", "firstnondiscountedbillingpointutc" "2021 08 21t05 33 09 4477272", "lastdiscountedbillingpointutc" "2021 07 21t05 33 09 4477272", "paymentmethod" "creditdebitcard", "recurringpaymentinfo" { "subscriptionreference" 123455, "resourcereference" "resourcereference", "configuredsubscriptionprice" 10, "subscribedprice" 10 21, "currency" "gbp", "recurringpaymentenable" false, "subscriptionlockedin" false, "nextpaymentdate" "2021 10 21t05 33 09 4477272", "previousbillinginfo" { "subscriptionpriceid" 94852, "totalamount" 10, "totaltaxamount" 8 33, "totalnetamount" 1 667, "billingdate" "2021 09 20t05 33 09 4477272", "paymentdate" "2021 09 20t05 33 09 4477272", "taxinfo" \[ { "regionname" "gbr", "regiontype" "country", "displayname" "united kingdom", "category" "standard", "rate" 20, "amount" 1 667 } ], "priceitems" \[ { "thirdpartyref" "tom10234", "supplierid" 123, "price" 1, "description" "price item description", "isgrossamount" true, "taxcategoryname" "standard category" } ] }, "groupsubscriptioninfo" { "licenselevel" 1, "overflowlevel" 0, "subscriberlist" \[ { "subscriptionid" 40000, "emailaddress" "testuser\@test test", "clientuserid" "testuser" } ], "overflowcount" 0, "fullsubscriptionscount" 1, "currentuserinoverflow" true, "accountgrouptoken" "00000000 0000 0000 0000 000000000000" }, "vouchercodes" { "vouchercode" "abdr5467yy", "discountprice" 6 }, "customparameters" { "name1" "value1" } }, "paymentscheduleinfo" { "startdate" "2021 08 21t05 33 09 4477272", "frequency" "monthly", "totalamount" 10, "paymentdayoffset" 10, "paymentday" 15, "currency" "gbp", "paymentmethod" "creditdebitcard", "scheduledpayments" \[ { "orderid" 1345, "orderdate" "2021 09 19t05 33 09 4477272", "status" "completed", "priceinfo" { "grossamount" 10, "netamount" 8 33, "totaltaxamount" 1 667, "taxinfo" \[ { "regionname" "gbr", "regiontype" "country", "displayname" "united kindom", "category" "standard", "rate" 20, "amount" 1 667 } ] } } ] } }, "defaultsubscriptioninfo" { "customparameters" { "origin" "facebook" }, "subscriptionid" 40000, "subscriptionstatus" "active", "subscriptiontitle" "subscriptiontitle", "subscriptiongroup" "subscriptiongroup", "licenselevel" 0 } }, { "accountsubscriptioninfo" { "expirydate" "2021 09 21t05 33 09 4477272", "firstnondiscountedbillingpointutc" "2021 08 21t05 33 09 4477272", "lastdiscountedbillingpointutc" "2021 07 21t05 33 09 4477272", "paymentmethod" "creditdebitcard", "recurringpaymentinfo" { "subscriptionreference" 223455, "configuredsubscriptionprice" 10, "subscribedprice" 11 21, "currency" "usd", "recurringpaymentenable" false, "subscriptionlockedin" false, "nextpaymentdate" "2021 10 21t05 33 09 4477272", "previousbillinginfo" { "subscriptionpriceid" 104852, "totalamount" 12, "totaltaxamount" 9 33, "totalnetamount" 2 667, "billingdate" "2021 09 20t05 33 09 4477272", "paymentdate" "2021 09 20t05 33 09 4477272", "taxinfo" \[ { "regionname" "gbr", "regiontype" "country", "displayname" "united kingdom", "category" "standard", "rate" 20, "amount" 1 667 } ], "priceitems" \[ { "thirdpartyref" "tom10234", "supplierid" 123, "price" 1, "description" "price item description", "isgrossamount" true, "taxcategoryname" "standard category" } ] }, "groupsubscriptioninfo" { "licenselevel" 1, "overflowlevel" 0, "subscriberlist" \[ { "subscriptionid" 50000, "emailaddress" "testuser\@test test", "clientuserid" "testuser" } ], "overflowcount" 0, "fullsubscriptionscount" 1, "currentuserinoverflow" true, "accountgrouptoken" "00000000 0000 0000 0000 000000000000" }, "vouchercodes" { "vouchercode" "abdr5467yy", "discountprice" 6 }, "customparameters" { "name1" "value1" } }, "paymentscheduleinfo" { "startdate" "2021 08 21t05 33 09 4477272", "frequency" "monthly", "totalamount" 11, "paymentdayoffset" 10, "paymentday" 15, "currency" "usd", "paymentmethod" "creditdebitcard", "scheduledpayments" \[ { "orderid" 2345, "orderdate" "2021 09 19t05 33 09 4477272", "status" "completed", "priceinfo" { "grossamount" 12, "netamount" 9 33, "totaltaxamount" 2 667, "taxinfo" \[ { "regionname" "usd", "regiontype" "country", "displayname" "united kindom", "category" "standard", "rate" 20, "amount" 1 667 } ] } } ] } }, "defaultsubscriptioninfo" { "customparameters" { "origin" "facebook" }, "subscriptionid" 50000, "subscriptionstatus" "active", "subscriptiontitle" "subscriptiontitle", "subscriptiongroup" "subscriptiongroup", "licenselevel" 0 } } ] }// no subscriptions found { "subscriptions" \[ { "accountsubscriptioninfo" { "expirydate" "2021 09 21t05 33 08 6977114", "firstnondiscountedbillingpointutc" "2021 09 21t05 33 08 6977114", "lastdiscountedbillingpointutc" "2021 09 21t05 33 08 6977114", "paymentmethod" "", "recurringpaymentinfo" { "subscriptionreference" "", "resourcereference" "", "configuredsubscriptionprice" "", "subscribedprice" "", "currency" "", "recurringpaymentenable" false, "subscriptionlockedin" false, "nextpaymentdate" "2021 09 21t05 33 08 8070955", "previousbillinginfo" { "subscriptionpriceid" "", "totalamount" "", "totaltaxamount" "", "totalnetamount" "", "billingdate" "2021 09 21t05 33 08 932098", "paymentdate" "2021 09 21t05 33 08 932098", "taxinfo" \[ { "regionname" "", "regiontype" "", "displayname" "", "category" "", "rate" "", "amount" "" } ], "priceitems" \[ { "thirdpartyref" "", "supplierid" "", "price" "", "description" "", "isgrossamount" false, "taxcategoryname" "" } ] }, "groupsubscriptioninfo" { "licenselevel" "", "overflowlevel" "", "subscriberlist" \[ { "subscriptionid" "", "emailaddress" "", "clientuserid" "" } ], "overflowcount" "", "fullsubscriptionscount" "", "currentuserinoverflow" false, "accountgrouptoken" "" }, "vouchercodes" { "vouchercode" "", "discountprice" "" }, "statusinfo" { "statusid" "", "statusdescription" "" }, "customparameters" {} }, "paymentscheduleinfo" { "startdate" "2021 09 21t05 33 08 8852189", "frequency" "", "totalamount" "", "paymentdayoffset" "", "paymentday" "", "currency" "", "paymentmethod" "", "scheduledpayments" \[ { "orderid" "", "orderdate" "2021 09 21t05 33 09 1508505", "status" "", "priceinfo" { "grossamount" "", "netamount" "", "totaltaxamount" "", "taxinfo" \[ { "regionname" "", "regiontype" "", "displayname" "", "category" "", "rate" "", "amount" "" } ] } } ], "statusinfo" { "statusid" "", "statusdescription" "" } } }, "defaultsubscriptioninfo" { "customparameters" {}, "subscriptionid" "", "subscriptionstatus" "", "subscriptiontitle" "", "subscriptiongroup" "", "licenselevel" "" } } ] }// request is invalid // unable to authenticate using the provided session // 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.