Create a card
Issue a new virtual card.
Request body
The account the new card will draw funds from. Required when @kind@ is @debit@; list available account IDs via @GET https://api.mercury.com/api/v1/accounts@ (for debit card creation, the accountId must be associated with a checking account). Optional when @kind@ is @credit@; omit to use your organization's Mercury credit account, or pass the credit accountId from @GET https://api.mercury.com/api/v1/credit@.
Whether to issue a debit or credit card.
Optional user-assigned label for the card.
The type of card to issue.
The user to assign as the cardholder.
Response
The Mercury account this card is associated with.
Mercury spend-category locks applied to this card, in no particular order. Empty when the card has no category restrictions.
Timestamp when the card was issued.
Unique identifier for the card.
Whether the card is a debit or credit card.
Last four digits of the card's primary account number (PAN).
Cardholder name printed on the card.
Optional user-assigned label for the card.
Activation state of a physical card. Null for virtual cards.
Current lifecycle state of the card.
Whether the card is virtual (digital-only) or physical (printed, supports ATM).
Timestamp of the last modification to the card or its settings.
Mercury User who owns the card.
Example response
{
"createdAt": "2016-07-22T00:00:00Z",
"expiration": {
"month": 8,
"year": 2026
},
"updatedAt": "2016-07-22T00:00:00Z"
}