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 The source of service charges for this invoice. A value of akamai indicates an invoice generated according to the terms of an agreement between the customer and Akamai. A value of linode indicates an invoice was generated according to the default terms, prices, and discounts. (akamai, linode) (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
getselectinvoiceIdReturns a single Invoice object.

Learn more...

Learn more...
listselectX-Filter, page, 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
invoiceIdstringThe ID of the Invoice.
X-FilterSpecifies a JSON object to filter down the results. See Filtering and sorting for details. (example: {{X-Filter}})
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
WHERE invoiceId = '{{ invoiceId }}' -- required
;