Skip to main content
POST
Add New Card

Authorizations

api_key
string
header
required

Body

application/json
user_id
string
required

The ID of the user adding the card.

Example:

"user_12345"

card_number
string
required

The card number.

Example:

"4242424242424242"

exp_month
integer
required

Card expiry month (1-12).

Example:

12

exp_year
integer
required

Card expiry year (4-digit).

Example:

2027

cvc
string
required

Card CVC/CVV security code.

Example:

"123"

is_default
boolean

Whether this card should be set as the default payment method.

Example:

true

Response

Card added successfully

status
string

Status of the card addition request.

Example:

"success"

card_id
string

The unique ID of the newly added card.

Example:

"card_abc123"

is_default
boolean

Whether this card is set as the default.

Example:

true