Skip to main content
POST
Add a debit card

Authorizations

Authorization
string
header
required

Cognito JWT token for regular user authentication

Body

encryptedCardNumber
string
required

Evervault-encrypted card number token (opaque string from the Card iframe)

Example:

"ev:SWFSS:..."

expiryMonth
string
required

Evervault-encrypted expiry month token (opaque string from the Card iframe)

Example:

"ev:SWFSS:..."

expiryYear
string
required

Evervault-encrypted expiry year token (opaque string from the Card iframe)

Example:

"ev:SWFSS:..."

cardLastFour
string
required

Last 4 digits of the card number (plaintext from iframe)

Pattern: ^[0-9]{4}$
Example:

"4321"

cardBin
string
required

Card BIN / first 6-8 digits (plaintext from iframe)

Pattern: ^[0-9]{6,8}$
Example:

"411111"

cardBrand
enum<string>
required
Available options:
visa,
mastercard
cardholderFirstName
string
required

Cardholder's first name

Minimum string length: 1
Example:

"John"

cardholderLastName
string
required

Cardholder's last name

Minimum string length: 1
Example:

"Doe"

billingAddress
object
required
label
string

Friendly name for the card

Example:

"My Visa Debit"

Response

Response for status 201

id
string
required

Unique identifier for the debit card

Example:

"6a749a054c3b8fc5da595d19"

status
enum<string>
required
Available options:
active,
pending,
inactive,
rejected,
action_required
network
enum<string>
required
Available options:
visa,
mastercard
cardNumberLast4
string
required

Last 4 digits of card number

Example:

"1111"

expiryMonth
number
required
Example:

12

expiryYear
number
required
Example:

2027

currency
enum<string>
required
Available options:
USD,
CAD,
EUR,
GBP
isTokenized
boolean
required

Whether this card has been tokenized via Evervault for secure storage

Example:

true

createdAt
string<date-time>
required
label
string
requirements
object[]

Actions the user must complete before the card can be used for payouts. Present (non-empty) when status is action_required.