GET
/businesses/{bid}/files/{id}Download a file
GET /businesses/{bid}/files/{id}
Requires the export scope.
Streams the stored bytes: export zips, backups, receipts. Issued document PDFs are served by prints instead, so the once-only origin rule is enforced.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
id | string | required | File id. |
Response
200: { "ok": true, … }
Errors: 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).