Skip to main content
POST
Create account card
POST////
Create a credit card for an existing credit account.
Note
You can ship cards to an address different from the user address. After creating a card, send a PUT request to the /cards endpoint with the new address in the fulfillment.shipping object. For more, see Update card.

URL path parameters

Request body

Expected request body to create a credit card for an existing credit account. Refer to Create card for the complete list of fields.

Sample request body

JSON

Response body

Sample response body

JSON

Authorizations

Authorization
string
header
required

Token used to verify user identity and also authorize user to use service

Path Parameters

account_token
string
required

Unique identifier of the credit account for which to create a credit card.

Send a GET request to /credit/accounts to retrieve existing credit account tokens.

Body

application/json

Expected request body to create a credit card for an existing credit account. Refer to <</core-api/cards/#postCards,Create card>> for the complete list of fields.

The body is of type object.

Response

Expected response to a valid request.

Information about a credit card.

token
string
required

Unique identifier of the credit card.

user_token
string
required

Unique identifier of the credit cardholder.

created_time
string<date-time>
required

Date and time when the card was created on Marqeta's credit platform, in UTC.

updated_time
string<date-time>
required

Date and time when the card was last modified on Marqeta's credit platform, in UTC.

account_token
string
required

Unique identifier of the associated credit account.

Maximum string length: 36