# List the assets this invoice can be paid with

> GET /v0/checkout/{invoiceId}/options. The ranked "pay with" list. Each row is quoted exact-output through the core aggregator, so `amountIn` is all-in: the invoice plus the cost of delivering it, as one number the customer reads. Route cost is never broken out as gas, bridging or slippage (§5.1).


`GET /v0/checkout/{invoiceId}/options`

The ranked "pay with" list. Each row is quoted exact-output through the core aggregator, so `amountIn` is all-in: the invoice plus the cost of delivering it, as one number the customer reads. Route cost is never broken out as gas, bridging or slippage (§5.1).

Assets whose provider minimum exceeds the invoice amount are left out (§5.4), and `modes` lists `transfer` only where a provider returns a deposit address for that asset.

With no `payer` the list is ten popular assets. With a `payer`, what that address holds of **any** payable asset on its own network joins them (up to 10 more), each with its `balance`; a row whose balance is below `amountIn` has `covers: false` and is listed after the ones the payer can afford. A balance that cannot be read within 800 ms is left out, never waited for (§6.4).

`?assets=` quotes up to 3 named assets on demand instead: the one a customer picked from `GET …/assets`. Those rows are never `recommended`. A payable asset no provider will quote right now comes back in `unavailable`; an asset that cannot pay this invoice at all (outside `GET …/assets`: a Bitcoin or NEAR token, a Mayan-only asset, the settlement asset) is refused with `422 NO_ROUTE_FOR_ASSET` before anything is quoted, as `POST …/attempts` refuses it. Cache misses count against a per-invoice hourly limit (`429 RATE_LIMITED`).

Quotes are indicative and cached per invoice and asset for `ttlSec`; the binding amount comes from `POST /attempts`.

## Authentication

The invoice's client secret, in the `x-client-secret` header. It reaches this one invoice's public endpoints and nothing else, and expires with the invoice.

## Parameters

| Parameter | In | Required | Notes |
|---|---|---|---|
| `invoiceId` | path | yes |  |
| `payer` | query | no | The payer's address. Balances are read from it on its own VM (§6.4). |
| `chains` | query | no | Comma-separated CAIP-2 chain IDs, to narrow the list |
| `assets` | query | no | Up to 3 comma-separated CAIP-19 asset IDs to quote on demand: the asset a customer picked from search, or a short result set (§11.35). Only these are quoted. Cache misses count against a per-invoice hourly limit (`429 RATE_LIMITED`). |

## Responses

| Status | Means |
|---|---|
| `200` | Ranked payment options, newest quote first |


## Request



```bash title="curl"
curl https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw/options \
  -H 'x-client-secret: $CLIENT_SECRET'
```

```ts title="TypeScript"
const response = await fetch("https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw/options", {
  method: "GET",
  headers: {
    "x-client-secret": clientSecret,
  },
});

if (!response.ok) {
  const { error } = await response.json();
  throw new Error(`${error.code}: ${error.message}`);
}
const data = await response.json();
```

```python title="Python"
import httpx

response = httpx.get(
    "https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw/options",
    headers={"x-client-secret": client_secret},
)
response.raise_for_status()
data = response.json()
```



## Errors

```json
{ "error": { "code": "INVOICE_EXPIRED", "message": "This invoice has expired" } }
```

Switch on `code`, not on the message: every code has a page under [Error codes](/docs/errors/). Base URL `https://api.intents.fi`; the whole reference is on [one page](/docs/api).

---

Source: https://intents.fi/docs/api/get-checkout-invoiceid-options · The whole corpus: https://intents.fi/docs/llms-full.txt
