Billing Cloud
Product Items

Get product item price by ID

1min
code examples curl location 'https //app amberflo io/payments/pricing/amberflo/account pricing/product item price?id=string' \\ \ 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/product item price?id=string", 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/product item price?id=string") 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/product item price?id=string" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful response { "id" "price id 1", "lastupdatetimeinmillis" 1634057849790, "lockingstatus" "open", "price" { "type" "max reducer", "granularity" "entire invoice period", "nextnode" { "type" "leafnode", "tiers" \[ { "startafterunit" 100, "batchsize" 1, "priceperbatch" 0 12 } ] } }, "productitemid" "product item 1", "productitempricename" "api calls rate" }