# Onramp Quotes

the price for the pairs your tenant offers, before the widget opens.

## Overview

- The payment provider's estimate of how much crypto an amount buys, with its transaction fee and the network fee, as the payment provider writes them. The widget may show a slightly different price if the quote has expired by then.
- Without `pair`, every pair your tenant offers; with it, that one only. Without `sourceAmount`, the payment provider quotes 100.
- Where your tenant does not offer the onramp in that environment: `403` `CARD_ONRAMP_OFF` (see [Card to Crypto](https://docs.aureahub.com/docs/guide-card-onramp.md)). A pair your tenant does not offer: `400` `CARD_ONRAMP_PAIR_UNAVAILABLE`. A pair named that is not sold in the currency asked: `400` `CARD_ONRAMP_PAIR_NOT_SOLD_IN_CURRENCY`; without `pair`, the pairs not sold in that currency are simply left out. An amount with more than 2 decimals: `400` `CARD_ONRAMP_AMOUNT_INVALID`.

## Endpoint

### `GET /v1/ramp/card/quotes`

Authentication: bearer token required.

the payment provider's quotes for the pairs the tenant offers.

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `isTestnet` | boolean | no | `true` for the sandbox |
| `pair` | string | no | One pair, for example `usdc/ethereum` |
| `sourceCurrency` | string | no | `eur` or `usd`; the tenant's default otherwise |
| `sourceAmount` | string | no | Fiat, at most 2 decimals |

**Responses**

`200` OK

```json
{
  "environment": "sandbox",
  "sourceCurrency": "eur",
  "sourceAmount": "100.00",
  "quotes": [
    {
      "pair": "usdc/ethereum",
      "destinationCurrency": "usdc",
      "destinationNetwork": "ethereum",
      "destinationAmount": "100.000000",
      "networkFee": "3.76",
      "transactionFee": "4.11",
      "sourceTotalAmount": "107.87"
    }
  ]
}
```

---

Web version: https://docs.aureahub.com/#card-onramp-quotes
