https://api.payload.com/payment_methods
Nested Objects
https://api.payload.com/payment_methods/{id}/account
https://api.payload.com/payment_methods/{id}/created_from
https://api.payload.com/payment_methods/{id}/customer
https://api.payload.com/payment_methods/{id}/gateways
https://api.payload.com/payment_methods/{id}/processing_agreement
Example
{
"id": "pm_eVfKZA87CQY9Fw12bO91z0Bk",
"object": "payment_method",
"account_holder": "string",
"account_id": "acct_iX6Gp4na1OMnV4pIeP2rL1Ni",
"attrs": {},
"bank_name": "string",
"birth_date": "2024-08-21",
"created_at": "2024-08-21 13:35:03",
"customer_id": "acct_1jSF7P9qFTiNx2oCFPYo5gke5",
"default_credit_method": false,
"default_deposit_method": true,
"default_payment_method": false,
"default_reversal_method": true,
"description": "string",
"email": "[email protected]",
"keep_active": false,
"modified_at": "2024-08-21 13:35:03",
"phone_number": "(123) 456-7890",
"ssn_last4": "numeric",
"status": "active",
"transfer_type": "send-only",
"type": "card",
"verification_status": "not-verified",
"bank_account": {
"account_class": "personal",
"account_currency": "USD",
"account_number": "numeric",
"account_type": "checking",
"routing_number": "numeric"
},
"billing_address": {
"city": "string",
"country_code": "string",
"postal_code": "string",
"state_province": "string",
"street_address": "string",
"unit_number": "string"
},
"card": {
"card_brand": "american_express",
"card_code": "numeric",
"card_number": "numeric",
"card_type": "credit",
"expiry": "expiry"
}
}
| Attributes | Description |
|---|---|
idstring readonly |
Object ID |
objectstring readonly |
Value: payment_method |
account_holderstring readonly: update |
Name of business or individual owner of the account |
account_idid non-default |
ID of the associated Customer or Processing Account object |
attrsjson |
Custom object attributes |
bank_namestring readonly |
Bank account name |
birth_datedate non-default readonly: update |
Account holder's birth date |
created_atdatetime readonly |
None |
customer_idid |
ID of the associated Customer or Processing Account object |
default_credit_methodbool |
If enabled, this method can be used as the default for credits on the account |
default_deposit_methodbool |
If enabled, this method can be used as the default for deposits on the account |
default_payment_methodbool |
If enabled, this method can be used as the default for payments on the account |
default_reversal_methodbool |
If enabled, this method can be used as the default for reversals on the account |
descriptionstring |
A readable description for the payment method |
email |
Account holder's email |
keep_activebool readonly: update |
Set to false for one-time use payment methods |
modified_atdatetime readonly |
None |
phone_numberphone |
Account holder's phone number |
ssn_last4numeric non-default readonly: update |
Account holder's ssn last 4 |
statusstring readonly |
Values: active inactive declining |
transfer_typestring readonly: update |
Values: send-only receive-only two-way |
typestring required |
Values: card bank_account |
verification_statusstring readonly |
Values: not-verified verified owner-verified |
| bank_account: | |
|---|---|
account_classstring readonly: update |
Values: personal business |
account_currencystring readonly: update |
Values: USD CAD |
account_numbernumeric readonly: update |
Bank account number |
account_typestring readonly: update |
Values: checking savings |
routing_numbernumeric readonly: update |
Bank routing number for the account |
| billing_address: | |
|---|---|
citystring |
City of the company |
country_codestring |
Country code of the billing address |
postal_codestring required |
Postal code of the billing address |
state_provincestring |
State of the billing address |
street_addressstring |
Street address of the billing address |
unit_numberstring |
Unit number of the billing address |
| card: | |
|---|---|
card_brandstring readonly |
Values: american_express visa discover mastercard opticard |
card_codenumeric |
CVV code on back of card |
card_numbernumeric readonly: update |
Credit/Debit card number |
card_typestring |
Values: credit debit gift prepaid |
expiryexpiry required |
Expiration date of the card |