---
title: Accounts
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Accounts

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

accounts.list(AccountListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[Account](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>)]

GET/accounts

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

accounts.get(AccountGetParams\*\*kwargs) -> [Account](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>)

GET/accounts/{account\_id}

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

accounts.create(AccountCreateParams\*\*kwargs) -> [Account](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>)

POST/accounts

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

accounts.update(AccountUpdateParams\*\*kwargs) -> [Account](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account%20%3E%20(schema)>)

PUT/accounts/{account\_id}

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

accounts.delete(AccountDeleteParams\*\*kwargs) -> [AccountDeleteResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts%20%3E%20(model)%20account_delete_response%20%3E%20(schema)>)

DELETE/accounts/{account\_id}

##### ModelsExpand Collapse

<details>

<summary>

class Account: …

</summary>

id: str

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: str

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: Literal\["standard", "enterprise"]

</summary>

One of the following:

"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>

"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>

created\_on: Optional\[datetime]

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>

managed\_by: Optional\[ManagedBy]

Parent container details

</summary>

parent\_org\_id: Optional\[str]

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>

parent\_org\_name: Optional\[str]

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: Optional\[Settings]

Account settings

</summary>

abuse\_contact\_email: Optional\[str]

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>

enforce\_twofactor: Optional\[bool]

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)>)

<details>

<summary>

class AccountDeleteResponse: …

</summary>

id: str

Identifier

maxLength32

minLength32

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

</details>

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

#### AccountsAccount Organizations

#### AccountsAccount Profile

#### AccountsMembers

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

accounts.members.list(MemberListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[Member](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>)]

GET/accounts/{account\_id}/members

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

accounts.members.get(strmember\_id, MemberGetParams\*\*kwargs) -> [Member](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>)

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

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

accounts.members.create(MemberCreateParams\*\*kwargs) -> [Member](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>)

POST/accounts/{account\_id}/members

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

accounts.members.update(strmember\_id, MemberUpdateParams\*\*kwargs) -> [Member](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20member%20%3E%20(schema)>)

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

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

accounts.members.delete(strmember\_id, MemberDeleteParams\*\*kwargs) -> [MemberDeleteResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20member_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

Literal\["member", "invited"]

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

</summary>

One of the following:

"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>

"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)>)

<details>

<summary>

class MemberDeleteResponse: …

</summary>

id: str

Identifier

maxLength32

minLength32

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

</details>

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

#### AccountsRoles

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

Deprecated

accounts.roles.list(RoleListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[Role](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20role%20%3E%20(schema)>)]

GET/accounts/{account\_id}/roles

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

Deprecated

accounts.roles.get(strrole\_id, RoleGetParams\*\*kwargs) -> [Role](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20role%20%3E%20(schema)>)

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

#### AccountsSubscriptions

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

accounts.subscriptions.get(SubscriptionGetParams\*\*kwargs) -> SyncSinglePage\[[Subscription](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>)]

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

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

accounts.subscriptions.get\_by\_identifier(strsubscription\_identifier, SubscriptionGetByIdentifierParams\*\*kwargs) -> [Subscription](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>)

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

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

accounts.subscriptions.create(SubscriptionCreateParams\*\*kwargs) -> [Subscription](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>)

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

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

accounts.subscriptions.update(strsubscription\_identifier, SubscriptionUpdateParams\*\*kwargs) -> [Subscription](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>)

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

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

accounts.subscriptions.delete(strsubscription\_identifier, SubscriptionDeleteParams\*\*kwargs) -> [SubscriptionDeleteResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)>)

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

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

accounts.subscriptions.cancel\_downgrade(SubscriptionCancelDowngradeParams\*\*kwargs) -> [SubscriptionCancelDowngradeResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.subscriptions%20%3E%20(model)%20subscription_cancel_downgrade_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class SubscriptionDeleteResponse: …

</summary>

subscription\_id: Optional\[str]

Subscription identifier tag.

maxLength32

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

</details>

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

<details>

<summary>

Union\[Optional\[str], Optional\[object]]

</summary>

One of the following:

Optional\[str]

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

Optional\[object]

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

</details>

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

#### AccountsSubscriptionsCancel Reason

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

accounts.subscriptions.cancel\_reason.create(strsubscription\_identifier, CancelReasonCreateParams\*\*kwargs) -> [CancelReasonCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_create_response%20%3E%20(schema)>)

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

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

accounts.subscriptions.cancel\_reason.get(strsubscription\_identifier, CancelReasonGetParams\*\*kwargs) -> [CancelReasonGetResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_get_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class CancelReasonCreateResponse: …

</summary>

id: Optional\[str]

The cancel reason identifier.

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

other: Optional\[str]

Additional cancellation details.

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_create_response%20%3E%20(schema)%20%3E%20(property)%20other">Link to this property</a>

reason\_code: Optional\[List\[str]]

The cancellation reason codes.

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_create_response%20%3E%20(schema)%20%3E%20(property)%20reason_code">Link to this property</a>

submitted: Optional\[datetime]

When the cancel reason was submitted.

formatdate-time

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_create_response%20%3E%20(schema)%20%3E%20(property)%20submitted">Link to this property</a>

subscription\_id: Optional\[str]

The subscription identifier.

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_create_response%20%3E%20(schema)%20%3E%20(property)%20subscription_id">Link to this property</a>

</details>

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

<details>

<summary>

class CancelReasonGetResponse: …

</summary>

id: Optional\[str]

The cancel reason identifier.

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

other: Optional\[str]

Additional cancellation details.

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_get_response%20%3E%20(schema)%20%3E%20(property)%20other">Link to this property</a>

reason\_code: Optional\[List\[str]]

The cancellation reason codes.

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_get_response%20%3E%20(schema)%20%3E%20(property)%20reason_code">Link to this property</a>

submitted: Optional\[datetime]

When the cancel reason was submitted.

formatdate-time

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_get_response%20%3E%20(schema)%20%3E%20(property)%20submitted">Link to this property</a>

subscription\_id: Optional\[str]

The subscription identifier.

<a href="#(resource)%20accounts.subscriptions.cancel_reason%20%3E%20(model)%20cancel_reason_get_response%20%3E%20(schema)%20%3E%20(property)%20subscription_id">Link to this property</a>

</details>

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

#### AccountsSubscriptionsActions

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

accounts.subscriptions.actions.append(strsubscription\_identifier, ActionAppendParams\*\*kwargs) -> [Subscription](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>)

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

#### AccountsSubscriptionsBulk

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

accounts.subscriptions.bulk.create(BulkCreateParams\*\*kwargs) -> [BulkCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.subscriptions.bulk%20%3E%20(model)%20bulk_create_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

Optional\[List\[object]]

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

#### AccountsTokens

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

accounts.tokens.list(TokenListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[Token](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>)]

GET/accounts/{account\_id}/tokens

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

accounts.tokens.get(strtoken\_id, TokenGetParams\*\*kwargs) -> [Token](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>)

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

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

accounts.tokens.create(TokenCreateParams\*\*kwargs) -> [TokenCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/tokens

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

accounts.tokens.update(strtoken\_id, TokenUpdateParams\*\*kwargs) -> [Token](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>)

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

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

accounts.tokens.delete(strtoken\_id, TokenDeleteParams\*\*kwargs) -> [TokenDeleteResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.tokens%20%3E%20(model)%20token_delete_response%20%3E%20(schema)>)

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

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

accounts.tokens.verify(TokenVerifyParams\*\*kwargs) -> [TokenVerifyResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.tokens%20%3E%20(model)%20token_verify_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class TokenCreateResponse: …

</summary>

id: Optional\[str]

Token identifier tag.

maxLength32

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

<details>

<summary>

condition: Optional\[Condition]

</summary>

<details>

<summary>

request\_ip: Optional\[ConditionRequestIP]

Client IP restrictions.

</summary>

in\_: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_condition_cidr_list%20%3E%20(schema)">TokenConditionCIDRList</a>]]

List of IPv4/IPv6 CIDR addresses.

<a href="#(resource)%20accounts.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition%20%3E%20(property)%20request_ip%20%3E%20(property)%20in">Link to this property</a>

not\_in: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_condition_cidr_list%20%3E%20(schema)">TokenConditionCIDRList</a>]]

List of IPv4/IPv6 CIDR addresses.

<a href="#(resource)%20accounts.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition%20%3E%20(property)%20request_ip%20%3E%20(property)%20not_in">Link to this property</a>

</details>

<a href="#(resource)%20accounts.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition%20%3E%20(property)%20request_ip">Link to this property</a>

</details>

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

creator\_email\_at\_creation: Optional\[str]

The email address of the user who created the token at the time of creation. Only present for Account Owned API Tokens when a creator email was available.

maxLength90

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

expires\_on: Optional\[datetime]

The expiration time on or after which the JWT MUST NOT be accepted for processing.

formatdate-time

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

issued\_on: Optional\[datetime]

The time on which the token was created.

formatdate-time

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

last\_used\_on: Optional\[datetime]

Last time the token was used.

formatdate-time

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

modified\_on: Optional\[datetime]

Last time the token was modified.

formatdate-time

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

name: Optional\[str]

Token name.

maxLength120

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

not\_before: Optional\[datetime]

The time before which the token MUST NOT be accepted for processing.

formatdate-time

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

<details>

<summary>

policies: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)">TokenPolicy</a>]]

List of access policies assigned to the token.

</summary>

id: str

Policy identifier.

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

<details>

<summary>

effect: Literal\["allow", "deny"]

Allow or deny operations against the resources.

</summary>

One of the following:

"allow"

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20effect%20%3E%20(member)%200">Link to this property</a>

"deny"

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20effect%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20effect">Link to this property</a>

<details>

<summary>

permission\_groups: List\[PermissionGroup]

A set of permission groups that are specified to the policy.

</summary>

id: str

Identifier of the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

meta: Optional\[PermissionGroupMeta]

Attributes associated to the permission group.

</summary>

category: Optional\[str]

A category used to group permission groups.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20category">Link to this property</a>

deprecated: Optional\[str]

Indicates whether the permission group is deprecated.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20deprecated">Link to this property</a>

description: Optional\[str]

Additional information about the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20description">Link to this property</a>

editable: Optional\[str]

Indicates whether the permission group can be edited.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20editable">Link to this property</a>

eol\_at: Optional\[datetime]

The planned end-of-life date and time, when provided.

formatdate-time

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20eol_at">Link to this property</a>

label: Optional\[str]

A label identifying the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20label">Link to this property</a>

scopes: Optional\[str]

The scope associated with the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20scopes">Link to this property</a>

visibility: Optional\[str]

Indicates the permission group’s availability or visibility.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20visibility">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta">Link to this property</a>

name: Optional\[str]

Name of the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups">Link to this property</a>

<details>

<summary>

resources: Union\[Dict\[str, str], Dict\[str, Dict\[str, str]]]

A list of resource names that the policy applies to.

</summary>

One of the following:

Dict\[str, str]

Map of simple string resource permissions

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(variant)%200">Link to this property</a>

Dict\[str, Dict\[str, str]]

Map of nested resource permissions

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20resources">Link to this property</a>

</details>

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

provisioner\_id: Optional\[str]

The identifier of the service that provisioned the token. For an OAuth-provisioned token, this is the OAuth client identifier. Present when <code>provisioner_type</code> is present and null when the identifier is unavailable.

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

provisioner\_type: Optional\[str]

The type of service that provisioned the token. Only present for provisioned Account Owned API Tokens.

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

<details>

<summary>

status: Optional\[Literal\["active", "disabled", "expired"]]

Status of the token.

</summary>

One of the following:

"active"

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

"disabled"

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

"expired"

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

</details>

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

value: Optional\[TokenValue]

The token value.

maxLength80

minLength40

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

</details>

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

<details>

<summary>

class TokenDeleteResponse: …

</summary>

id: str

Identifier

maxLength32

minLength32

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

</details>

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

<details>

<summary>

class TokenVerifyResponse: …

</summary>

id: str

Token identifier tag.

maxLength32

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

<details>

<summary>

status: Literal\["active", "disabled", "expired"]

Status of the token.

</summary>

One of the following:

"active"

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

"disabled"

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

"expired"

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

</details>

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

expires\_on: Optional\[datetime]

The expiration time on or after which the JWT MUST NOT be accepted for processing.

formatdate-time

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

not\_before: Optional\[datetime]

The time before which the token MUST NOT be accepted for processing.

formatdate-time

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

</details>

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

#### AccountsTokensPermission Groups

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

accounts.tokens.permission\_groups.list(PermissionGroupListParams\*\*kwargs) -> SyncSinglePage\[[PermissionGroupListResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)>)]

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

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

accounts.tokens.permission\_groups.get(PermissionGroupGetParams\*\*kwargs) -> [PermissionGroupGetResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class PermissionGroupListResponse: …

</summary>

id: Optional\[str]

Public ID.

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

<details>

<summary>

category: Optional\[Literal\["developer\_platform", "ai\_and\_machine\_learning", "dns\_and\_zones", 10 more]]

Product category that this permission group belongs to.

</summary>

One of the following:

"developer\_platform"

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

"ai\_and\_machine\_learning"

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

"dns\_and\_zones"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%202">Link to this property</a>

"app\_security"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%203">Link to this property</a>

"rules\_and\_configuration"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%204">Link to this property</a>

"cloudflare\_one\_and\_zero\_trust"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%205">Link to this property</a>

"analytics\_and\_logs"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%206">Link to this property</a>

"network\_services"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%207">Link to this property</a>

"media"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%208">Link to this property</a>

"email\_and\_messaging"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%209">Link to this property</a>

"cache\_and\_performance"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%2010">Link to this property</a>

"account\_and\_billing"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%2011">Link to this property</a>

"other"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%2012">Link to this property</a>

</details>

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category">Link to this property</a>

is\_selectable: Optional\[bool]

Whether the caller can select this permission group when creating a token.

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20is_selectable">Link to this property</a>

name: Optional\[str]

Permission Group Name

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

<details>

<summary>

scopes: Optional\[List\[Literal\["com.cloudflare.api.account", "com.cloudflare.api.account.zone", "com.cloudflare.api.user", "com.cloudflare.edge.r2.bucket"]]]

Resources to which the Permission Group is scoped

</summary>

One of the following:

"com.cloudflare.api.account"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"com.cloudflare.api.account.zone"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"com.cloudflare.api.user"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"com.cloudflare.edge.r2.bucket"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

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

<details>

<summary>

List\[PermissionGroupGetResponseItem]

</summary>

id: Optional\[str]

Public ID.

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

category: Optional\[Literal\["developer\_platform", "ai\_and\_machine\_learning", "dns\_and\_zones", 10 more]]

Product category that this permission group belongs to.

</summary>

One of the following:

"developer\_platform"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%200">Link to this property</a>

"ai\_and\_machine\_learning"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%201">Link to this property</a>

"dns\_and\_zones"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%202">Link to this property</a>

"app\_security"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%203">Link to this property</a>

"rules\_and\_configuration"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%204">Link to this property</a>

"cloudflare\_one\_and\_zero\_trust"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%205">Link to this property</a>

"analytics\_and\_logs"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%206">Link to this property</a>

"network\_services"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%207">Link to this property</a>

"media"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%208">Link to this property</a>

"email\_and\_messaging"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%209">Link to this property</a>

"cache\_and\_performance"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%2010">Link to this property</a>

"account\_and\_billing"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%2011">Link to this property</a>

"other"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category%20%3E%20(member)%2012">Link to this property</a>

</details>

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20category">Link to this property</a>

is\_selectable: Optional\[bool]

Whether the caller can select this permission group when creating a token.

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20is_selectable">Link to this property</a>

name: Optional\[str]

Permission Group Name

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

scopes: Optional\[List\[Literal\["com.cloudflare.api.account", "com.cloudflare.api.account.zone", "com.cloudflare.api.user", "com.cloudflare.edge.r2.bucket"]]]

Resources to which the Permission Group is scoped

</summary>

One of the following:

"com.cloudflare.api.account"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"com.cloudflare.api.account.zone"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"com.cloudflare.api.user"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"com.cloudflare.edge.r2.bucket"

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20accounts.tokens.permission_groups%20%3E%20(model)%20permission_group_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

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

#### AccountsTokensValue

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

accounts.tokens.value.update(strtoken\_id, ValueUpdateParams\*\*kwargs) -> [TokenValue](<https://developers.cloudflare.com/api/python/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_value%20%3E%20(schema)>)

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

#### AccountsLogs

#### AccountsLogsAudit

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

accounts.logs.audit.list(AuditListParams\*\*kwargs) -> SyncCursorPaginationAfter\[[AuditListResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)>)]

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

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

accounts.logs.audit.history(strid, AuditHistoryParams\*\*kwargs) -> [AuditHistoryResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)>)

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

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

accounts.logs.audit.product\_categories(AuditProductCategoriesParams\*\*kwargs) -> SyncSinglePage\[[AuditProductCategoriesResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_product_categories_response%20%3E%20(schema)>)]

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

##### ModelsExpand Collapse

<details>

<summary>

class AuditListResponse: …

</summary>

id: Optional\[str]

A unique identifier for the audit log entry.

maxLength32

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

<details>

<summary>

account: Optional\[Account]

Contains account related information.

</summary>

id: Optional\[str]

A unique identifier for the account.

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

name: Optional\[str]

A string that identifies the account name.

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

</details>

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

<details>

<summary>

action: Optional\[Action]

Provides information about the action performed.

</summary>

description: Optional\[str]

A short description of the action performed.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20description">Link to this property</a>

result: Optional\[str]

The result of the action, indicating success or failure.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20result">Link to this property</a>

time: Optional\[datetime]

A timestamp indicating when the action was logged.

formatdate-time

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20time">Link to this property</a>

type: Optional\[str]

A short string that describes the action that was performed.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

actor: Optional\[Actor]

Provides details about the actor who performed the action.

</summary>

id: Optional\[str]

The ID of the actor who performed the action. If a user performed the action, this will be their User ID.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

context: Optional\[Literal\["api", "api\_key", "api\_token", 3 more]]

The context in which the action was initiated.

- <code>api</code>: The action was performed through the API. The specific credential type was not recorded.
- <code>api_key</code>: The action was authenticated with a Cloudflare Global API Key.
- <code>api_token</code>: The action was authenticated with an API token.
- <code>dash</code>: The action was performed through the Cloudflare dashboard.
- <code>oauth</code>: The action was authenticated with an OAuth token.
- <code>origin_ca_key</code>: The action was authenticated with an Origin CA key.

</summary>

One of the following:

"api"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%200">Link to this property</a>

"api\_key"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%201">Link to this property</a>

"api\_token"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%202">Link to this property</a>

"dash"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%203">Link to this property</a>

"oauth"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%204">Link to this property</a>

"origin\_ca\_key"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context">Link to this property</a>

email: Optional\[str]

The email of the actor who performed the action.

formatemail

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20email">Link to this property</a>

ip\_address: Optional\[str]

The IP address of the request that performed the action.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20ip_address">Link to this property</a>

token\_id: Optional\[str]

The API token ID when the actor context is an api\_token or oauth.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20token_id">Link to this property</a>

token\_name: Optional\[str]

The API token name when the actor context is an api\_token or oauth.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20token_name">Link to this property</a>

<details>

<summary>

type: Optional\[Literal\["account", "cloudflare\_admin", "delegated\_service", 2 more]]

The type of actor.

</summary>

One of the following:

"account"

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

"cloudflare\_admin"

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

"delegated\_service"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"system"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

"user"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor">Link to this property</a>

<details>

<summary>

raw: Optional\[Raw]

Provides raw information about the request and response.

</summary>

cf\_rayid: Optional\[str]

The Cloudflare Ray ID for the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20cf_ray_id">Link to this property</a>

method: Optional\[str]

The HTTP method of the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20method">Link to this property</a>

status\_code: Optional\[int]

The HTTP response status code returned by the API.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20status_code">Link to this property</a>

uri: Optional\[str]

The URI of the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20uri">Link to this property</a>

user\_agent: Optional\[str]

The client’s user agent string sent with the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20user_agent">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw">Link to this property</a>

<details>

<summary>

resource: Optional\[Resource]

Provides details about the affected resource.

</summary>

id: Optional\[str]

The unique identifier for the affected resource.

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

product: Optional\[str]

The Cloudflare product associated with the resource.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20product">Link to this property</a>

request: Optional\[object]

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20request">Link to this property</a>

response: Optional\[object]

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20response">Link to this property</a>

scope: Optional\[object]

The scope of the resource.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20scope">Link to this property</a>

type: Optional\[str]

The type of the resource.

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

</details>

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

<details>

<summary>

zone: Optional\[Zone]

Provides details about the zone affected by the action.

</summary>

id: Optional\[str]

A string that identifies the zone id.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20zone%20%3E%20(property)%20id">Link to this property</a>

name: Optional\[str]

A string that identifies the zone name.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20zone%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20zone">Link to this property</a>

</details>

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

<details>

<summary>

List\[AuditHistoryResponseItem]

</summary>

id: Optional\[str]

A unique identifier for the audit log entry.

maxLength32

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

account: Optional\[AuditHistoryResponseItemAccount]

Contains account related information.

</summary>

id: Optional\[str]

A unique identifier for the account.

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

name: Optional\[str]

A string that identifies the account name.

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

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20account">Link to this property</a>

<details>

<summary>

action: Optional\[AuditHistoryResponseItemAction]

Provides information about the action performed.

</summary>

description: Optional\[str]

A short description of the action performed.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20description">Link to this property</a>

result: Optional\[str]

The result of the action, indicating success or failure.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20result">Link to this property</a>

time: Optional\[datetime]

A timestamp indicating when the action was logged.

formatdate-time

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20time">Link to this property</a>

type: Optional\[str]

A short string that describes the action that was performed.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

actor: Optional\[AuditHistoryResponseItemActor]

Provides details about the actor who performed the action.

</summary>

id: Optional\[str]

The ID of the actor who performed the action. If a user performed the action, this will be their User ID.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

context: Optional\[Literal\["api", "api\_key", "api\_token", 3 more]]

The context in which the action was initiated.

- <code>api</code>: The action was performed through the API. The specific credential type was not recorded.
- <code>api_key</code>: The action was authenticated with a Cloudflare Global API Key.
- <code>api_token</code>: The action was authenticated with an API token.
- <code>dash</code>: The action was performed through the Cloudflare dashboard.
- <code>oauth</code>: The action was authenticated with an OAuth token.
- <code>origin_ca_key</code>: The action was authenticated with an Origin CA key.

</summary>

One of the following:

"api"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%200">Link to this property</a>

"api\_key"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%201">Link to this property</a>

"api\_token"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%202">Link to this property</a>

"dash"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%203">Link to this property</a>

"oauth"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%204">Link to this property</a>

"origin\_ca\_key"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context">Link to this property</a>

email: Optional\[str]

The email of the actor who performed the action.

formatemail

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20email">Link to this property</a>

ip\_address: Optional\[str]

The IP address of the request that performed the action.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20ip_address">Link to this property</a>

token\_id: Optional\[str]

The API token ID when the actor context is an api\_token or oauth.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20token_id">Link to this property</a>

token\_name: Optional\[str]

The API token name when the actor context is an api\_token or oauth.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20token_name">Link to this property</a>

<details>

<summary>

type: Optional\[Literal\["account", "cloudflare\_admin", "delegated\_service", 2 more]]

The type of actor.

</summary>

One of the following:

"account"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"cloudflare\_admin"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"delegated\_service"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"system"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

"user"

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor">Link to this property</a>

<details>

<summary>

raw: Optional\[AuditHistoryResponseItemRaw]

Provides raw information about the request and response.

</summary>

cf\_rayid: Optional\[str]

The Cloudflare Ray ID for the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20cf_ray_id">Link to this property</a>

method: Optional\[str]

The HTTP method of the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20method">Link to this property</a>

status\_code: Optional\[int]

The HTTP response status code returned by the API.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20status_code">Link to this property</a>

uri: Optional\[str]

The URI of the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20uri">Link to this property</a>

user\_agent: Optional\[str]

The client’s user agent string sent with the request.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20user_agent">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw">Link to this property</a>

<details>

<summary>

resource: Optional\[AuditHistoryResponseItemResource]

Provides details about the affected resource.

</summary>

id: Optional\[str]

The unique identifier for the affected resource.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20id">Link to this property</a>

product: Optional\[str]

The Cloudflare product associated with the resource.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20product">Link to this property</a>

request: Optional\[object]

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20request">Link to this property</a>

response: Optional\[object]

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20response">Link to this property</a>

scope: Optional\[object]

The scope of the resource.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20scope">Link to this property</a>

type: Optional\[str]

The type of the resource.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource">Link to this property</a>

<details>

<summary>

zone: Optional\[AuditHistoryResponseItemZone]

Provides details about the zone affected by the action.

</summary>

id: Optional\[str]

A string that identifies the zone id.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20zone%20%3E%20(property)%20id">Link to this property</a>

name: Optional\[str]

A string that identifies the zone name.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20zone%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20zone">Link to this property</a>

</details>

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

<details>

<summary>

class AuditProductCategoriesResponse: …

A predefined product category and the resource products it expands to.

</summary>

label: Optional\[str]

A human-readable label for the product category.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_product_categories_response%20%3E%20(schema)%20%3E%20(property)%20label">Link to this property</a>

<details>

<summary>

products: Optional\[List\[Product]]

The resource products that the product category expands to.

</summary>

label: Optional\[str]

A human-readable label for the product.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_product_categories_response%20%3E%20(schema)%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(property)%20label">Link to this property</a>

value: Optional\[str]

The resource\_product value that the product category expands to.

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_product_categories_response%20%3E%20(schema)%20%3E%20(property)%20products%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20accounts.logs.audit%20%3E%20(model)%20audit_product_categories_response%20%3E%20(schema)%20%3E%20(property)%20products">Link to this property</a>

value: Optional\[str]

The product category identifier used with the product\_category filter.

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

</details>

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

#### AccountsEntitlements

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

accounts.entitlements.list(EntitlementListParams\*\*kwargs) -> SyncSinglePage\[[EntitlementListResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/entitlements

##### ModelsExpand Collapse

<details>

<summary>

class EntitlementListResponse: …

A single entitlement record for a zone or account.

</summary>

id: str

Entitlement identifier — equal to the feature key.

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

<details>

<summary>

allocation: Allocation

Represents the allocation value for an entitlement. The shape of <code>value</code> depends on <code>type</code>: <code>bool</code> uses a boolean, <code>max_count</code> uses an integer, <code>enum_number</code> uses an array of numbers, <code>range</code> uses an object with <code>min</code> and <code>max</code> integer fields, and <code>string</code> uses a string.

</summary>

<details>

<summary>

type: Literal\["bool", "max\_count", "enum\_number", 2 more]

Allocation type discriminator.

</summary>

One of the following:

"bool"

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

"max\_count"

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

"enum\_number"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"range"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

"string"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

</details>

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

<details>

<summary>

value: AllocationValue

Contains the allocation value whose concrete type the <code>type</code> field determines: bool yields a boolean, max\_count yields an integer, enum\_number yields an array of numbers, range yields an object with <code>min</code> and <code>max</code>, and string yields a string.

</summary>

One of the following:

bool

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%200">Link to this property</a>

int

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%201">Link to this property</a>

str

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%202">Link to this property</a>

List\[float]

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class AllocationValueUnionMember4: …

</summary>

max: int

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%204%20%3E%20(property)%20max">Link to this property</a>

min: int

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%204%20%3E%20(property)%20min">Link to this property</a>

</details>

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%204">Link to this property</a>

</details>

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

</details>

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

created\_date: str

ISO 8601 timestamp (microsecond precision, no timezone offset) when the entitlement was created. Format: <code>YYYY-MM-DDTHH:MM:SS.ffffff</code>.

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

deleted\_date: str

ISO 8601 timestamp when the entitlement was deleted, or empty string if not deleted.

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

edited\_date: str

ISO 8601 timestamp (microsecond precision, no timezone offset) when the entitlement was last edited.

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

<details>

<summary>

feature: Feature

Describes a product feature associated with an entitlement.

</summary>

id: int

Numeric identifier of the feature.

formatint64

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

feature\_set: str

The logical grouping (set) this feature belongs to.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature%20%3E%20(property)%20feature_set">Link to this property</a>

key: str

Unique string key for the feature.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature%20%3E%20(property)%20key">Link to this property</a>

name: str

Human-readable name of the feature.

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

</details>

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

</details>

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

#### AccountsSpeed Settings

#### AccountsSpeed SettingsTransformations

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

accounts.speed\_settings.transformations.get(TransformationGetParams\*\*kwargs) -> SyncSinglePage\[[TransformationsConfig](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.speed_settings.transformations%20%3E%20(model)%20transformations_config%20%3E%20(schema)>)]

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

##### ModelsExpand Collapse

<details>

<summary>

class TransformationsConfig: …

A configuration item for a specific zone and feature.

</summary>

id: Optional\[str]

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>

cf\_zone\_tag: Optional\[str]

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: Optional\[bool]

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>

modified\_on: Optional\[datetime]

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: Optional\[str]

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/python/resources/accounts/subresources/payment_methods/methods/list)

accounts.payment\_methods.list(PaymentMethodListParams\*\*kwargs) -> SyncV4PagePaginationArray\[[PaymentMethodListResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20payment_method_list_response%20%3E%20(schema)>)]

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

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

accounts.payment\_methods.create(PaymentMethodCreateParams\*\*kwargs) -> [PaymentMethodCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20payment_method_create_response%20%3E%20(schema)>)

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

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

accounts.payment\_methods.get(strpayment\_method\_id, PaymentMethodGetParams\*\*kwargs) -> [PaymentMethodGetResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20payment_method_get_response%20%3E%20(schema)>)

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

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

accounts.payment\_methods.update(strpayment\_method\_id, PaymentMethodUpdateParams\*\*kwargs) -> [PaymentMethodUpdateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20payment_method_update_response%20%3E%20(schema)>)

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

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

accounts.payment\_methods.delete(strpayment\_method\_id, PaymentMethodDeleteParams\*\*kwargs) -> [PaymentMethodDeleteResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20payment_method_delete_response%20%3E%20(schema)>)

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

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

accounts.payment\_methods.set\_as\_default(strpayment\_method\_id, PaymentMethodSetAsDefaultParams\*\*kwargs) -> [PaymentMethodSetAsDefaultResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.payment_methods%20%3E%20(model)%20payment_method_set_as_default_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class PaymentMethodListResponse: …

</summary>

id: Optional\[str]

Payment method identifier.

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

address: Optional\[str]

Billing address line 1.

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

address2: Optional\[str]

Billing address line 2.

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

bank\_account\_type: Optional\[str]

Bank account type.

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

bank\_code: Optional\[str]

Bank code.

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

bank\_country: Optional\[str]

Bank country.

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

bank\_name: Optional\[str]

Bank name for bank-based payment methods.

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

bank\_routing\_number: Optional\[str]

Bank routing number.

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

cashapp\_cash\_tag: Optional\[str]

Cash App cash tag.

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

city: Optional\[str]

Billing city.

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

country: Optional\[str]

Billing country.

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

default: Optional\[bool]

Whether this is the default payment method.

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

device\_data: Optional\[str]

Device data for fraud prevention.

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

expiration\_date: Optional\[str]

Card expiration date.

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

first\_name: Optional\[str]

Billing first name.

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

last\_four: Optional\[str]

Last four digits of the card number.

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

last\_name: Optional\[str]

Billing last name.

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

nick\_name: Optional\[str]

A nickname for the payment method.

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

payment\_account\_email: Optional\[str]

Email associated with the payment account.

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

payment\_email: Optional\[str]

Payment email address.

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

payment\_gateway: Optional\[str]

The payment gateway used.

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

payment\_nonce: Optional\[str]

Payment nonce for tokenized payments.

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

state: Optional\[str]

Billing state.

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

<details>

<summary>

type: Optional\[Literal\["CREDIT\_CARD", "PAYPAL", "CASHAPP", 3 more]]

The payment method type.

</summary>

One of the following:

"CREDIT\_CARD"

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

"PAYPAL"

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

"CASHAPP"

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

"SEPA\_DEBIT"

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

"LINK"

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

"ACH\_DIRECT\_DEBIT"

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

</details>

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

zipcode: Optional\[str]

Billing zip code.

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

</details>

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

<details>

<summary>

class PaymentMethodCreateResponse: …

</summary>

id: Optional\[str]

Payment method identifier.

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

address: Optional\[str]

Billing address line 1.

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

address2: Optional\[str]

Billing address line 2.

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

bank\_account\_type: Optional\[str]

Bank account type.

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

bank\_code: Optional\[str]

Bank code.

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

bank\_country: Optional\[str]

Bank country.

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

bank\_name: Optional\[str]

Bank name for bank-based payment methods.

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

bank\_routing\_number: Optional\[str]

Bank routing number.

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

cashapp\_cash\_tag: Optional\[str]

Cash App cash tag.

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

city: Optional\[str]

Billing city.

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

country: Optional\[str]

Billing country.

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

default: Optional\[bool]

Whether this is the default payment method.

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

device\_data: Optional\[str]

Device data for fraud prevention.

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

expiration\_date: Optional\[str]

Card expiration date.

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

first\_name: Optional\[str]

Billing first name.

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

last\_four: Optional\[str]

Last four digits of the card number.

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

last\_name: Optional\[str]

Billing last name.

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

nick\_name: Optional\[str]

A nickname for the payment method.

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

payment\_account\_email: Optional\[str]

Email associated with the payment account.

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

payment\_email: Optional\[str]

Payment email address.

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

payment\_gateway: Optional\[str]

The payment gateway used.

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

payment\_nonce: Optional\[str]

Payment nonce for tokenized payments.

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

state: Optional\[str]

Billing state.

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

<details>

<summary>

type: Optional\[Literal\["CREDIT\_CARD", "PAYPAL", "CASHAPP", 3 more]]

The payment method type.

</summary>

One of the following:

"CREDIT\_CARD"

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

"PAYPAL"

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

"CASHAPP"

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

"SEPA\_DEBIT"

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

"LINK"

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

"ACH\_DIRECT\_DEBIT"

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

</details>

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

zipcode: Optional\[str]

Billing zip code.

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

</details>

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

<details>

<summary>

class PaymentMethodGetResponse: …

</summary>

id: Optional\[str]

Payment method identifier.

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

address: Optional\[str]

Billing address line 1.

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

address2: Optional\[str]

Billing address line 2.

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

bank\_account\_type: Optional\[str]

Bank account type.

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

bank\_code: Optional\[str]

Bank code.

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

bank\_country: Optional\[str]

Bank country.

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

bank\_name: Optional\[str]

Bank name for bank-based payment methods.

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

bank\_routing\_number: Optional\[str]

Bank routing number.

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

cashapp\_cash\_tag: Optional\[str]

Cash App cash tag.

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

city: Optional\[str]

Billing city.

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

country: Optional\[str]

Billing country.

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

default: Optional\[bool]

Whether this is the default payment method.

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

device\_data: Optional\[str]

Device data for fraud prevention.

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

expiration\_date: Optional\[str]

Card expiration date.

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

first\_name: Optional\[str]

Billing first name.

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

last\_four: Optional\[str]

Last four digits of the card number.

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

last\_name: Optional\[str]

Billing last name.

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

nick\_name: Optional\[str]

A nickname for the payment method.

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

payment\_account\_email: Optional\[str]

Email associated with the payment account.

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

payment\_email: Optional\[str]

Payment email address.

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

payment\_gateway: Optional\[str]

The payment gateway used.

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

payment\_nonce: Optional\[str]

Payment nonce for tokenized payments.

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

state: Optional\[str]

Billing state.

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

<details>

<summary>

type: Optional\[Literal\["CREDIT\_CARD", "PAYPAL", "CASHAPP", 3 more]]

The payment method type.

</summary>

One of the following:

"CREDIT\_CARD"

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

"PAYPAL"

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

"CASHAPP"

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

"SEPA\_DEBIT"

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

"LINK"

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

"ACH\_DIRECT\_DEBIT"

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

</details>

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

zipcode: Optional\[str]

Billing zip code.

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

</details>

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

<details>

<summary>

class PaymentMethodUpdateResponse: …

</summary>

id: Optional\[str]

Payment method identifier.

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

address: Optional\[str]

Billing address line 1.

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

address2: Optional\[str]

Billing address line 2.

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

bank\_account\_type: Optional\[str]

Bank account type.

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

bank\_code: Optional\[str]

Bank code.

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

bank\_country: Optional\[str]

Bank country.

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

bank\_name: Optional\[str]

Bank name for bank-based payment methods.

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

bank\_routing\_number: Optional\[str]

Bank routing number.

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

cashapp\_cash\_tag: Optional\[str]

Cash App cash tag.

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

city: Optional\[str]

Billing city.

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

country: Optional\[str]

Billing country.

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

default: Optional\[bool]

Whether this is the default payment method.

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

device\_data: Optional\[str]

Device data for fraud prevention.

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

expiration\_date: Optional\[str]

Card expiration date.

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

first\_name: Optional\[str]

Billing first name.

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

last\_four: Optional\[str]

Last four digits of the card number.

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

last\_name: Optional\[str]

Billing last name.

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

nick\_name: Optional\[str]

A nickname for the payment method.

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

payment\_account\_email: Optional\[str]

Email associated with the payment account.

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

payment\_email: Optional\[str]

Payment email address.

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

payment\_gateway: Optional\[str]

The payment gateway used.

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

payment\_nonce: Optional\[str]

Payment nonce for tokenized payments.

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

state: Optional\[str]

Billing state.

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

<details>

<summary>

type: Optional\[Literal\["CREDIT\_CARD", "PAYPAL", "CASHAPP", 3 more]]

The payment method type.

</summary>

One of the following:

"CREDIT\_CARD"

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

"PAYPAL"

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

"CASHAPP"

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

"SEPA\_DEBIT"

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

"LINK"

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

"ACH\_DIRECT\_DEBIT"

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

</details>

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

zipcode: Optional\[str]

Billing zip code.

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

</details>

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

<details>

<summary>

Union\[Optional\[str], Optional\[object]]

</summary>

One of the following:

Optional\[str]

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

Optional\[object]

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

</details>

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

<details>

<summary>

Union\[Optional\[str], Optional\[object]]

</summary>

One of the following:

Optional\[str]

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

Optional\[object]

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

</details>

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

#### AccountsPay Invoice

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

accounts.pay\_invoice.create(PayInvoiceCreateParams\*\*kwargs) -> [PayInvoiceCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.pay_invoice%20%3E%20(model)%20pay_invoice_create_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class PayInvoiceCreateResponse: …

</summary>

client\_secret: Optional\[str]

The Stripe client secret for frontend payment confirmation.

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

</details>

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

#### AccountsPay Bad Debt

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

accounts.pay\_bad\_debt.create(PayBadDebtCreateParams\*\*kwargs) -> [PayBadDebtCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.pay_bad_debt%20%3E%20(model)%20pay_bad_debt_create_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class PayBadDebtCreateResponse: …

</summary>

client\_secret: Optional\[str]

The Stripe client secret for frontend payment confirmation.

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

</details>

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

#### AccountsReceipts

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

accounts.receipts.pdf(strreceipt\_id, ReceiptPDFParams\*\*kwargs) -> BinaryResponseContent

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

#### AccountsInvoices

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

accounts.invoices.edit(InvoiceEditParams\*\*kwargs) -> [InvoiceEditResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.invoices%20%3E%20(model)%20invoice_edit_response%20%3E%20(schema)>)

PATCH/accounts/{account\_id}/invoices

##### ModelsExpand Collapse

<details>

<summary>

Union\[Optional\[str], Optional\[object]]

</summary>

One of the following:

Optional\[str]

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

Optional\[object]

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

</details>

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

#### AccountsClient Secret

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

accounts.client\_secret.create(ClientSecretCreateParams\*\*kwargs) -> [ClientSecretCreateResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.client_secret%20%3E%20(model)%20client_secret_create_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

class ClientSecretCreateResponse: …

</summary>

client\_secret: Optional\[str]

The Stripe client secret for frontend payment confirmation.

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

</details>

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