Get Invoice Items for a Project
You can use this endpoint to retrieve a paginated list of invoice items belonging to a given project. It supports the same filters as the list invoice items endpoint, except project_id, which is set implicitly from the path.
Request
GET /api/v1/projects/{project}/invoice-items
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/projects/1/invoice-items' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Response
{
"data": [
{
"id": 1,
"invoice_id": 101,
"project_id": 1,
"description": "Software Development Services",
"quantity": 40,
"unit_price": 85.00,
"total_price": 3400.00,
"tax_rate": 19.0,
"tax_amount": 646.00,
"net_amount": 3400.00,
"gross_amount": 4046.00,
"created": "2024-01-15T10:30:00.000000Z",
"modified": "2024-01-15T10:30:00.000000Z"
},
{
"id": 2,
"invoice_id": 102,
"project_id": 1,
"description": "Consulting Services",
"quantity": 20,
"unit_price": 120.00,
"total_price": 2400.00,
"tax_rate": 19.0,
"tax_amount": 456.00,
"net_amount": 2400.00,
"gross_amount": 2856.00,
"created": "2024-02-01T14:20:00.000000Z",
"modified": "2024-02-01T14:20:00.000000Z"
}
]
}Path parameters
- Name
project- Type
- integer
- Description
The project ID.
Optional Parameters
- Name
status- Type
- integer[]
- Description
Filter by status. Accepts a single value or an array (
status[]=0&status[]=1). Values:0= PLANNED,1= APPROVED,2= BILLED,3= CANCELED.
- Name
planned_from- Type
- string
- Description
Filter items with
planned_dategreater than or equal to this date (inclusive, formatYYYY-MM-DD).
- Name
planned_to- Type
- string
- Description
Filter items with
planned_dateless than or equal to this date (inclusive, formatYYYY-MM-DD).
- Name
limit- Type
- integer
- Description
Number of results per page (default 15, maximum 200).
- Name
page- Type
- integer
- Description
Page number (default 1).