BillOS v1
Console llms.txt OpenAPI
POST/sandbox/seed

Fill the sandbox with a demo business

POST /sandbox/seed

Requires the businesses scope.

For a bk_test_ key only: creates a demo business with three customers, four issued documents (a paid invoice-receipt, an unpaid tax invoice with a due date, a dollar document in English with zero-rated VAT, a cash receipt), one open draft, one recorded expense and one expense draft, all through the same code path the API uses. Idempotent: a second call finds the seeded business and returns it with seeded: false. A live key is refused (validation).

Response

201: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
seededbooleanrequiredtrue when this call created the fixtures, false when they already existed.
businessBusinessrequiredOne Israeli dealer (עוסק), one of your end users.
partiesarray of object
documentsarray of object
expensesarray of object

Errors: 400, 401, 403, 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).

POST /sandbox/seed
curl -X POST "$BASE/sandbox/seed" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/sandbox/seed`, {
  method: 'POST',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.post(
    f"{BASE}/sandbox/seed",
    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.