> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baanx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unlink Wallet from Card

> Remove a custodial wallet from card payment sources

Remove a wallet from card payment sources. The wallet remains available but won't be used for card transactions.

### Authentication

<ParamField header="x-client-key" type="string" required>
  Your public API client key
</ParamField>

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication
</ParamField>

### Request Body

<ParamField body="addressId" type="string" required>
  Wallet addressId to unlink
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Whether unlinking was successful
</ResponseField>

<ResponseExample>
  ```json 200 - Success theme={null} theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>

<CodeGroup>
  ```bash cURL theme={null} theme={null}
  curl -X DELETE "https://dev.api.baanx.com/v1/wallet/internal/card_linked" \
    -H "x-client-key: YOUR_CLIENT_KEY" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "addressId": "7c1839ee-918e-4787-b74f-deeb48ead58b"
    }'
  ```

  ```python Python theme={null} theme={null}
  unlink_data = {"addressId": "7c1839ee-918e-4787-b74f-deeb48ead58b"}
  response = requests.delete(
      "https://dev.api.baanx.com/v1/wallet/internal/card_linked",
      headers=headers,
      json=unlink_data
  )

  if response.status_code == 200:
      print("Wallet unlinked from card")
  ```

  ```typescript TypeScript theme={null} theme={null}
  async function unlinkWalletFromCard(addressId: string): Promise<boolean> {
    const response = await fetch(
      'https://dev.api.baanx.com/v1/wallet/internal/card_linked',
      {
        method: 'DELETE',
        headers: {
          'x-client-key': 'YOUR_CLIENT_KEY',
          'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({ addressId })
      }
    );

    const result = await response.json();
    return result.success;
  }
  ```
</CodeGroup>

## Important Notes

<Warning>
  **Unlinking Effects**: Unlinking a wallet doesn't delete it, only removes it as a card payment source. The wallet and its funds remain accessible.
</Warning>

## Related Endpoints

* [List Card-Linked Wallets](/api-reference/wallet/internal-card-linked-get) - View currently linked wallets
* [Link Wallet to Card](/api-reference/wallet/internal-card-linked-post) - Add a wallet as a card payment source
* [Update Linked Wallet Priority](/api-reference/wallet/internal-card-linked-priority) - Change charging order
