<!-- ZenPays documentation · https://docs.zenpayz.com/docs/rest-api/endpoints/ramp/supported-assets -->

# Get Supported Assets

Returns the list of supported crypto and fiat currencies for on-ramp or off-ramp.

<EndpointHeader verb="GET" path="/payment/api/v1/on-ramp/supported-assets" />

## Request

### Headers

<ParamTable
  label="Header"
  rows={[
    { name: "x-request-id", desc: "Custom request ID for tracing" },
  ]}
/>

:::note Public Endpoint
This endpoint does not require authentication headers.
:::

### Query Parameters

<ParamTable
  rows={[
    { name: "type", type: "string", desc: "`buy` or `sell` (default: `buy`)" },
    { name: "country", type: "string", desc: "ISO country code (e.g. `US`, `GB`)" },
  ]}
/>

## Response

### Success (200 OK)

```json
{
  "success": true,
  "data": {
    "message": {
      "crypto": [
        {
          "id": "btc_bitcoin",
          "code": "BTC",
          "name": "Bitcoin",
          "network": "bitcoin"
        },
        {
          "id": "eth_ethereum",
          "code": "ETH",
          "name": "Ethereum",
          "network": "ethereum"
        }
      ],
      "fiat": [
        {
          "id": "usd",
          "code": "USD",
          "name": "US Dollar",
          "symbol": "$"
        },
        {
          "id": "eur",
          "code": "EUR",
          "name": "Euro",
          "symbol": "\u20ac"
        }
      ]
    }
  },
  "message": "Supported assets retrieved"
}
```

### Error Responses

<ErrorTable
  rows={[
    { code: "RAMP_SUPPORTED_FAILED", status: "500", message: "Failed to get supported assets" },
  ]}
/>

<CodeRail>

## Examples

<Tabs groupId="language">
  <TabItem value="curl" label="cURL" default>

```bash
curl "https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assets?type=buy&country=US"
```

  </TabItem>
  <TabItem value="javascript" label="JavaScript">

```javascript
const response = await fetch(
  'https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assets?type=buy&country=US'
);
const { data } = await response.json();

console.log(data.message.crypto); // [{ id: "btc_bitcoin", ... }]
console.log(data.message.fiat);   // [{ id: "usd", ... }]
```

  </TabItem>
  <TabItem value="python" label="Python">

```python
import requests

response = requests.get(
    "https://api.zenpayz.com/payment/api/v1/on-ramp/supported-assets",
    params={"type": "buy", "country": "US"},
)
data = response.json()["data"]["message"]

print(data["crypto"])  # [{"id": "btc_bitcoin", ...}]
print(data["fiat"])    # [{"id": "usd", ...}]
```

  </TabItem>
</Tabs>

</CodeRail>

## Next Steps

- [Payment Methods](/docs/rest-api/endpoints/ramp/payment-methods) -- Get payment methods for a currency
- [Buy Quotes](/docs/rest-api/endpoints/ramp/buy-quotes) -- Get quotes for a specific pair
