# Search every asset this invoice can be paid with

> GET /v0/checkout/{invoiceId}/assets. Searches every payable asset in the registry, not just the default list, by symbol, token name, network or contract address. Every word of `q` must match ("usdc base").


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

Searches every payable asset in the registry, not just the default list, by symbol, token name, network or contract address. Every word of `q` must match ("usdc base").

Only assets that a provider can route exact-output to the invoice's settlement asset are listed (§11.3). On Bitcoin and NEAR only the native coin is listed.

Search never quotes a long list. When the whole result set is 3 assets or fewer, each match carries its `option` (or `null`: nothing routes it right now). Otherwise price the one the customer picks with `GET …/options?assets=`.

Limited per invoice: 240 searches an hour (`429 RATE_LIMITED`).

## 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 |  |
| `q` | query | yes | What the customer typed: a symbol, a token name, a network, or a contract address. Every word must match. |
| `limit` | query | no |  |
| `cursor` | query | no | `nextCursor` from the previous page |
| `payer` | query | no | The payer's address, so an inline quote can read their balance (§6.4) |

## Responses

| Status | Means |
|---|---|
| `200` | Matching assets, best match first |


## Request



```bash title="curl"
curl https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw/assets?q=usdc%20base&limit=10 \
  -H 'x-client-secret: $CLIENT_SECRET'
```

```ts title="TypeScript"
const response = await fetch("https://api.intents.fi/v0/checkout/inv_3QkR7mVt9zLpXdB2hJn6Yw/assets?q=usdc%20base&limit=10", {
  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/assets?q=usdc%20base&limit=10",
    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-assets · The whole corpus: https://intents.fi/docs/llms-full.txt
