Skip to main content
POST
Add a debit card

Authorizations

Authorization
string
header
required

User bearer credential: either a Cognito JWT or an ak_ user API key. Backend integrators using HMAC must include the user API key alongside the three HMAC headers on user-scoped endpoints.

Body

encryptedCardNumber
string
required

Card number as encrypted by the Evervault Card component (card.number in its change payload). An opaque ev: token — never a raw PAN. Initialise the component with the Evervault team ID and the per-environment app ID that Spritz provides during onboarding.

Example:

"ev:SWFSS:..."

expiryMonth
string
required

Expiry month exactly as the Evervault Card component returns it (card.expiry.month). This value is plaintext, not encrypted; one or two digits are accepted.

Pattern: ^(0?[1-9]|1[0-2])$
Example:

"09"

expiryYear
string
required

Expiry year exactly as the Evervault Card component returns it (card.expiry.year). This value is plaintext, not encrypted; a two-digit year is accepted.

Pattern: ^[0-9]{2}$|^20[0-9]{2}$
Example:

"29"

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:

"6ab3aa90aacef26176c97a29"

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.