BillOS v1
Console llms.txt OpenAPI
PATCH/businesses/{bid}

Update a business

PATCH /businesses/{bid}

Requires the businesses scope.

Profile, branding, the bank account (bankDetails) and requireAllocation. The tax id and dealer type of a business that has already issued documents are not editable.

Path parameters

NameTypeDescription
bidstringrequiredBusiness id, from POST /businesses.

Body

FieldTypeDescription
namestring
addressstring
phonestring
emailstring
requireAllocationbooleanStrict mode for allocation numbers.
brandingBrandingAppearance of the rendered PDF. Stored once per business; a logo is stored as a file and referenced by hash, never re-frozen into each document.
bankDetailsobjectThe account customers pay into by bank transfer. Printed under the totals of a חשבון עסקה (300) and a חשבונית מס (305) while onDocuments is true, frozen into each document at issue; never on a receipt, an invoice-receipt or a credit note. A known Israeli bank (by name or code) prints with its Bank of Israel code, e.g. "בנק לאומי (10)". null clears it.
bankDetails.bankNamestringBank name or its Bank of Israel code (max 80).
bankDetails.branchstringBranch number (max 80).
bankDetails.accountstringAccount number (max 80). Required for anything to print.
bankDetails.beneficiarystringAccount holder name (max 80).
bankDetails.onDocumentsbooleanPrint the account on proformas and tax invoices.

Response

200: { "ok": true, … }

FieldTypeDescription
okbooleanrequired
businessBusinessrequiredOne Israeli dealer (עוסק), one of your end users.

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