curl --request POST \
--url https://api.tread-horizon.com/v1/companies/{company-id}/invoices/{invoice-id}/invoice_line_items/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rate_value": 123,
"rate_type": "RatePerHour"
}
'{
"data": [
{
"quantity": "<string>",
"delivered_quantity": "<string>",
"rate": "<string>",
"rate_type": "RatePerHour",
"total_amount": "<string>",
"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>",
"line_item_type": "InvoiceLineItem",
"load_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}Generate InvoiceLineItems for an Invoice for a Company
This endpoint only generates the InvoiceLineItems based on the inputs and does not store any data on the backend
curl --request POST \
--url https://api.tread-horizon.com/v1/companies/{company-id}/invoices/{invoice-id}/invoice_line_items/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rate_value": 123,
"rate_type": "RatePerHour"
}
'{
"data": [
{
"quantity": "<string>",
"delivered_quantity": "<string>",
"rate": "<string>",
"rate_type": "RatePerHour",
"total_amount": "<string>",
"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>",
"line_item_type": "InvoiceLineItem",
"load_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Accept-Language request HTTP header indicates the natural language and locale that the client prefers.
"en"
OK
Show child attributes