GET
/businesses/{bid}/legacy-documentsList the archive
GET /businesses/{bid}/legacy-documents
Requires the documents scope.
Newest first by issue date. total is the count over the same filters.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
Query parameters
| Name | Type | Description | |
|---|---|---|---|
from | string | ||
to | string | ||
source | string | ||
q | string | Matches the number or the party name. | |
take | integer | Default 50. | |
skip | integer | Default 0. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | required | |
documents | array of LegacyDocument | required | |
total | integer |
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).