Skip to main content

history

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

Overview

Namehistory
TypeResource
Idcloudflare.user.history

Fields

The following fields are returned by SELECT queries:

Billing History Details response

NameDatatypeDescription
idstringBilling item identifier tag. (example: b69a9f3492637782896352daae219e7d)
actionstringThe billing item action. (example: subscription)
amountnumberThe amount associated with this billing item.
currencystringThe monetary unit in which pricing information is displayed. (example: USD)
descriptionstringThe billing item description. (example: The billing item description)
occurred_atstring (date-time)When the billing item was created. (example: 2014-03-01T12:21:59.3456Z)
typestringThe billing item type. (example: charge)
zoneobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectpage, per_page, order, occurred_at, type, actionAccesses 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.

NameDatatypeDescription
actionstring
occurred_atstring (date-time)
orderstring
pagenumber
per_pagenumber
typestring

SELECT examples

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 }}'
;