---
title: Payment Methods
---

[Skip to content](#%5Ftop) 

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

[Accounts](https://developers.cloudflare.com/api/typescript/resources/accounts)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Payment Methods

##### [List Payment Methods](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/payment%5Fmethods/methods/list)

client.accounts.paymentMethods.list(PaymentMethodListParams { account\_id, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray<[PaymentMethodListResponse](https://developers.cloudflare.com/api/typescript/resources/accounts#%28resource%29%20accounts.payment%5Fmethods%20%3E%20%28model%29%20payment%5Fmethod%5Flist%5Fresponse%20%3E%20%28schema%29) { id, address, address2, 22 more } \>

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

##### [Create Payment Method](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/payment%5Fmethods/methods/create)

client.accounts.paymentMethods.create(PaymentMethodCreateParams { account\_id, address, address2, 20 more } params, RequestOptionsoptions?): [PaymentMethodCreateResponse](https://developers.cloudflare.com/api/typescript/resources/accounts#%28resource%29%20accounts.payment%5Fmethods%20%3E%20%28model%29%20payment%5Fmethod%5Fcreate%5Fresponse%20%3E%20%28schema%29) { id, address, address2, 22 more } 

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

##### [Get Payment Method](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/payment%5Fmethods/methods/get)

client.accounts.paymentMethods.get(stringpaymentMethodID, PaymentMethodGetParams { account\_id } params, RequestOptionsoptions?): [PaymentMethodGetResponse](https://developers.cloudflare.com/api/typescript/resources/accounts#%28resource%29%20accounts.payment%5Fmethods%20%3E%20%28model%29%20payment%5Fmethod%5Fget%5Fresponse%20%3E%20%28schema%29) { id, address, address2, 22 more } 

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

##### [Update Payment Method](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/payment%5Fmethods/methods/update)

client.accounts.paymentMethods.update(stringpaymentMethodID, PaymentMethodUpdateParams { account\_id, address, address2, 20 more } params, RequestOptionsoptions?): [PaymentMethodUpdateResponse](https://developers.cloudflare.com/api/typescript/resources/accounts#%28resource%29%20accounts.payment%5Fmethods%20%3E%20%28model%29%20payment%5Fmethod%5Fupdate%5Fresponse%20%3E%20%28schema%29) { id, address, address2, 22 more } 

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

##### [Delete Payment Method](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/payment%5Fmethods/methods/delete)

client.accounts.paymentMethods.delete(stringpaymentMethodID, PaymentMethodDeleteParams { account\_id } params, RequestOptionsoptions?): [PaymentMethodDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/accounts#%28resource%29%20accounts.payment%5Fmethods%20%3E%20%28model%29%20payment%5Fmethod%5Fdelete%5Fresponse%20%3E%20%28schema%29)

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

##### [Set Default Payment Method](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/payment%5Fmethods/methods/set%5Fas%5Fdefault)

client.accounts.paymentMethods.setAsDefault(stringpaymentMethodID, PaymentMethodSetAsDefaultParams { account\_id } params, RequestOptionsoptions?): [PaymentMethodSetAsDefaultResponse](https://developers.cloudflare.com/api/typescript/resources/accounts#%28resource%29%20accounts.payment%5Fmethods%20%3E%20%28model%29%20payment%5Fmethod%5Fset%5Fas%5Fdefault%5Fresponse%20%3E%20%28schema%29)

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

##### ModelsExpand Collapse 

PaymentMethodListResponse { id, address, address2, 22 more } 

id?: string

Payment method identifier.

address?: string

Billing address line 1.

address2?: string

Billing address line 2.

bank\_account\_type?: string

Bank account type.

bank\_code?: string

Bank code.

bank\_country?: string

Bank country.

bank\_name?: string

Bank name for bank-based payment methods.

bank\_routing\_number?: string

Bank routing number.

cashapp\_cash\_tag?: string

Cash App cash tag.

city?: string

Billing city.

country?: string

Billing country.

default?: boolean

Whether this is the default payment method.

device\_data?: string

Device data for fraud prevention.

expiration\_date?: string

Card expiration date.

first\_name?: string

Billing first name.

last\_four?: string

Last four digits of the card number.

last\_name?: string

Billing last name.

nick\_name?: string

A nickname for the payment method.

payment\_account\_email?: string

Email associated with the payment account.

payment\_email?: string

Payment email address.

payment\_gateway?: string

The payment gateway used.

payment\_nonce?: string

Payment nonce for tokenized payments.

state?: string

Billing state.

type?: "CREDIT\_CARD" | "PAYPAL" | "CASHAPP" | 3 more

The payment method type.

One of the following:

"CREDIT\_CARD"

"PAYPAL"

"CASHAPP"

"SEPA\_DEBIT"

"LINK"

"ACH\_DIRECT\_DEBIT"

zipcode?: string

Billing zip code.

PaymentMethodCreateResponse { id, address, address2, 22 more } 

id?: string

Payment method identifier.

address?: string

Billing address line 1.

address2?: string

Billing address line 2.

bank\_account\_type?: string

Bank account type.

bank\_code?: string

Bank code.

bank\_country?: string

Bank country.

bank\_name?: string

Bank name for bank-based payment methods.

bank\_routing\_number?: string

Bank routing number.

cashapp\_cash\_tag?: string

Cash App cash tag.

city?: string

Billing city.

country?: string

Billing country.

default?: boolean

Whether this is the default payment method.

device\_data?: string

Device data for fraud prevention.

expiration\_date?: string

Card expiration date.

first\_name?: string

Billing first name.

last\_four?: string

Last four digits of the card number.

last\_name?: string

Billing last name.

nick\_name?: string

A nickname for the payment method.

payment\_account\_email?: string

Email associated with the payment account.

payment\_email?: string

Payment email address.

payment\_gateway?: string

The payment gateway used.

payment\_nonce?: string

Payment nonce for tokenized payments.

state?: string

Billing state.

type?: "CREDIT\_CARD" | "PAYPAL" | "CASHAPP" | 3 more

The payment method type.

One of the following:

"CREDIT\_CARD"

"PAYPAL"

"CASHAPP"

"SEPA\_DEBIT"

"LINK"

"ACH\_DIRECT\_DEBIT"

zipcode?: string

Billing zip code.

PaymentMethodGetResponse { id, address, address2, 22 more } 

id?: string

Payment method identifier.

address?: string

Billing address line 1.

address2?: string

Billing address line 2.

bank\_account\_type?: string

Bank account type.

bank\_code?: string

Bank code.

bank\_country?: string

Bank country.

bank\_name?: string

Bank name for bank-based payment methods.

bank\_routing\_number?: string

Bank routing number.

cashapp\_cash\_tag?: string

Cash App cash tag.

city?: string

Billing city.

country?: string

Billing country.

default?: boolean

Whether this is the default payment method.

device\_data?: string

Device data for fraud prevention.

expiration\_date?: string

Card expiration date.

first\_name?: string

Billing first name.

last\_four?: string

Last four digits of the card number.

last\_name?: string

Billing last name.

nick\_name?: string

A nickname for the payment method.

payment\_account\_email?: string

Email associated with the payment account.

payment\_email?: string

Payment email address.

payment\_gateway?: string

The payment gateway used.

payment\_nonce?: string

Payment nonce for tokenized payments.

state?: string

Billing state.

type?: "CREDIT\_CARD" | "PAYPAL" | "CASHAPP" | 3 more

The payment method type.

One of the following:

"CREDIT\_CARD"

"PAYPAL"

"CASHAPP"

"SEPA\_DEBIT"

"LINK"

"ACH\_DIRECT\_DEBIT"

zipcode?: string

Billing zip code.

PaymentMethodUpdateResponse { id, address, address2, 22 more } 

id?: string

Payment method identifier.

address?: string

Billing address line 1.

address2?: string

Billing address line 2.

bank\_account\_type?: string

Bank account type.

bank\_code?: string

Bank code.

bank\_country?: string

Bank country.

bank\_name?: string

Bank name for bank-based payment methods.

bank\_routing\_number?: string

Bank routing number.

cashapp\_cash\_tag?: string

Cash App cash tag.

city?: string

Billing city.

country?: string

Billing country.

default?: boolean

Whether this is the default payment method.

device\_data?: string

Device data for fraud prevention.

expiration\_date?: string

Card expiration date.

first\_name?: string

Billing first name.

last\_four?: string

Last four digits of the card number.

last\_name?: string

Billing last name.

nick\_name?: string

A nickname for the payment method.

payment\_account\_email?: string

Email associated with the payment account.

payment\_email?: string

Payment email address.

payment\_gateway?: string

The payment gateway used.

payment\_nonce?: string

Payment nonce for tokenized payments.

state?: string

Billing state.

type?: "CREDIT\_CARD" | "PAYPAL" | "CASHAPP" | 3 more

The payment method type.

One of the following:

"CREDIT\_CARD"

"PAYPAL"

"CASHAPP"

"SEPA\_DEBIT"

"LINK"

"ACH\_DIRECT\_DEBIT"

zipcode?: string

Billing zip code.

PaymentMethodDeleteResponse \= unknown | string | null

One of the following:

unknown

string | null

PaymentMethodSetAsDefaultResponse \= unknown | string | null

One of the following:

unknown

string | null