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

# Get Master Fiat Wallet

> Retrieve the merchant's master fiat wallet, including live balance and virtual account details

The master fiat wallet is the merchant-level settlement wallet (as opposed to a customer's individual fiat wallet). It is resolved from the authenticated API key, so no wallet ID is required.

## Request

<ParamField header="x-api-key" type="string" required>
  API Key for authentication
</ParamField>

## Request Example

```bash theme={null}
curl https://api-production.fossapay.com/api/v1/wallets/fiat/master \
  -H "x-api-key: fp_live_sk_xxxxxxxx"
```

```javascript theme={null}
const response = await fetch('https://api-production.fossapay.com/api/v1/wallets/fiat/master', {
  headers: {
    'x-api-key': 'fp_live_sk_xxxxxxxx'
  }
});

const data = await response.json();
const masterWallet = data.data;
```

```python theme={null}
import requests

url = "https://api-production.fossapay.com/api/v1/wallets/fiat/master"
headers = {"x-api-key": "fp_live_sk_xxxxxxxx"}

response = requests.get(url, headers=headers)
data = response.json()
master_wallet = data["data"]
```

## Response

<ResponseField name="success" type="boolean">
  Response status
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable response message
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="id" type="string">
      Unique identifier for the master wallet's virtual account
    </ResponseField>

    <ResponseField name="availableBalance" type="string">
      Available balance in the wallet
    </ResponseField>

    <ResponseField name="ledgerBalance" type="string">
      Ledger balance in the wallet
    </ResponseField>

    <ResponseField name="walletName" type="string">
      Name of the wallet
    </ResponseField>

    <ResponseField name="virtualAccount" type="object">
      <Expandable title="properties">
        <ResponseField name="accountNumber" type="string">
          Virtual account number
        </ResponseField>

        <ResponseField name="bankCode" type="string">
          Bank code
        </ResponseField>

        <ResponseField name="bankName" type="string">
          Bank name
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

### Response Example

<ResponseExample>
  ```json Success Response theme={null}
  {
    "success": true,
    "message": "Master fiat wallet retrieved successfully",
    "data": {
      "id": "va_abc123xyz",
      "availableBalance": "500000.00",
      "ledgerBalance": "500000.00",
      "walletName": "Merchant Master Wallet",
      "virtualAccount": {
        "accountNumber": "1234567890",
        "bankCode": "035",
        "bankName": "Wema Bank"
      }
    }
  }
  ```

  ```json Error Response theme={null}
  {
    "success": false,
    "message": "Master fiat wallet not found for merchant",
    "statusCode": 400
  }
  ```
</ResponseExample>

## Error Codes

| Code  | Description                                                                      |
| ----- | -------------------------------------------------------------------------------- |
| `400` | Master fiat wallet not found for merchant, or wallet data could not be retrieved |
| `401` | Invalid or missing API key                                                       |
