Create a Card
Preview: This endpoint is in preview and may change before general availability.
Creates a new card.
Business Rules
- A new card is created in the
activestate.statusis system-managed and cannot be set on create; status changes go through the status-transition endpoints (coming soon). details.last_four(the last four digits of the card’s PAN) is required.details.replacement_forreferences an existing card that this card replaces. When provided, the referenced card must be inclosedstatus at the time of the write and must not already be referenced by another card.
Idempotency
The Idempotency-Key header is required. Reusing a key with a different request body will return a 422 error.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Unique key to ensure idempotent requests
255Body
Request body for creating a new card.
The ID of the Account object.
^account_\w+$"account_xyz123"
The ID of your entity.
^entity_[^\s]{1,33}$"entity_xyz123"
Physical and product attributes of the card.
A set of key-value pairs that can be used to store additional information related to this object.
Response
Card created successfully.
A card object
The server-generated ID of the Card object.
^card_\w+$"card_xyz123"
Client-provided identifier for the card. Present only for cards created via file upload; cards created through the API are identified solely by their server-generated ID.
The ID of the Account object.
^account_\w+$"account_xyz123"
The ID of your entity.
^entity_[^\s]{1,33}$"entity_xyz123"
Current state of the card.
active, inactive, closed The reason for the card's current status. Empty when the card is active; otherwise
populated. Set via the status-transition endpoints.
Creation timestamp.
Last update timestamp.
Physical and product attributes of the card.
Server-derived. Set to the ID of the card that replaces this one when another card
is created with replacement_for pointing at this card. Never settable
by the client on the external API.
^card_\w+$"card_xyz123"
A set of key-value pairs that can be used to store additional information related to this object.

