Cards
Physical and virtual card resources and their lifecycle.
The card resource represents a payment card. Cards are derived from and controlled by the cardproduct resource. For more information on cards, see About Cards.
Some attributes of the card resource can be defined in an associated bulkissuance or cardproduct resource. If you define one of these attributes in more than one object, the order of precedence at fulfillment time is as follows:
card
bulkissuance
cardproduct
Defining an attribute in an object with higher precedence overrides, but does not overwrite, the attribute in a lower-precedence object.
Create card
Action: POST
Endpoint: /cards
Creates a card.
Create the user and card product before you create the card. You create a card using the user_token of the user who will own the card and the card_product_token of the card product that will control the card.
Tip
By default, newly created cards are inactive and must be explicitly activated (see Create Card Transition for information on activating cards). To create cards that are activated upon issue, configure your card product’s config.card_life_cycle.activate_upon_issue field (see Card Products).
Send a POST request to /pins/controltoken to set the card’s personal identification number (PIN) if your program requires PIN numbers (for example, for Europay Mastercard and Visa cards); this action updates the pin_is_set field to true. See Create or Update PIN for details.
You can use optional query parameters to show the primary account number (PAN) and card verification value (CVV2) number in the response. If show_pan and show_cvv_number are set to true, the fulfillment state of the card is DIGITALLY_PRESENTED instead of the typical initial state of ISSUED. This fulfillment state does not affect the delivery of physical cards.
This endpoint requires PCI DSS compliance if show_pan and show_cvv_number are set to true. You must comply with PCI DSS data security requirements if you store, transmit, or process sensitive card data.
URL query parameters
Mirrored from the Marqeta reference and truncated here so the MDX compile
stays cheap while we demo the devdocs.dev skin. The full parameter table /
response schema for this endpoint will be rendered from OpenAPI once the
fumadocs-openapi integration lands.