history
Creates, updates, deletes, gets or lists a history resource.
Overview
| Name | history |
| Type | Resource |
| Id | cloudflare.user.history |
Fields
The following fields are returned by SELECT queries:
- list
Billing History Details response
| Name | Datatype | Description |
|---|---|---|
id | string | Billing item identifier tag. (example: b69a9f3492637782896352daae219e7d) |
action | string | The billing item action. (example: subscription) |
amount | number | The amount associated with this billing item. |
currency | string | The monetary unit in which pricing information is displayed. (example: USD) |
description | string | The billing item description. (example: The billing item description) |
occurred_at | string (date-time) | When the billing item was created. (example: 2014-03-01T12:21:59.3456Z) |
type | string | The billing item type. (example: charge) |
zone | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | page, per_page, order, occurred_at, type, action | Accesses your billing history object. |
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 |
|---|---|---|
action | string | |
occurred_at | string (date-time) | |
order | string | |
page | number | |
per_page | number | |
type | string |
SELECT examples
- list
Accesses your billing history object.
SELECT
id,
action,
amount,
currency,
description,
occurred_at,
type,
zone
FROM cloudflare.user.history
WHERE page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND order = '{{ order }}'
AND occurred_at = '{{ occurred_at }}'
AND type = '{{ type }}'
AND action = '{{ action }}'
;