Skip to main content

invoices_summaries

Creates, updates, deletes, gets or lists a invoices_summaries resource.

Overview

Nameinvoices_summaries
TypeResource
Iddigitalocean.billing.invoices_summaries

Fields

NameDatatypeDescription
amountstringTotal amount of the invoice, in USD. This will reflect month-to-date usage in the invoice preview.
billing_periodstringBilling period of usage for which the invoice is issued, in YYYY-MM format.
credits_and_adjustmentsobjectA summary of the credits and adjustments contributing to the invoice.
invoice_idstringID of the invoice
invoice_uuidstringUUID of the invoice
overagesobjectA summary of the overages contributing to the invoice.
product_chargesobjectA summary of the product usage charges contributing to the invoice. This will include an amount, and grouped aggregates by resource type under the items key.
taxesobjectA summary of the taxes contributing to the invoice.
user_billing_addressobjectThe billing address of the customer being invoiced.
user_companystringCompany of the DigitalOcean customer being invoiced, if set.
user_emailstringEmail of the DigitalOcean customer being invoiced.
user_namestringName of the DigitalOcean customer being invoiced.

Methods

NameAccessible byRequired ParamsDescription
invoices_get_summary_by_uuidSELECTinvoice_uuidTo retrieve a summary for an invoice, send a GET request to /v2/customers/my/invoices/$INVOICE_UUID/summary.

SELECT examples

To retrieve a summary for an invoice, send a GET request to /v2/customers/my/invoices/$INVOICE_UUID/summary.

SELECT
amount,
billing_period,
credits_and_adjustments,
invoice_id,
invoice_uuid,
overages,
product_charges,
taxes,
user_billing_address,
user_company,
user_email,
user_name
FROM digitalocean.billing.invoices_summaries
WHERE invoice_uuid = '{{ invoice_uuid }}';