Replace Card
Changed onReplace 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, LOST or STOLEN: at once.
- Physical cards, OTHER, DAMAGED or EXPIRING_SOON: when the new card is activated. Until then, the old card stays active.
The following callbacks are sent:
- New card: CARD_CREATED, then CARD_BALANCE_UPDATED and CARD_LIMIT_CHANGED. A replacement card is created in its final state, so you receive no CARD_ISSUED or CARD_STATUS_CHANGED for it at creation. A physical replacement card starts in PENDING_ACTIVATION. When the cardholder activates it, you receive CARD_ACTIVATED and CARD_STATUS_CHANGED for it. This can be days or weeks after the replace request.
- Old card: CARD_TERMINATED and CARD_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.
Request
- Base URLhttps://partner-api.getpliant.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the card.
Request body
Response
Ok
Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
added the media type
application/jsonfor the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking