Invoice Items
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/invoice-items/ |
List Invoice Items |
| GET | /api/invoice-items/{uuid}/ |
Retrieve |
| POST | /api/invoice-items/{uuid}/create_compensation/ |
Create compensation invoice item for selected invoice item |
| PUT | /api/invoice-items/{uuid}/ |
Update |
| PATCH | /api/invoice-items/{uuid}/ |
Partial Update |
| DELETE | /api/invoice-items/{uuid}/ |
Delete |
| Other Actions | ||
| GET | /api/invoice-items/{uuid}/consumptions/ |
Consumptions |
| GET | /api/invoice-items/costs/ |
Get costs breakdown for a project by year and month |
| GET | /api/invoice-items/customer_costs_for_period/ |
Customer costs for period |
| GET | /api/invoice-items/project_costs_for_period/ |
Get resource cost breakdown for a project over a specified period |
| GET | /api/invoice-items/total_price/ |
Calculate total price for filtered invoice items |
| POST | /api/invoice-items/{uuid}/migrate_to/ |
Move invoice item from one invoice to another one |
Core CRUD
List Invoice Items
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
invoice_items_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
credit_uuid |
string (uuid) | |
customer_uuid |
string (uuid) | |
month |
integer | |
offering_uuid |
string (uuid) | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
project_uuid |
string (uuid) | |
resource_uuid |
string (uuid) | |
start_month |
number | Start month |
start_year |
number | Start year |
year |
integer |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
invoice |
string (uri) | |
resource |
string (uri) | |
uuid |
string (uuid) | |
article_code |
string | |
unit_price |
string (decimal) | |
unit |
string | Enum: month, quarter, half_month, day, hour, quantity |
quantity |
string (decimal) | |
measured_unit |
string | Unit of measurement, for example, GB. |
name |
string | |
start |
string (date-time) | Date and time when item usage has started. |
end |
string (date-time) | Date and time when item usage has ended. |
price |
number (double) | |
details |
any | Stores data about scope |
offering_uuid |
string (uuid) | |
offering_name |
string | |
offering_component_type |
string | |
project_uuid |
string (uuid) | |
project_name |
string | |
customer_uuid |
string (uuid) | |
customer_name |
string |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
invoice_items_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
invoice |
string (uri) | |
resource |
string (uri) | |
uuid |
string (uuid) | |
article_code |
string | |
unit_price |
string (decimal) | |
unit |
string | Enum: month, quarter, half_month, day, hour, quantity |
quantity |
string (decimal) | |
measured_unit |
string | Unit of measurement, for example, GB. |
name |
string | |
start |
string (date-time) | Date and time when item usage has started. |
end |
string (date-time) | Date and time when item usage has ended. |
price |
number (double) | |
details |
any | Stores data about scope |
offering_uuid |
string (uuid) | |
offering_name |
string | |
offering_component_type |
string | |
project_uuid |
string (uuid) | |
project_name |
string | |
customer_uuid |
string (uuid) | |
customer_name |
string |
Create compensation invoice item for selected invoice item
Create compensation invoice item for selected invoice item.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
InvoiceItemCompensationRequest - API Source:
invoice_items_create_compensation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required | Description |
|---|---|---|---|
offering_component_name |
string | ✓ | Name of the offering component for compensation |
201 -
| Field | Type |
|---|---|
invoice_item_uuid |
string (uuid) |
Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
InvoiceItemUpdateRequest - API Source:
invoice_items_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required | Description |
|---|---|---|---|
article_code |
string | ||
quantity |
string (decimal) | ||
unit_price |
string (decimal) | ||
start |
string (date-time) | Date and time when item usage has started. | |
end |
string (date-time) | Date and time when item usage has ended. |
200 -
| Field | Type | Description |
|---|---|---|
article_code |
string | |
quantity |
string (decimal) | |
unit_price |
string (decimal) | |
start |
string (date-time) | Date and time when item usage has started. |
end |
string (date-time) | Date and time when item usage has ended. |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedInvoiceItemUpdateRequest - API Source:
invoice_items_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required | Description |
|---|---|---|---|
article_code |
string | ||
quantity |
string (decimal) | ||
unit_price |
string (decimal) | ||
start |
string (date-time) | Date and time when item usage has started. | |
end |
string (date-time) | Date and time when item usage has ended. |
200 -
| Field | Type | Description |
|---|---|---|
article_code |
string | |
quantity |
string (decimal) | |
unit_price |
string (decimal) | |
start |
string (date-time) | Date and time when item usage has started. |
end |
string (date-time) | Date and time when item usage has ended. |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
invoice_items_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Consumptions
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- API Source:
invoice_items_consumptions_list
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type | Description |
|---|---|---|
credit_uuid |
string (uuid) | |
customer_uuid |
string (uuid) | |
month |
integer | |
offering_uuid |
string (uuid) | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
project_uuid |
string (uuid) | |
resource_uuid |
string (uuid) | |
start_month |
number | Start month |
start_year |
number | Start year |
year |
integer |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
month |
string |
price |
string (decimal) |
Get costs breakdown for a project by year and month
Get costs breakdown for a project by year and month.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
invoice_items_costs_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
project_uuid |
string (uuid) | UUID of the project for which statistics should be calculated. |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
price |
number (double) |
year |
integer |
month |
integer |
items |
array of objects |
items.name |
string |
items.unit_price |
string (decimal) |
items.unit |
string |
items.quantity |
string (decimal) |
items.measured_unit |
string |
items.price |
number (double) |
Customer costs for period
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
invoice_items_customer_costs_for_period_retrieve
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
customer_uuid |
string (uuid) | UUID of the project for which statistics should be calculated. |
period |
integer | Period for which statistics should be calculated. |
200 -
| Field | Type |
|---|---|
total_price |
string |
start_date |
string (date) |
end_date |
string (date) |
Get resource cost breakdown for a project over a specified period
Get resource cost breakdown for a project over a specified period.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
invoice_items_project_costs_for_period_retrieve
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
period |
integer | Period for which statistics should be calculated (1, 3 or 12 months). |
project_uuid |
string (uuid) | UUID of the project for which statistics should be calculated. |
200 -
| Field | Type |
|---|---|
total_price |
string |
start_date |
string (date) |
end_date |
string (date) |
Calculate total price for filtered invoice items
Calculate total price for filtered invoice items.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
invoice_items_total_price_retrieve
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
credit_uuid |
string (uuid) | |
customer_uuid |
string (uuid) | |
month |
integer | |
offering_uuid |
string (uuid) | |
project_uuid |
string (uuid) | |
resource_uuid |
string (uuid) | |
start_month |
number | Start month |
start_year |
number | Start year |
year |
integer |
200 -
| Field | Type | Description |
|---|---|---|
total_price |
string (decimal) | Total price for the invoice item |
Move invoice item from one invoice to another one
Move invoice item from one invoice to another one.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
- Model Source:
InvoiceItemMigrateToRequest - API Source:
invoice_items_migrate_to
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
invoice |
string (uri) | ✓ |
200 -
| Field | Type |
|---|---|
invoice_item_uuid |
string (uuid) |