Accounting API
Instalment Plans
List All Instalment Plans
this api endpoint ( get get ) retrieves all your tax rates the response is paginated; therefore, you should use the 'page' parameter for navigating through the results in subsequent requests on successful completion, it returns an array of instalment plan object docid\ gzq8y0kheq6ds0tzu6pfa the number of available results and the flags used for filtering permissions taxes view query parameters page fetch the results from a specific page it defaults to 1 per page the number of results to fetch per page the maximum is 50 and if it defaults to 10 require "uri" require "net/http" url = uri("https //api tamio com/v2/instalments/list?page=1\&per page=10") 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/list?page=1\&per page=10' \\ \ 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/list?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "instalment plans" \[ { "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 } ], "total results" 1, "page" 1, "per page" 10 }