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

# getPayoutCountries

> Lists the countries and fiat currencies supported for Noah payouts.

## Function Signature

```swift theme={null}
public func getPayoutCountries() async throws -> NoahGetPayoutCountriesResponse
```

## Description

Lists the countries available for fiat payouts, keyed by country code, with the fiat currency codes supported in each. Use this to populate a country picker before calling [`getPayoutChannels`](./noahgetpayoutchannels).

## Parameters

This method takes no parameters.

## Returns

**`NoahGetPayoutCountriesResponse`** — an envelope containing:

| Property   | Type                         | Description                 |
| ---------- | ---------------------------- | --------------------------- |
| `data`     | `NoahGetPayoutCountriesData` | The response payload.       |
| `metadata` | `NoahResponseMetadata?`      | Freeform response metadata. |

`NoahGetPayoutCountriesData`:

| Property    | Type                 | Description                                                     |
| ----------- | -------------------- | --------------------------------------------------------------- |
| `countries` | `[String: [String]]` | Country code mapped to the fiat currency codes supported there. |

## Example

```swift theme={null}
import PortalSwift

do {
  let response = try await portal.ramps.noah.getPayoutCountries()

  for (country, currencies) in response.data.countries.sorted(by: { $0.key < $1.key }) {
    print("\(country): \(currencies.joined(separator: ", "))")
  }
} catch {
  print("getPayoutCountries failed: \(error)")
}
```

## Errors

| Error                                           | Description                         |
| ----------------------------------------------- | ----------------------------------- |
| `PortalRequestsError.unauthorized`              | Authentication failed (401).        |
| `PortalRequestsError.clientError`               | Client error (4xx).                 |
| `PortalRequestsError.internalServerError`       | Server error (5xx).                 |
| `PortalRequestsError.couldNotParseHttpResponse` | The response could not be parsed.   |
| `URLError.badURL`                               | The request URL could not be built. |

## Related

* [Noah virtual accounts and payouts](../guide/noah)
* [getPayoutChannels](./noahgetpayoutchannels)
* [Noah payouts workflow](/integrations/On-Off-Ramp/noah-payouts)
