BillOS v1
Console llms.txt OpenAPI
PATCH/businesses/{bid}/business-documents/{id}

Update a certificate or licence

PATCH /businesses/{bid}/business-documents/{id}

Requires the businesses scope.

Only the fields sent change, and each one sent is kept over any later reading. Send null or an empty string to clear a date.

Path parameters

NameTypeDescription
bidstringrequiredBusiness id, from POST /businesses.
idstringrequiredBusiness document id.

Body

FieldTypeDescription
namestring
categorystring
docNumberstring
issuerstring
notesstring
issuedOnstring
validUntilstring

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
documentBusinessDocumentrequiredOne of the business's own certificates, licences or approvals (תעודת עוסק מורשה, אישור ניכוי מס במקור, a licence, insurance). Read on upload: status is processing until the reading lands, and a field you set is never written over by it. Not a ledger record: no report or export reads one.

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

PATCH /businesses/{bid}/business-documents/{id}
curl -X PATCH "$BASE/businesses/$BID/business-documents/$DOC_ID" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/businesses/${BID}/business-documents/${DOC_ID}`, {
  method: 'PATCH',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
import requests
res = requests.patch(
    f"{BASE}/businesses/{BID}/business-documents/{DOC_ID}",
    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.