Replace a virtual card with a new card number. The old card is terminated and balance is transferred. POST /cards//replace. Requires cards:write scope.
Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
productId, cardholder, and name.
| Parameter | Type | Description |
|---|---|---|
cardId | string | The card ID to replace |
productId (and thus the same settings)card.replaced webhook is sent when complete| Scenario | Recommended Action |
|---|---|
| Card number compromised | Replace |
| Card expiring soon | Cards auto-renew — no action needed |
| Cardholder wants a fresh number | Replace |
| Card lost (uncertain if fraudulent) | Freeze first, then replace if not recovered |
| Code | Description |
|---|---|
RESOURCE_NOT_FOUND | Card not found or belongs to another business |
CARD_NOT_ACTIVE | Only active cards can be replaced |
PROVIDER_ERROR | Card provider rejected the replacement |
status: PROCESSING. Listen for the card.replaced webhook for the new card details.JWT access token obtained from /auth/token
The unique card identifier