BillOS v1
Console llms.txt OpenAPI
POST/businesses/{bid}/parties/{id}/consent

Record digital-document consent

POST /businesses/{bid}/parties/{id}/consent

Requires the businesses scope.

Stamps the party as having consented to receiving documents digitally (מסמכים ממוחשבים) rather than on paper. Required before you deliver a document by link or email.

Path parameters

NameTypeDescription
bidstringrequiredBusiness id, from POST /businesses.
idstringrequiredParty id.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
partyPartyrequiredA saved customer. Optional: a document may carry an inline party instead.

Errors: 400, 401, 403, 404, 429. Every failure answers { "error": …, "reason": … }. Branch on reason.

POST /businesses/{bid}/parties/{id}/consent
curl -X POST "$BASE/businesses/$BID/parties/$DOC_ID/consent" \
  -H "X-Api-Key: $KEY"
const res = await fetch(`${BASE}/businesses/${BID}/parties/${DOC_ID}/consent`, {
  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}/businesses/{BID}/parties/{DOC_ID}/consent",
    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.