Cards
Card user, product, transactions and setup endpoints
Creates a Marqeta card user with first name, last name, and wallet address.
Body
firstNamestringRequiredExample:
JohnlastNamestringRequiredExample:
DoewalletAddressstringRequiredExample:
0xabc12345deadbeef6789Responses
200
Card user created
application/json
400
Missing required fields
404
User not found
500
Internal server error
post
/api/cards/create-card-userBody
cardProductTokenstringRequiredExample:
cp_123456userTokenstringRequiredExample:
user_123456walletAddressstringOptionalExample:
0xabc12345deadbeef6789Responses
200
Card created
application/json
400
Missing required parameters
404
User not found
500
Internal server or Marqeta API error
post
/api/cards/create-cardBody
amountnumberRequiredExample:
100card_tokenstringRequiredExample:
card_abcdefcard_acceptor_midstringRequiredExample:
mid_123456networkstringRequiredExample:
visawebhookstringOptionalExample:
https://example.com/webhookResponses
200
Transaction simulated
application/json
400
Missing required fields
500
Internal server or Marqeta API failure
post
/api/cards/send-transactionBody
firstNamestringRequiredExample:
JanelastNamestringRequiredExample:
DoewalletAddressstringRequiredExample:
0xabc12345deadbeef6789Responses
200
Setup complete with user, products and card created
application/json
400
Missing required fields
404
User not found
500
Internal server error during setup
post
/api/cards/setup