Required scope:cards:writeThe API credential calling this endpoint must be granted the
cardscategory withread & writeaccess.
Scopes are assigned to the credential when it is created or edited in Pliant, not requested when obtaining the access token.
A credential without this scope receives403 Forbiddenwith the error codeINSUFFICIENT_PERMISSION.
Replace or renew an existing card. This endpoint creates a new card with the same settings and card type, with new sensitive card data, for the same cardholder. This can be useful to replace for instance a stolen credit card.
When the old card is terminated depends on the card type and terminateCardReason:
- Virtual cards: at once.
- Physical cards,
LOSTorSTOLEN: at once. - Physical cards,
OTHER,DAMAGEDorEXPIRING_SOON: when the new card is activated. Until then, the old card stays active.
The following callbacks are sent:
- New card:
CARD_CREATED, thenCARD_BALANCE_UPDATEDandCARD_LIMIT_CHANGED. A replacement card is created in its final state, so you receive noCARD_ISSUEDorCARD_STATUS_CHANGEDfor it at creation. A physical replacement card starts inPENDING_ACTIVATION. When the cardholder activates it, you receiveCARD_ACTIVATEDandCARD_STATUS_CHANGEDfor it. This can be days or weeks after the replace request. - Old card:
CARD_TERMINATEDandCARD_STATUS_CHANGED, at the termination time above.
The order of these callbacks is not guaranteed, also between the two cards. Use replacedCardId from the response to link the new card to the old one.

