Skip to main content

invoice_items

Creates, updates, deletes, gets or lists an invoice_items resource.

Overview

Nameinvoice_items
TypeResource
Idlinode.account.invoice_items

Fields

The following fields are returned by SELECT queries:

A paginated list of InvoiceItem objects.

NameDatatypeDescription
amountnumberRead-only The price, in US dollars, of the Invoice Item. Equal to the unit price multiplied by quantity.
fromstring (date-time)Read-only The date the Invoice Item started, based on month. (example: 2018-01-01T00:01:01)
labelstringRead-only The Invoice Item's display label. (example: Linode 123)
quantityintegerRead-only The quantity of this Item for the specified Invoice.
regionstringRead-only The ID of the applicable Region associated with this Invoice Item. null if there is no applicable Region. (example: us-west)
taxnumberRead-only The amount of tax levied on this Item in US Dollars.
tostring (date-time)Read-only The date the Invoice Item ended, based on month. (example: 2018-01-31T11:59:59)
totalnumberRead-only The price of this Item after taxes in US Dollars.
typestringRead-only The type of service, ether hourly or misc. (hourly, misc) (example: hourly)
unit_pricestringRead-only The monthly service fee in US Dollars for this Item.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectinvoiceIdpage, page_sizeReturns 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.

NameDatatypeDescription
invoiceIdstringThe ID of the Invoice.
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

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 }}'
;