Skip to main content
POST
Create payment method

Authorizations

X-API-Key
string
header
required

API Key for authentication

Body

application/json

body

reference_id
string
required
Maximum string length: 255
Example:

"CRD_1234567890"

customer_id
string
required
Example:

"00000000-0000-0000-0000-000000000000"

provider
string
required
Maximum string length: 50
Example:

"stripe"

payment_method_type
string
required
Maximum string length: 50
Example:

"card"

card_type
string
required
Maximum string length: 50
Example:

"debit"

brand
string
required
Maximum string length: 50
Example:

"visa"

card_expiry
string
required
Example:

"09/25"

last_four_digits
string
required
Maximum string length: 4
Example:

"1111"

token
string
required
Example:

"PIuTv1UgBqESZ2KRDixPtDJt~1234567890"

external_customer_id
string
Maximum string length: 255
Example:

"cus_ABC123456"

display_name
string
Maximum string length: 50
Example:

"John Doe"

is_default
boolean
default:false
address_line_1
string
Maximum string length: 255
Example:

"123 Main St"

address_line_2
string
Maximum string length: 255
Example:

"Apt 101"

city
string
Maximum string length: 50
Example:

"Anytown"

state
string
Maximum string length: 50
Example:

"CA"

country
string
Example:

"US"

zip_code
string
Maximum string length: 50
Example:

"12345"

email
string
Example:

"john.doe@example.com"

phone
string
Example:

"+14155552671"

first_name
string
Maximum string length: 50
Example:

"John"

last_name
string
Maximum string length: 50
Example:

"Doe"

Response

Created

data
object