# POST /debit/api/recreateCustomerCardAccounts

**Resource:** [Account linking](../resources/Account-linking.md)
**Service that updates the account linked to a card**
**Operation ID:** `recreateCustomerCardAccounts`

Recreates all card accounts for a customer linked to a shadow card. Accepts a list of card accounts and replaces the existing ones, ensuring all accounts are valid. Used for batch updates or correcting account assignments.

## Request Body

Recreate Customer Card Accounts Request

**Required:** Yes

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

**Schema:** [RecreateCustomerCardAccountsRequest](../schemas/Recreate/RecreateCustomerCardAccountsRequest.md)

## Responses

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

