BillOS v1
Console llms.txt OpenAPI
GET/businesses/{bid}/quotes/{id}/page

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

NameTypeDescription
bidstringrequiredBusiness id, from POST /businesses.
idstringrequiredQuote 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).

GET /businesses/{bid}/quotes/{id}/page
curl -X GET "$BASE/businesses/$BID/quotes/$DOC_ID/page" \
  -H "X-Api-Key: $KEY"
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)
import requests
res = requests.get(
    f"{BASE}/businesses/{BID}/quotes/{DOC_ID}/page",
    headers={"X-Api-Key": KEY},
)
data = res.json()
Set BASE to https://api.billos.co.il/v1 and KEY to your bk_live_… key, or a bk_test_… key to run it against the sandbox.
Manage your businesses, keys and webhooks in the BillOS Console.