Skip to main content
GET
/
v1
/
companies
/
{company-id}
/
invoices
/
{invoice-id}
/
invoice_line_items
Retrieve all InvoiceLineItems that belongs to an Invoice for a Company
curl --request GET \
  --url https://api.tread-horizon.com/v1/companies/{company-id}/invoices/{invoice-id}/invoice_line_items \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "quantity": "<string>",
      "total_amount": "<string>",
      "revenue_rate_value": "<string>",
      "revenue_cost_rate_type": "RateForEach",
      "billing_adjustment_minutes": 123,
      "pay_start_time": "2023-11-07T05:31:56Z",
      "pay_end_time": "2023-11-07T05:31:56Z",
      "invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "delivered_quantity": "<string>",
      "line_item_type": "InvoiceLineItem",
      "rate": "<string>",
      "rate_type": "<string>",
      "material_rate_unit_of_measure": "Load",
      "load": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "quantity": "<string>",
        "unit_of_measure": "Load",
        "load_id": "<string>",
        "ordinality": 123,
        "ticket": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "ticket_number": "<string>",
          "preview_url": "<string>"
        }
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.tread.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Language
string
default:en

The Accept-Language request HTTP header indicates the natural language and locale that the client prefers.

Example:

"en"

Path Parameters

invoice-id
string<uuid>
required

Invoice ID

company-id
string<uuid>
required

Company ID

Query Parameters

page[limit]
integer<int32>
default:25

The maximum number of paginated results to return

Required range: x <= 100
page[after]
string

The cursor to start paginating after

page[before]
string

The cursor to stop paginating at

Response

OK

data
InvoiceLineItem-Read · object[]
required