Replace Card
Cards
Replace Card
Replace a card with a new one — same cardholder, new card number. POST /cards//replace.
POST
Replace Card
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.
Overview
Replace an existing card with a brand new one. ThecardId remains the same for your records, but the card details (number, expiry, CVV) are replaced with a completely new card. Any remaining balance is automatically transferred to the new card.
Use Cases
- Card Compromised: When a cardholder reports unauthorized use or data exposure
- Card Lost: When a physical card is lost and needs to be replaced
- Card Damaged: When the card details are no longer accessible
Path Parameters
| Parameter | Type | Description |
|---|---|---|
cardId | string | The unique card identifier |
Request Body (Optional)
| Field | Type | Required | Description |
|---|---|---|---|
reason | string | No | Reason for replacing the card (e.g., “Card compromised”, “Card lost”) |
reference | string | No | Your unique reference for this operation. Defaults to cardId if not provided. Returned in webhooks for easy reconciliation. |
Example Usage
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | The card identifier (unchanged from before) |
cardholderId | string | The cardholder identifier |
name | string | Name on the card |
last4 | string | Last 4 digits of the new card number |
maskedNumber | string | Masked new card number |
expiryDate | string | New card expiry date (MM/YYYY) |
brand | string | Card brand (VISA or MASTERCARD) |
status | string | Card status (always ACTIVE for new cards) |
balance | number | Current balance transferred from old card |
reference | string | Your reference for this operation |
replacedAt | string | ISO 8601 timestamp of when the card was replaced |
Error Responses
| Status | Error Code | Description |
|---|---|---|
| 400 | CARD_TERMINATED | Cannot replace a terminated card |
| 400 | INSUFFICIENT_BALANCE | Business wallet has insufficient balance for replacement fee |
| 404 | CARD_NOT_FOUND | Card not found or doesn’t belong to your app |
| 500 | REPLACE_FAILED | Failed to replace card at the bank partner |
Product Fallback: When replacing a card, the system first tries to issue the same card product type. If that product is no longer available for issuance (i.e.,
canIssue: false in the products list), the default product (isDefault: true) is automatically used instead. The replacement is seamless — the balance is transferred regardless of which product is used.A card replacement fee may apply based on your pricing configuration. Use the Get Pricing endpoint to check current fees.
Authorizations
JWT access token obtained from /auth/token
Path Parameters
The unique card identifier
Body
application/json

