profiles
Creates, updates, deletes, gets or lists a profiles resource.
Overview
| Name | profiles |
| Type | Resource |
| Id | cloudflare.billing.profiles |
Fields
The following fields are returned by SELECT queries:
- list
Billing Profile Details response
| Name | Datatype | Description |
|---|---|---|
id | string | Billing item identifier tag. (example: b69a9f3492637782896352daae219e7d) |
first_name | string | (example: John) |
last_name | string | (example: Doe) |
payment_first_name | string | (example: John) |
payment_last_name | string | (example: Doe) |
account_type | string | (example: type) |
address | string | (example: 123 Main Street) |
address2 | string | (example: Apt 1) |
balance | string | (example: 0) |
card_expiry_month | integer | |
card_expiry_year | integer | |
card_number | string | (example: 4242424242424242) |
city | string | (example: Anytown) |
company | string | (example: Company) |
country | string | (example: Anycountry) |
created_on | string (date-time) | (example: 2014-03-01T12:21:59.3456Z) |
device_data | string | (example: sample_data) |
edited_on | string (date-time) | (example: 2014-03-01T12:21:59.3456Z) |
enterprise_billing_email | string | (example: johndoe@gmail.com) |
enterprise_primary_email | string | (example: johndoe@gmail.com) |
is_partner | boolean | |
next_bill_date | string (date-time) | (example: 2014-03-01T12:21:59.3456Z) |
payment_address | string | (example: 123 Main Street) |
payment_address2 | string | (example: Apt 1) |
payment_city | string | (example: Anytown) |
payment_country | string | (example: Anycountry) |
payment_email | string | (example: johndoe@gmail.com) |
payment_gateway | string | (example: gateway) |
payment_nonce | string | (example: abc123) |
payment_state | string | (example: state) |
payment_zipcode | string | (example: 12345) |
primary_email | string | (example: johndoe@gmail.com) |
state | string | (example: AnyState) |
tax_id_type | string | (example: type) |
telephone | string | (example: 1234567899) |
use_legacy | boolean | |
validation_code | string | (example: 1111) |
vat | string | (example: GB123456789) |
zipcode | string | (example: 12345) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Gets the current billing profile for the account. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list
Gets the current billing profile for the account.
SELECT
id,
first_name,
last_name,
payment_first_name,
payment_last_name,
account_type,
address,
address2,
balance,
card_expiry_month,
card_expiry_year,
card_number,
city,
company,
country,
created_on,
device_data,
edited_on,
enterprise_billing_email,
enterprise_primary_email,
is_partner,
next_bill_date,
payment_address,
payment_address2,
payment_city,
payment_country,
payment_email,
payment_gateway,
payment_nonce,
payment_state,
payment_zipcode,
primary_email,
state,
tax_id_type,
telephone,
use_legacy,
validation_code,
vat,
zipcode
FROM cloudflare.billing.profiles
WHERE account_id = '{{ account_id }}' -- required
;