POST
/businesses/{bid}/files/thumbsBatched receipt thumbnails
POST /businesses/{bid}/files/thumbs
Requires the export scope.
Small data-URI JPEG previews for up to 60 stored image files in ONE call, built for list views, where a request per row would burn the rate limit. Non-image files (PDFs) are simply absent from the answer.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
Body
| Field | Type | Description | |
|---|---|---|---|
ids | array of string | required |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean | ||
thumbs | object | fileId → data URI. Missing key = no thumbnail for that file. |
Errors: 400, 401, 403, 404, 429. Every failure answers { "error": …, "reason": … }. Branch on reason.