Skip to main content

invoices

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

Overview

Nameinvoices
TypeResource
Idlinode.account.invoices

Fields

The following fields are returned by SELECT queries:

An Invoice object.

NameDatatypeDescription
idintegerRead-only The Invoice's unique ID.
billing_sourcestringFilterable, Read-only akamai: This Invoice was generated according to the terms of an agreement between the customer and Akamai. linode: This Invoice was generated according to the default terms, prices, and discounts. (example: linode)
datestring (date-time)Filterable, Read-only When this Invoice was generated. (example: 2018-01-01T00:01:01)
labelstringFilterable, Read-only The Invoice's display label. (example: Invoice)
subtotalnumberRead-only The amount of the Invoice before taxes in US Dollars.
taxnumberRead-only The amount of tax levied on the Invoice in US Dollars.
tax_summaryarrayRead-only The amount of tax broken down into subtotals by source.
totalnumberFilterable, Read-only The amount of the Invoice after taxes in US Dollars.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_invoiceselectReturns a single Invoice object.

Learn more...

Learn more...
get_invoicesselectpage, page_sizeReturns a paginated list of Invoices against your Account.

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
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples

Returns a single Invoice object.

Learn more...

Learn more...

SELECT
id,
billing_source,
date,
label,
subtotal,
tax,
tax_summary,
total
FROM linode.account.invoices;