curl --request GET \
--url https://api.example.com/v2/driver/invoices/ \
--header 'Authorization: Bearer <token>'{
"count": 123,
"results": [
{
"id": 123,
"driver": {
"id": 123,
"first_name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"email": [
"jsmith@example.com"
],
"driver_id": "<string>",
"last_name": "<string>",
"address_line_2": "<string>",
"contact_number": "<string>"
},
"invoice_number": "<string>",
"amount": "<string>",
"file": "<string>",
"file_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"payment_status": "pending"
}
],
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}Retrieve all driver invoices.
curl --request GET \
--url https://api.example.com/v2/driver/invoices/ \
--header 'Authorization: Bearer <token>'{
"count": 123,
"results": [
{
"id": 123,
"driver": {
"id": 123,
"first_name": "<string>",
"address_line_1": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"email": [
"jsmith@example.com"
],
"driver_id": "<string>",
"last_name": "<string>",
"address_line_2": "<string>",
"contact_number": "<string>"
},
"invoice_number": "<string>",
"amount": "<string>",
"file": "<string>",
"file_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"payment_status": "pending"
}
],
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Number of results to return per page.
The initial index from which to return the results.
Which field to use when ordering the results.
A search term.
Was this page helpful?