Accounting API
Instalment Plans
Retrieve Instalment Plan
path parameters id the id of the instalment plan to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/instalments/retrieve/ad99e198 c19b 4680 84e4 0209c2f943d4") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body curl location request get 'https //api tamio com/v2/instalments/retrieve/ad99e198 c19b 4680 84e4 0209c2f943d4' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/instalments/retrieve/ad99e198 c19b 4680 84e4 0209c2f943d4", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "instalment plan" { "object" "instalment plan", "label" "payment plan 3", "interval" 1, "cycle" "month", "upfront" 0, "interest" 0, "instalments" 3, "countries" null, "created at" 1682437120, "id" "ad99e198 c19b 4680 84e4 0209c2f943d4", "sales" 0, "customers" 0 } }