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/driver-invoices/{id}/ \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.example.com/v2/driver-invoices/{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/driver-invoices/{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/driver-invoices/{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/driver-invoices/{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/driver-invoices/{id}/") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.example.com/v2/driver-invoices/{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, "invoice_number": "<string>", "agreement": { "id": 123, "vehicle": { "id": 123, "plate_number": "<string>", "plate_state": "NY", "vehicle_number": "<string>", "vehicle_make": "<string>", "vehicle_model": "<string>", "year": "<string>" }, "driver": { "id": 123, "first_name": "<string>", "address_line_1": "<string>", "city": "<string>", "zip": "<string>", "driver_id": "<string>", "last_name": "<string>", "address_line_2": "<string>", "state": "<string>", "contact_number": "<string>", "email": [ "jsmith@example.com" ] }, "status": "<string>", "agreement_start_date": "2023-11-07T05:31:56Z", "date_added": "2023-11-07T05:31:56Z", "last_updated": "2023-11-07T05:31:56Z", "agreement_number": "<string>", "agreement_status": "ACTIVE", "agreement_end_date": "2023-11-07T05:31:56Z", "plan": "<string>", "billing_plan": 123 }, "driver": { "id": 123, "first_name": "<string>", "address_line_1": "<string>", "city": "<string>", "zip": "<string>", "driver_id": "<string>", "last_name": "<string>", "address_line_2": "<string>", "state": "<string>", "contact_number": "<string>", "email": [ "jsmith@example.com" ] }, "fleet": 123, "status": "DRAFT", "trigger": "PROGRESSIVE", "plan_snapshot": "<unknown>", "grace_period_ends_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z", "finalized_at": "2023-11-07T05:31:56Z", "payment_due_date": "2023-11-07T05:31:56Z", "is_overdue": true, "total": "<string>", "draft_total": "<string>", "credited_amount": 123, "balance": 123, "pdf_status": "PENDING", "pdf_file": "<string>", "fees": "<string>", "fee_adjustments": [ { "id": 123, "charge_snapshot_index": 1073741823, "original_quantity": "<string>", "original_unit_amount": "<string>", "created_at": "2023-11-07T05:31:56Z", "override_quantity": "<string>", "override_unit_amount": "<string>", "reason": "<string>" } ], "tickets": [ { "id": 123, "amount": "<string>", "transaction_date": "2023-12-25", "exit_time": "<string>", "exit_plaza": "<string>", "agency": "<string>", "driver_agreement": 123 } ], "exchanges": "<string>", "payment_status": "PENDING" }
Retrieve a single driver invoice with fees, tickets, and adjustments.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
DRAFT
FINALIZED
VOID
PROGRESSIVE
AGREEMENT_ENDED
LATE_TICKET
MANUAL
Full snapshot of plan + charges at creation time.
Null during DRAFT; computed and locked on finalization.
^-?\d{0,10}(?:\.\d{0,2})?$
Materialized running total while in DRAFT; nulled on finalization.
Null = PDF never requested. Set to PENDING when task is enqueued.
PENDING
IN_PROGRESS
COMPLETE
SUCCEEDED
FAILED
Was this page helpful?