Billing App APIs
Ready to Bill Dashboard
Get transporter ready to bill dashboard
1 min
code examples curl location globoff 'https //{tenant id} {stack base domain}/tms/api/v1/billing/fleet/ready to bill transporter/dashboard' \\ \ 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 //{tenant id} {stack base domain}/tms/api/v1/billing/fleet/ready to bill transporter/dashboard", 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 //{tenant id} {stack base domain}/tms/api/v1/billing/fleet/ready to bill transporter/dashboard") 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 //{tenant id} {stack base domain}/tms/api/v1/billing/fleet/ready to bill transporter/dashboard" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // ready to bill dashboard data retrieved successfully { "data" { "totalcount" 8, "totalamount" 5200, "pertripftl" { "count" 8, "amount" 5200 }, "usagebasedftl" { "count" 0, "amount" "" } }, "success" true }// bad request invalid parameters or missing required headers { "success" false, "error" { "code" 400, "message" "missing required transporter id" } }// forbidden no accessible shippers found or insufficient permissions { "success" false, "error" { "code" 403, "message" "no accessible shippers found" } }// internal server error { "success" false, "error" { "code" 500, "message" "internal server error" } }
