invoices
Creates, updates, deletes, gets or lists a invoices
resource.
Overview
Name | invoices |
Type | Resource |
Id | digitalocean.billing.invoices |
Fields
Name | Datatype | Description |
---|---|---|
description | string | Description of the invoice item. |
amount | string | Billed amount of this invoice item. Billed in USD. |
duration | string | Duration of time this invoice item was used and subsequently billed. |
duration_unit | string | Unit of time for duration. |
end_time | string | Time the invoice item stopped being billed for usage. |
group_description | string | Description of the invoice item when it is a grouped set of usage, such as DOKS or databases. |
product | string | Name of the product being billed in the invoice item. |
project_name | string | Name of the DigitalOcean Project this resource belongs to. |
resource_id | string | ID of the resource billing in the invoice item if available. |
resource_uuid | string | UUID of the resource billing in the invoice item if available. |
start_time | string | Time the invoice item began to be billed for usage. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
invoices_get_by_uuid | SELECT | invoice_uuid | To retrieve the invoice items for an invoice, send a GET request to /v2/customers/my/invoices/$INVOICE_UUID . |
invoices_list | SELECT |
| To retrieve a list of all invoices, send a GET request to /v2/customers/my/invoices . |
invoices_get_csv_by_uuid | EXEC | invoice_uuid | To retrieve a CSV for an invoice, send a GET request to /v2/customers/my/invoices/$INVOICE_UUID/csv . |
invoices_get_pdf_by_uuid | EXEC | invoice_uuid | To retrieve a PDF for an invoice, send a GET request to /v2/customers/my/invoices/$INVOICE_UUID/pdf . |
SELECT
examples
To retrieve a list of all invoices, send a GET request to /v2/customers/my/invoices
.
SELECT
description,
amount,
duration,
duration_unit,
end_time,
group_description,
product,
project_name,
resource_id,
resource_uuid,
start_time
FROM digitalocean.billing.invoices
;