Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.example.com/v2/billing-plans/{id}/ \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.example.com/v2/billing-plans/{id}/" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.example.com/v2/billing-plans/{id}/', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.example.com/v2/billing-plans/{id}/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.example.com/v2/billing-plans/{id}/" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.get("https://api.example.com/v2/billing-plans/{id}/") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.example.com/v2/billing-plans/{id}/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
{ "id": 123, "fleet": 123, "name": "<string>", "created_at": "2023-11-07T05:31:56Z", "is_active": true, "progressive_billing_threshold": "<string>", "grace_period_hours": -1, "late_ticket_grace_period_hours": -1, "progressive_grace_period_hours": -1, "payment_due_hours": -1, "effective_date": "2023-12-25", "payment_instructions": "<string>", "charges": [ { "description": "<string>", "aggregation_type": "count", "amount": "<string>", "id": 123, "aggregation_field": "amount", "filters": "<unknown>", "source_type": "<string>", "order": 1073741823, "display_aggregated_value": true, "display_rate_value": true } ] }
Retrieve a single billing plan.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
255
Cumulative unbilled usage that triggers a mid-agreement invoice. None = only bill on agreement end.
^-?\d{0,8}(?:\.\d{0,2})?$
Hours after invoice creation before it may be finalized.
-2147483648 <= x <= 2147483647
Hours a LATE_TICKET draft stays open to batch incoming late tickets before finalization.
Hours a PROGRESSIVE draft stays open before it may be finalized.
Number of hours when payment is due after finalizations.
Agreements that ended before this date will not generate invoices. Null means no restriction.
HTML rendered in the Payment Instructions section of driver invoice PDFs.
Show child attributes
Was this page helpful?