| http \
GET \
https://api.example.com/api/provider-invoice-items/ \
Authorization:"Token YOUR_API_TOKEN"
|
| from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.provider_invoice_items import provider_invoice_items_list # (1)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = provider_invoice_items_list.sync(client=client)
for item in response:
print(item)
|
- API Source:
provider_invoice_items_list
| import { providerInvoiceItemsList } from 'waldur-js-client';
try {
const response = await providerInvoiceItemsList({
auth: "Token YOUR_API_TOKEN"
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Description |
customer_uuid |
string (uuid) |
|
invoice_month |
integer |
|
invoice_year |
integer |
|
o |
array |
Ordering
|
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) |
|
200 -
The response body is an array of objects, where each object has the following structure:
| Field |
Type |
Description |
uuid |
string (uuid) |
|
url |
string (uri) |
|
name |
string |
|
price |
number (double) |
|
tax |
string (decimal) |
|
total |
string (decimal) |
|
unit_price |
string (decimal) |
|
unit |
string |
Enum: month, quarter, half_month, day, hour, quantity |
factor |
integer |
|
measured_unit |
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. |
article_code |
string |
|
project_name |
string |
|
project_uuid |
string (uuid) |
|
quantity |
string (decimal) |
|
details |
object |
|
details.resource_name |
string |
|
details.resource_uuid |
string (uuid) |
|
details.plan_name |
string |
|
details.plan_uuid |
string (uuid) |
|
details.offering_type |
string |
|
details.offering_name |
string |
|
details.offering_uuid |
string (uuid) |
|
details.service_provider_name |
string |
|
details.service_provider_uuid |
string (uuid) |
|
details.plan_component_id |
integer |
|
details.offering_component_type |
string |
|
details.offering_component_name |
string |
|
details.resource_limit_periods |
array of objects |
|
details.resource_limit_periods.start |
string |
|
details.resource_limit_periods.end |
string |
|
details.resource_limit_periods.quantity |
integer |
|
details.resource_limit_periods.billing_periods |
integer |
|
details.resource_limit_periods.total |
string |
|
resource |
string (uri) |
|
resource_uuid |
string (uuid) |
|
resource_name |
string |
|
billing_type |
string |
|
backend_uuid |
string (uuid) |
|
credit |
boolean |
|