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

# Get bank accounts

> List, read, and delete the bank accounts registered for payouts

<View title="NodeJS" icon="node-js">
  Use the `list`, `get`, and `delete` methods from the `externalFiatAccounts` resource on `users()`.

  ```ts theme={"system"}
  import {PrivyClient} from '@privy-io/node';

  const privy = new PrivyClient({
    appId: process.env.PRIVY_APP_ID!,
    appSecret: process.env.PRIVY_APP_SECRET!
  });

  const {accounts} = await privy.users().externalFiatAccounts.list('did:privy:xxxxx', {
    provider: 'bridge',
    environment: 'sandbox'
  });

  const {external_fiat_account: bankAccount} = await privy
    .users()
    .externalFiatAccounts.get('<fiat-account-id>', {user_id: 'did:privy:xxxxx'});

  await privy.users().externalFiatAccounts.delete('<fiat-account-id>', {
    user_id: 'did:privy:xxxxx'
  });
  ```
</View>

<View title="Python" icon="python">
  Use the `list`, `get`, and `delete` methods on `external_fiat_accounts`.

  ```python theme={"system"}
  accounts = client.users.external_fiat_accounts.list(
      "did:privy:xxxxx",
      provider="bridge",
      environment="sandbox",
  )

  bank_account = client.users.external_fiat_accounts.get(
      "fiat-account-id",
      user_id="did:privy:xxxxx",
  )

  client.users.external_fiat_accounts.delete(
      "fiat-account-id",
      user_id="did:privy:xxxxx",
  )
  ```
</View>

<View title="REST API" icon="terminal">
  To list a user's registered accounts, make a `GET` request to:

  ```bash theme={"system"}
  https://api.privy.io/v1/users/{user_id}/external_fiat_accounts
  ```

  See the API reference for [listing](/api-reference/fiat/external-fiat-accounts/list), [reading](/api-reference/fiat/external-fiat-accounts/get), and [deleting](/api-reference/fiat/external-fiat-accounts/delete) bank accounts.

  The endpoint accepts the following query parameters:

  <ParamField query="provider" type="'bridge'" required>
    Provider to list accounts for.
  </ParamField>

  <ParamField query="environment" type="'production' | 'sandbox'">
    Provider environment to list accounts for. Defaults to `production`.
  </ParamField>

  The response contains an `accounts` array alongside a `next_cursor`. To read or delete a single account, make a `GET` or
  `DELETE` request to `/v1/users/{user_id}/external_fiat_accounts/{account_id}`. A successful delete
  returns `{"success": true}`.

  ```bash theme={"system"}
  curl --request DELETE https://api.privy.io/v1/users/did:privy:xxxxx/external_fiat_accounts/fa_3ad996de-e827-4d2e-99fc-799838520453 \
    -u "<your-privy-app-id>:<your-privy-app-secret>" \
    -H "privy-app-id: <your-privy-app-id>"
  ```

  The same routes exist under `/v1/organizations/{organization_id}/external_fiat_accounts`.
</View>

## Next steps

<CardGroup cols={2}>
  <Card title="Execute a payout" icon="money-bill-transfer" href="/financial-flows/transfers/fiat-payouts/execute-payout">
    Convert crypto to fiat in a single call
  </Card>

  <Card title="Register a bank account" icon="building-columns" href="/financial-flows/transfers/fiat-payouts/register-bank-account">
    Save the bank account a payout settles to
  </Card>
</CardGroup>
