GET
/businesses/{bid}/documents/{id}Read a document
GET /businesses/{bid}/documents/{id}
Requires the documents scope.
Beside the document itself: basedOn (the document a credit note or negative receipt corrects), corrections (the corrections issued against this one), quote (the quote it was converted from), and the open-items view (settlement on an invoice or proforma, settles on a receipt).
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
id | string | required | Document id. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | required | |
document | Document | required | A draft is freely mutable. An issued document is immutable forever, blocked at the database engine, not merely in application code. |
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).