> For the complete documentation index, see [llms.txt](https://rest-api.developer.24sevenoffice.com/doc/v1/llms.txt)

# Read the attachment pages of a voucher

> GET /vouchers/{voucherId}/pages
> 
> Read the pages of the source file attached to a voucher, with pre-signed thumbnail and preview URLs.
> Pages are not included in `GET /vouchers`; use `attachment.pageCount` from the voucher to decide whether to call this endpoint.
> The URLs expire after a limited time; re-fetch the pages to obtain fresh ones.



## Servers
- https://rest.api.24sevenoffice.com/v1: https://rest.api.24sevenoffice.com/v1


## Authentication methods
- Tfso


## Parameters
### Headers

- **Authorization** (string)
  Authorization header


### Path parameters

- **voucherId** (string(uuid))
  A unique identifier for the voucher within Finago Office ERP modules.


### Query parameters

- **limit** (integer(int32))
  Maximum number of pages to return per request.

- **continuationToken** (string)
  The continuation token for paginated results. Used by the URL in the link-header when there are more results available.



## Responses
### 200
OK
#### Headers

- **link** (string)
  The "link" header includes information on where to find the `first` and `next` page. `next` is only present when more results are available; there is no `previous` link. Refer to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


#### Body: application/json (array[object])
- **sequenceNumber** (integer)

- **thumbnailUrl** (string(uri))
  A pre-signed link to the page thumbnail image. It needs no authentication and returns the image directly. The image is a JPEG, but is served with the content type `application/octet-stream`. It expires after 15 minutes (the storage service then answers 403), re-fetch the pages to obtain a fresh one.

- **previewUrl** (string(uri))
  A pre-signed link to the full-size page preview image. It needs no authentication and returns the image directly. The image is a JPEG, but is served with the content type `application/octet-stream`. It expires after 15 minutes (the storage service then answers 403), re-fetch the pages to obtain a fresh one.


### 400
Bad Request. A parameter is invalid, or the `continuationToken` is invalid, expired or does not match the other parameters of the request.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


### 401
Unauthorized. Missing or invalid bearer token.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


### 403
Forbidden. The token does not have the `api.accounting.voucher:read` scope.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)


### 404
Not Found. The voucher does not exist. A voucher without an attachment returns an empty list.
#### Headers

- **Access-Control-Allow-Origin** (string)

- **Access-Control-Allow-Credentials** (string)

- **X-Trace-Id** (string)



[Powered by Bump.sh](https://bump.sh)
