billing_history
Creates, updates, deletes, gets or lists a billing_history
resource.
Overview
Name | billing_history |
Type | Resource |
Id | digitalocean.billing.billing_history |
Fields
The following fields are returned by SELECT
queries:
- billing_history_list
The response will be a JSON object that contains the following attributes
Name | Datatype | Description |
---|---|---|
invoice_id | string | ID of the invoice associated with the billing history entry, if applicable. (example: 123) |
amount | string | Amount of the billing history entry. (example: 12.34) |
date | string (date-time) | Time the billing history entry occurred. (example: 2018-06-01T08:44:38Z) |
description | string | Description of the billing history entry. (example: Invoice for May 2018) |
invoice_uuid | string | UUID of the invoice associated with the billing history entry, if applicable. (example: example-uuid) |
type | string | Type of billing history entry. (example: Invoice) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
billing_history_list | select | To retrieve a list of all billing history entries, send a GET request to /v2/customers/my/billing_history . |
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.
Name | Datatype | Description |
---|
SELECT
examples
- billing_history_list
To retrieve a list of all billing history entries, send a GET request to /v2/customers/my/billing_history
.
SELECT
invoice_id,
amount,
date,
description,
invoice_uuid,
type
FROM digitalocean.billing.billing_history;