> For the complete index of the 402pay docs, see [llms.txt](https://developer.402pay.co/llms.txt).

# Retrieve a public link

Get what a link's hosted checkout shows, without IDs, fees or internal settings.

`GET https://dash.402pay.co/api/v1/public/links/{code}`

Public: what a link's hosted checkout shows, with nothing internal, no IDs and none of your fees except one you pass on. Use it to build your own page for a link, then [create a checkout](https://developer.402pay.co/api/checkouts/create.md) with its `code` when the customer chooses how to pay.

`crypto` lists each coin and network you accept, with an amount at today's rate that a checkout locks when it opens, and `rate`, one coin in minor units of the link's currency. `card` lists card payments, with whether their `total` is within their `min` and `max`. Each option's `breakdown` lays out what the customer pays, as on a [checkout](https://developer.402pay.co/api/checkouts/retrieve.md): the price, the processing fee when you pass it on (which the amount and `total` then include), and for crypto an estimated network fee the customer's wallet pays on top. `quote_expires_at` is when a quote opened now would end, and `collect_email` says whether checkout asks for an email. `request` is always `null` here.

### Path

- `code` (string, required): The code at the end of the link's `url`, such as `v6e4mrczwg`.

### Errors

- 404 `not_found` No active link has this code. Archived and deleted links, and API payments' codes, return this too.

Any request can also fail on its key or its body. See [errors](https://developer.402pay.co/api/errors.md).

Request, cURL:

```bash
curl "https://dash.402pay.co/api/v1/public/links/v6e4mrczwg"
```

Request, Node.js:

```js
const response = await fetch("https://dash.402pay.co/api/v1/public/links/v6e4mrczwg");
const { data } = await response.json();
```

Request, Python:

```python
import requests

response = requests.get(
    "https://dash.402pay.co/api/v1/public/links/v6e4mrczwg",
)
data = response.json()["data"]
```

Response, 200 OK:

```json
{
  "data": {
    "kind": "public_link",
    "code": "v6e4mrczwg",
    "name": "Team plan, monthly",
    "description": "Everything in Pro for up to 10 people.",
    "amount": 19900,
    "currency": "USD",
    "business": {
      "name": "Acme Studio",
      "website": "https://example.com",
      "support_email": "billing@example.com"
    },
    "accepting_payments": true,
    "collect_email": true,
    "accepted_rails": ["crypto", "card"],
    "crypto": [
      {
        "asset": "USDC",
        "network": "polygon",
        "amount": "199.00",
        "rate": {
          "amount": 100,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 2,
          "total": 19902
        }
      },
      {
        "asset": "USDC",
        "network": "ethereum",
        "amount": "199.00",
        "rate": {
          "amount": 100,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 90,
          "total": 19990
        }
      },
      {
        "asset": "USDC",
        "network": "solana",
        "amount": "199.00",
        "rate": {
          "amount": 100,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 1,
          "total": 19901
        }
      },
      {
        "asset": "USDT",
        "network": "tron",
        "amount": "199.00",
        "rate": {
          "amount": 100,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 110,
          "total": 20010
        }
      },
      {
        "asset": "USDT",
        "network": "ethereum",
        "amount": "199.00",
        "rate": {
          "amount": 100,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 90,
          "total": 19990
        }
      },
      {
        "asset": "USDT",
        "network": "solana",
        "amount": "199.00",
        "rate": {
          "amount": 100,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 1,
          "total": 19901
        }
      },
      {
        "asset": "BTC",
        "network": "bitcoin",
        "amount": "0.00202236",
        "rate": {
          "amount": 9840000,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 150,
          "total": 20050
        }
      },
      {
        "asset": "ETH",
        "network": "ethereum",
        "amount": "0.054972",
        "rate": {
          "amount": 362000,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 30,
          "total": 19930
        }
      },
      {
        "asset": "SOL",
        "network": "solana",
        "amount": "1.0815",
        "rate": {
          "amount": 18400,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": 1,
          "total": 19901
        }
      }
    ],
    "card": [
      {
        "rail": "card",
        "available": true,
        "min": {
          "amount": 500,
          "currency": "USD"
        },
        "max": {
          "amount": 1000000,
          "currency": "USD"
        },
        "total": {
          "amount": 19900,
          "currency": "USD"
        },
        "breakdown": {
          "currency": "USD",
          "price": 19900,
          "processing_fee": null,
          "network_fee": null,
          "total": 19900
        }
      }
    ],
    "quote_minutes": 15,
    "quote_expires_at": "2026-09-27T18:32:19.065Z",
    "request": null
  }
}
```
