---
title: Accounts
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Accounts

##### [List Accounts](https://developers.cloudflare.com/api/go/resources/accounts/methods/list)

client.Accounts.List(ctx, query) (\*V4PagePaginationArray\[[Account](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>)], error)

GET/accounts

##### [Account Details](https://developers.cloudflare.com/api/go/resources/accounts/methods/get)

client.Accounts.Get(ctx, query) (\*[Account](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>), error)

GET/accounts/{account\_id}

##### [Create an Account](https://developers.cloudflare.com/api/go/resources/accounts/methods/create)

client.Accounts.New(ctx, params) (\*[Account](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>), error)

POST/accounts

##### [Update Account](https://developers.cloudflare.com/api/go/resources/accounts/methods/update)

client.Accounts.Update(ctx, params) (\*[Account](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}

##### [Delete a specific account](https://developers.cloudflare.com/api/go/resources/accounts/methods/delete)

client.Accounts.Delete(ctx, body) (\*[AccountDeleteResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts%20%3E%20(model)%20AccountDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Account struct{…}

</summary>

ID string

Identifier

maxLength32

minLength32

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Name string

Account name

maxLength100

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Type AccountType

</summary>

One of the following:

const AccountTypeStandard AccountType = "standard"

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const AccountTypeEnterprise AccountType = "enterprise"

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

CreatedOn TimeOptional

Timestamp for the creation of the account

formatdate-time

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

ManagedBy AccountManagedByOptional

Parent container details

</summary>

ParentOrgID stringOptional

ID of the parent Organization, if one exists

maxLength32

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20managed_by%20%3E%20(property)%20parent_org_id">Link to this property</a>

ParentOrgName stringOptional

Name of the parent Organization, if one exists

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20managed_by%20%3E%20(property)%20parent_org_name">Link to this property</a>

</details>

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20managed_by">Link to this property</a>

<details>

<summary>

Settings AccountSettingsOptional

Account settings

</summary>

AbuseContactEmail stringOptional

Sets an abuse contact email to notify for abuse reports.

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20abuse_contact_email">Link to this property</a>

EnforceTwofactor boolOptional

Indicates whether membership in this account requires that Two-Factor Authentication is enabled

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20enforce_twofactor">Link to this property</a>

</details>

<a href="#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)%20%3E%20(property)%20settings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>)

#### AccountsAccount Organizations

##### [Move account to organization](https://developers.cloudflare.com/api/go/resources/accounts/subresources/account_organizations/methods/create)

client.Accounts.AccountOrganizations.New(ctx, params) (\*[AccountOrganizationNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.account_organizations%20%3E%20(model)%20AccountOrganizationNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/move

#### AccountsAccount Profile

##### [Get account profile](https://developers.cloudflare.com/api/go/resources/accounts/subresources/account_profile/methods/get)

client.Accounts.AccountProfile.Get(ctx, query) (\*[AccountProfile](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/profile

##### [Update account profile](https://developers.cloudflare.com/api/go/resources/accounts/subresources/account_profile/methods/update)

client.Accounts.AccountProfile.Update(ctx, params) error

PUT/accounts/{account\_id}/profile

##### ModelsExpand Collapse

<details>

<summary>

type AccountProfile struct{…}

</summary>

BusinessAddress string

<a href="#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)%20%3E%20(property)%20business_address">Link to this property</a>

BusinessEmail string

<a href="#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)%20%3E%20(property)%20business_email">Link to this property</a>

BusinessName string

<a href="#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)%20%3E%20(property)%20business_name">Link to this property</a>

BusinessPhone string

<a href="#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)%20%3E%20(property)%20business_phone">Link to this property</a>

ExternalMetadata string

<a href="#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)%20%3E%20(property)%20external_metadata">Link to this property</a>

</details>

[Link to this property](<#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)>)

#### AccountsMembers

##### [List Members](https://developers.cloudflare.com/api/go/resources/accounts/subresources/members/methods/list)

client.Accounts.Members.List(ctx, params) (\*V4PagePaginationArray\[[Member](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/members

##### [Member Details](https://developers.cloudflare.com/api/go/resources/accounts/subresources/members/methods/get)

client.Accounts.Members.Get(ctx, memberID, query) (\*[Member](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/members/{member\_id}

##### [Add Member](https://developers.cloudflare.com/api/go/resources/accounts/subresources/members/methods/create)

client.Accounts.Members.New(ctx, params) (\*[Member](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/members

##### [Update Member](https://developers.cloudflare.com/api/go/resources/accounts/subresources/members/methods/update)

client.Accounts.Members.Update(ctx, memberID, params) (\*[Member](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/members/{member\_id}

##### [Remove Member](https://developers.cloudflare.com/api/go/resources/accounts/subresources/members/methods/delete)

client.Accounts.Members.Delete(ctx, memberID, body) (\*[MemberDeleteResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20MemberDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/members/{member\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Status string

Whether the user is a member of the organization or has an invitation pending.

</summary>

One of the following:

const StatusMember <a href="https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)">Status</a> = "member"

<a href="#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const StatusInvited <a href="https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)">Status</a> = "invited"

<a href="#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)>)

#### AccountsRoles

##### [List Roles](https://developers.cloudflare.com/api/go/resources/accounts/subresources/roles/methods/list)

Deprecated

client.Accounts.Roles.List(ctx, params) (\*V4PagePaginationArray\[[Role](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20role%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/roles

##### [Role Details](https://developers.cloudflare.com/api/go/resources/accounts/subresources/roles/methods/get)

Deprecated

client.Accounts.Roles.Get(ctx, roleID, query) (\*[Role](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20role%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/roles/{role\_id}

#### AccountsSubscriptions

##### [List Subscriptions](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/methods/get)

client.Accounts.Subscriptions.Get(ctx, query) (\*SinglePage\[[Subscription](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>)], error)

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/subscriptions

##### [Get Subscription](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/methods/get_by_identifier)

client.Accounts.Subscriptions.GetByIdentifier(ctx, subscriptionIdentifier, query) (\*[Subscription](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/subscriptions/{subscription\_identifier}

##### [Create Subscription](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/methods/create)

client.Accounts.Subscriptions.New(ctx, params) (\*[Subscription](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>), error)

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/subscriptions

##### [Update Subscription](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/methods/update)

client.Accounts.Subscriptions.Update(ctx, subscriptionIdentifier, params) (\*[Subscription](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/subscriptions/{subscription\_identifier}

##### [Delete Subscription](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/methods/delete)

client.Accounts.Subscriptions.Delete(ctx, subscriptionIdentifier, body) (\*[SubscriptionDeleteResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.subscriptions%20%3E%20(model)%20SubscriptionDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/subscriptions/{subscription\_identifier}

##### [Cancel Delayed Downgrade](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/methods/cancel_downgrade)

client.Accounts.Subscriptions.CancelDowngrade(ctx, params) (\*unknown, error)

POST/accounts/{account\_id}/subscriptions/cancel-downgrade

#### AccountsSubscriptionsCancel Reason

##### [Create Cancel Reason](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/subresources/cancel_reason/methods/create)

client.Accounts.Subscriptions.CancelReason.New(ctx, subscriptionIdentifier, params) (\*[SubscriptionCancelReasonNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20SubscriptionCancelReasonNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/subscriptions/{subscription\_identifier}/cancel-reason

##### [Get Cancel Reason](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/subresources/cancel_reason/methods/get)

client.Accounts.Subscriptions.CancelReason.Get(ctx, subscriptionIdentifier, query) (\*[SubscriptionCancelReasonGetResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20SubscriptionCancelReasonGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/subscriptions/{subscription\_identifier}/cancel-reason

#### AccountsSubscriptionsActions

##### [Append Subscription Action](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/subresources/actions/methods/append)

client.Accounts.Subscriptions.Actions.Append(ctx, subscriptionIdentifier, params) (\*[Subscription](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/subscriptions/{subscription\_identifier}/action/append

#### AccountsSubscriptionsBulk

##### [Create Subscriptions](https://developers.cloudflare.com/api/go/resources/accounts/subresources/subscriptions/subresources/bulk/methods/create)

client.Accounts.Subscriptions.Bulk.New(ctx, params) (\*\[] [SubscriptionBulkNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.subscriptions.bulk%20%3E%20(model)%20SubscriptionBulkNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/bulk/subscriptions

#### AccountsTokens

##### [List Tokens](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/methods/list)

client.Accounts.Tokens.List(ctx, params) (\*V4PagePaginationArray\[[Token](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/tokens

##### [Token Details](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/methods/get)

client.Accounts.Tokens.Get(ctx, tokenID, query) (\*[Token](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/tokens/{token\_id}

##### [Create Token](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/methods/create)

client.Accounts.Tokens.New(ctx, params) (\*[TokenNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.tokens%20%3E%20(model)%20TokenNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/tokens

##### [Update Token](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/methods/update)

client.Accounts.Tokens.Update(ctx, tokenID, params) (\*[Token](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/tokens/{token\_id}

##### [Delete Token](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/methods/delete)

client.Accounts.Tokens.Delete(ctx, tokenID, body) (\*[TokenDeleteResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.tokens%20%3E%20(model)%20TokenDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/tokens/{token\_id}

##### [Verify Token](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/methods/verify)

client.Accounts.Tokens.Verify(ctx, query) (\*[TokenVerifyResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.tokens%20%3E%20(model)%20TokenVerifyResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/tokens/verify

#### AccountsTokensPermission Groups

##### [List Permission Groups](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/subresources/permission_groups/methods/list)

client.Accounts.Tokens.PermissionGroups.List(ctx, params) (\*SinglePage\[[TokenPermissionGroupListResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20TokenPermissionGroupListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/tokens/permission\_groups

##### [List Permission Groups](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/subresources/permission_groups/methods/get)

client.Accounts.Tokens.PermissionGroups.Get(ctx, params) (\*\[] [TokenPermissionGroupGetResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20TokenPermissionGroupGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/tokens/permission\_groups

#### AccountsTokensValue

##### [Roll Token](https://developers.cloudflare.com/api/go/resources/accounts/subresources/tokens/subresources/value/methods/update)

client.Accounts.Tokens.Value.Update(ctx, tokenID, body) (\*[TokenValue](<https://developers.cloudflare.com/api/go/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_value%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/tokens/{token\_id}/value

#### AccountsLogs

#### AccountsLogsAudit

##### [Get account audit logs (Version 2)](https://developers.cloudflare.com/api/go/resources/accounts/subresources/logs/subresources/audit/methods/list)

client.Accounts.Logs.Audit.List(ctx, params) (\*CursorPaginationAfter\[[LogAuditListResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.logs.audit%20%3E%20(model)%20LogAuditListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/logs/audit

##### [Get resource change history from an account audit log entry (Version 2)](https://developers.cloudflare.com/api/go/resources/accounts/subresources/logs/subresources/audit/methods/history)

client.Accounts.Logs.Audit.History(ctx, id, params) (\*\[] [LogAuditHistoryResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.logs.audit%20%3E%20(model)%20LogAuditHistoryResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/logs/audit/{id}/history

##### [List account audit log product categories (Version 2)](https://developers.cloudflare.com/api/go/resources/accounts/subresources/logs/subresources/audit/methods/product_categories)

client.Accounts.Logs.Audit.ProductCategories(ctx, query) (\*SinglePage\[[LogAuditProductCategoriesResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.logs.audit%20%3E%20(model)%20LogAuditProductCategoriesResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/logs/audit/product\_categories

#### AccountsEntitlements

##### [Get Account Entitlements](https://developers.cloudflare.com/api/go/resources/accounts/subresources/entitlements/methods/list)

client.Accounts.Entitlements.List(ctx, query) (\*SinglePage\[[EntitlementListResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.entitlements%20%3E%20(model)%20EntitlementListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/entitlements

#### AccountsSpeed Settings

#### AccountsSpeed SettingsTransformations

##### [List Image Resizing configurations for account](https://developers.cloudflare.com/api/go/resources/accounts/subresources/speed_settings/subresources/transformations/methods/get)

client.Accounts.SpeedSettings.Transformations.Get(ctx, query) (\*SinglePage\[[TransformationsConfig](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/settings/transformations

##### ModelsExpand Collapse

<details>

<summary>

type TransformationsConfig struct{…}

A configuration item for a specific zone and feature.

</summary>

ID stringOptional

Feature identifier.

<a href="#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CfZoneTag stringOptional

Zone tag identifier.

<a href="#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)%20%3E%20(property)%20cf_zone_tag">Link to this property</a>

Editable boolOptional

Whether this setting can be modified.

<a href="#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)%20%3E%20(property)%20editable">Link to this property</a>

ModifiedOn TimeOptional

When this setting was last modified.

formatdate-time

<a href="#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

Value stringOptional

Current value of the feature setting.

<a href="#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)>)

#### AccountsPayment Methods

##### [List Payment Methods](https://developers.cloudflare.com/api/go/resources/accounts/subresources/payment_methods/methods/list)

client.Accounts.PaymentMethods.List(ctx, params) (\*V4PagePaginationArray\[[PaymentMethodListResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20PaymentMethodListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/payment-methods

##### [Create Payment Method](https://developers.cloudflare.com/api/go/resources/accounts/subresources/payment_methods/methods/create)

client.Accounts.PaymentMethods.New(ctx, params) (\*[PaymentMethodNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20PaymentMethodNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/payment-methods

##### [Get Payment Method](https://developers.cloudflare.com/api/go/resources/accounts/subresources/payment_methods/methods/get)

client.Accounts.PaymentMethods.Get(ctx, paymentMethodID, query) (\*[PaymentMethodGetResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20PaymentMethodGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/payment-methods/{payment\_method\_id}

##### [Update Payment Method](https://developers.cloudflare.com/api/go/resources/accounts/subresources/payment_methods/methods/update)

client.Accounts.PaymentMethods.Update(ctx, paymentMethodID, params) (\*[PaymentMethodUpdateResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20PaymentMethodUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/payment-methods/{payment\_method\_id}

##### [Delete Payment Method](https://developers.cloudflare.com/api/go/resources/accounts/subresources/payment_methods/methods/delete)

client.Accounts.PaymentMethods.Delete(ctx, paymentMethodID, body) (\*unknown, error)

DELETE/accounts/{account\_id}/payment-methods/{payment\_method\_id}

##### [Set Default Payment Method](https://developers.cloudflare.com/api/go/resources/accounts/subresources/payment_methods/methods/set_as_default)

client.Accounts.PaymentMethods.SetAsDefault(ctx, paymentMethodID, body) (\*unknown, error)

POST/accounts/{account\_id}/payment-methods/{payment\_method\_id}/set-as-default

#### AccountsPay Invoice

##### [Pay Invoice](https://developers.cloudflare.com/api/go/resources/accounts/subresources/pay_invoice/methods/create)

client.Accounts.PayInvoice.New(ctx, params) (\*[PayInvoiceNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.pay_invoice%20%3E%20(model)%20PayInvoiceNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pay-invoice

#### AccountsPay Bad Debt

##### [Pay Bad Debt](https://developers.cloudflare.com/api/go/resources/accounts/subresources/pay_bad_debt/methods/create)

client.Accounts.PayBadDebt.New(ctx, params) (\*[PayBadDebtNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.pay_bad_debt%20%3E%20(model)%20PayBadDebtNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/pay-bad-debt

#### AccountsReceipts

##### [Get Receipt PDF](https://developers.cloudflare.com/api/go/resources/accounts/subresources/receipts/methods/pdf)

client.Accounts.Receipts.PDF(ctx, receiptID, params) (\*Response, error)

GET/accounts/{account\_id}/receipts/{receipt\_id}/pdf

#### AccountsInvoices

##### [Toggle PDF Invoices](https://developers.cloudflare.com/api/go/resources/accounts/subresources/invoices/methods/edit)

client.Accounts.Invoices.Edit(ctx, params) (\*unknown, error)

PATCH/accounts/{account\_id}/invoices

#### AccountsClient Secret

##### [Create Setup Intent](https://developers.cloudflare.com/api/go/resources/accounts/subresources/client_secret/methods/create)

client.Accounts.ClientSecret.New(ctx, body) (\*[ClientSecretNewResponse](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.client_secret%20%3E%20(model)%20ClientSecretNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/client-secret