GET
/businesses/{bid}/legacy-documents/{id}/fileDownload the original file
GET /businesses/{bid}/legacy-documents/{id}/file
Requires the documents scope.
The bytes as uploaded, with their Content-Type. 404 when no file was attached.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
id | string | required | Legacy document id. |
Response
200: raw application/pdf bytes.
Errors: 400, 401, 403, 404, 409, 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).