invoice_items
Creates, updates, deletes, gets or lists an invoice_items resource.
Overview
| Name | invoice_items |
| Type | Resource |
| Id | linode.account.invoice_items |
Fields
The following fields are returned by SELECT queries:
- list
A paginated list of InvoiceItem objects.
| Name | Datatype | Description |
|---|---|---|
amount | number | Read-only The price, in US dollars, of the Invoice Item. Equal to the unit price multiplied by quantity. |
from | string (date-time) | Read-only The date the Invoice Item started, based on month. (example: 2018-01-01T00:01:01) |
label | string | Read-only The Invoice Item's display label. (example: Linode 123) |
quantity | integer | Read-only The quantity of this Item for the specified Invoice. |
region | string | Read-only The ID of the applicable Region associated with this Invoice Item. null if there is no applicable Region. (example: us-west) |
tax | number | Read-only The amount of tax levied on this Item in US Dollars. |
to | string (date-time) | Read-only The date the Invoice Item ended, based on month. (example: 2018-01-31T11:59:59) |
total | number | Read-only The price of this Item after taxes in US Dollars. |
type | string | Read-only The type of service, ether hourly or misc. (hourly, misc) (example: hourly) |
unit_price | string | Read-only The monthly service fee in US Dollars for this Item. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | invoiceId | page, page_size | Returns a paginated list of Invoice items. Learn more... Learn more... |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
invoiceId | string | The ID of the Invoice. |
page | integer | The page of a collection to return. |
page_size | integer | The number of items to return per page. |
SELECT examples
- list
Returns a paginated list of Invoice items.
Learn more...
Learn more...
SELECT
amount,
from,
label,
quantity,
region,
tax,
to,
total,
type,
unit_price
FROM linode.account.invoice_items
WHERE invoiceId = '{{ invoiceId }}' -- required
AND page = '{{ page }}'
AND page_size = '{{ page_size }}'
;