# POST /Indoor/api/replaceDebitCard

**Resource:** [Card issuance and personalisation](../resources/Card-issuance-and-personalisation.md)
**Debit card renewal service**
**Operation ID:** `replaceDebitCard`

Replaces a debit card. Calls the debit management service to generate a new card or update product details for the specified debit card. Returns the new shadow card number, masked card number, card reference number, and flags indicating if a new card was generated or the product was changed.

## Request Body

Replace Debit Card Request

**Required:** Yes

**Content Types:** `application/json`

**Schema:** [ReplaceDebitCardRequest](../schemas/Replace/ReplaceDebitCardRequest.md)

## Responses

| Status | Description |
|--------|-------------|
| 200 | Success |
| 400 | (reference) |
| 404 | (reference) |
| 500 | (reference) |

**Success Response Schema:**

[ReplaceDebitCardResponse](../schemas/Replace/ReplaceDebitCardResponse.md)

