POST /accounts/{account_id}/payment-methods
Creates a new payment method for an account.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id |
String | Yes |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
expiration_date |
String | No |
Card expiration date. |
first_name |
String | No |
Billing first name. |
nick_name |
String | No |
A nickname for the payment method. |
state |
String | No |
Billing state. |
city |
String | No |
Billing city. |
bank_account_type |
String | No |
Bank account type. |
id |
String | No |
Payment method identifier. |
bank_name |
String | No |
Bank name for bank-based payment methods. |
bank_routing_number |
String | No |
Bank routing number. |
cashapp_cash_tag |
String | No |
Cash App cash tag. |
payment_nonce |
String | No |
Payment nonce for tokenized payments. |
type |
String | No |
The payment method type. Valid values:
|
country |
String | No |
Billing country. |
last_four |
String | No |
Last four digits of the card number. |
default |
Boolean | No |
Whether this is the default payment method. |
address2 |
String | No |
Billing address line 2. |
device_data |
String | No |
Device data for fraud prevention. |
payment_email |
String | No |
Payment email address. |
payment_account_email |
String | No |
Email associated with the payment account. |
payment_gateway |
String | No |
The payment gateway used. |
bank_country |
String | No |
Bank country. |
bank_code |
String | No |
Bank code. |
last_name |
String | No |
Billing last name. |
zipcode |
String | No |
Billing zip code. |
address |
String | No |
Billing address line 1. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.