Skip to main content

billing_history

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

Overview

Namebilling_history
TypeResource
Iddigitalocean.billing.billing_history

Fields

The following fields are returned by SELECT queries:

The response will be a JSON object that contains the following attributes

NameDatatypeDescription
invoice_idstringID of the invoice associated with the billing history entry, if applicable. (example: 123)
amountstringAmount of the billing history entry. (example: 12.34)
datestring (date-time)Time the billing history entry occurred. (example: 2018-06-01T08:44:38Z)
descriptionstringDescription of the billing history entry. (example: Invoice for May 2018)
invoice_uuidstringUUID of the invoice associated with the billing history entry, if applicable. (example: example-uuid)
typestringType of billing history entry. (example: Invoice)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
billing_history_listselectTo 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.

NameDatatypeDescription

SELECT examples

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;