post
https://partner-api.getpliant.com/api/cards//replace
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 terminateCardReason:
LOST,STOLEN,OTHER: at once.DAMAGED,EXPIRING_SOON: when the new card is activated.
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. For physical cards,CARD_ACTIVATEDfollows when the cardholder activates the card. - 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.

