# Preview the customer's page

`GET /businesses/{bid}/quotes/{id}/page`

Requires the `documents` scope.

The page the quote's link opens (where the customer reads the offer and signs), as HTML, rendered by the same code that serves the link. A preview: it carries no script and no token, so nothing in it can answer the quote. A draft is drawn from the quote as it stands now.

## Path parameters

| Name | Type | | Description |
|---|---|---|---|
| `bid` | string | **required** | Business id, from `POST /businesses`. |
| `id` | string | **required** | Quote id. |

## Response

`200`: `{ "ok": true, … }`

Errors: `401`, `403`, `404`, `429`. Every failure answers `{ "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }`: branch on `reason`, and read `hint` for what to change (https://docs.billos.co.il/errors.md).

## Examples

### cURL

```bash
curl -X GET "$BASE/businesses/$BID/quotes/$DOC_ID/page" \
  -H "X-Api-Key: $KEY"
```
### Node

```node
const res = await fetch(`${BASE}/businesses/${BID}/quotes/${DOC_ID}/page`, {
  method: 'GET',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
```
### Python

```python
import requests
res = requests.get(
    f"{BASE}/businesses/{BID}/quotes/{DOC_ID}/page",
    headers={"X-Api-Key": KEY},
)
data = res.json()
```