Amberflo API
Defining Plan Catalogs
Query a plan catalog by id
1 min
code examples curl location 'https //app amberflo io/payments/pricing/amberflo/account pricing/plan catalog' \\ \ 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 //app amberflo io/payments/pricing/amberflo/account pricing/plan catalog", 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 //app amberflo io/payments/pricing/amberflo/account pricing/plan catalog") 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 //app amberflo io/payments/pricing/amberflo/account pricing/plan catalog" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful request { "id" "", "detailedplancatalogitems" \[ { "id" "", "planid" "", "name" "", "entitlements" \[ "" ], "prepaidpaymentsoptions" \[ { "id" "", "prepaidpromotionid" "", "price" 0, "discountreflected" 0, "expirationindays" "", "description" "", "futuremoney" 0, "futureusage" { "itemid" "", "description" "" } } ], "trialperiodindays" 0, "trialperiodplanid" "", "isdefault" false, "iscreditcardrequired" false, "productplan" { "id" "", "productid" "", "productitempriceidsmap" "", "billingperiod" { "interval" "", "intervalscount" "" }, "planlevelfreetier" 0, "invoicebasedfeeids" \[ "" ], "planminimumpayment" 0, "minimumpaymentgranularity" "", "productplanname" "", "description" "", "lastupdatetimeinmillis" "", "feemap" "", "entitlements" \[ { "id" "", "label" "", "apiname" "" } ], "lockingstatus" "", "isdefault" false, "successorplanid" "", "transitionstrategy" "", "type" "", "prepaidbuyingrules" { "planfixedfeeidstoprepay" \[ "" ], "planrecurringprepaidamount" 0, "productitemrecurringprepaidamount" \[ { "productitemid" "", "prepaidamount" 0 } ], "walletminprepaidavailable" 0, "productitemminprepaidavailable" "" }, "plangenerator" {}, "plancurrency" "usd", "realtimepricing" false }, "totalfixprice" 0, "billingperiod" { "interval" "", "intervalscount" "" } } ], "customplancatalogitems" \[ { "id" "", "name" "", "entitlements" \[ "" ] } ] }