Cards

Card user, product, transactions and setup endpoints

Status check for create-card-user API

get
Responses
200

API status

application/json
get
/api/cards/create-card-user
200

API status

Create a new card user

post

Creates a Marqeta card user with first name, last name, and wallet address.

Body
firstNamestringRequiredExample: John
lastNamestringRequiredExample: Doe
walletAddressstringRequiredExample: 0xabc12345deadbeef6789
Responses
200

Card user created

application/json
post
/api/cards/create-card-user

Fetch and store card products

post
Body
cardUserIdstringRequiredExample: user_123456
Responses
200

Card products fetched and stored

application/json
post
/api/cards/create-card-product

Status check for create-card API

get
Responses
200

API status

application/json
get
/api/cards/create-card
200

API status

Create card using card product and user token

post
Body
cardProductTokenstringRequiredExample: cp_123456
userTokenstringRequiredExample: user_123456
walletAddressstringOptionalExample: 0xabc12345deadbeef6789
Responses
200

Card created

application/json
post
/api/cards/create-card

Status check for fund-card API

get
Responses
200

API status

application/json
get
/api/cards/fund-card
200

API status

Fund card

post
Body
user_tokenstringRequiredExample: user_abc123
amountnumberRequiredExample: 100
currencyCodestringRequiredExample: USD
Responses
200

Card funded

application/json
post
/api/cards/fund-card

Status check for send-transaction API

get
Responses
200

API status

application/json
get
/api/cards/send-transaction
200

API status

Send card transaction

post
Body
amountnumberRequiredExample: 100
card_tokenstringRequiredExample: card_abcdef
card_acceptor_midstringRequiredExample: mid_123456
networkstringRequiredExample: visa
webhookstringOptionalExample: https://example.com/webhook
Responses
200

Transaction simulated

application/json
post
/api/cards/send-transaction

Status check for card setup API

get
Responses
200

API status

application/json
get
/api/cards/setup
200

API status

Setup card user, products, and card in one workflow

post
Body
firstNamestringRequiredExample: Jane
lastNamestringRequiredExample: Doe
walletAddressstringRequiredExample: 0xabc12345deadbeef6789
Responses
200

Setup complete with user, products and card created

application/json
post
/api/cards/setup