Read the attachment pages of a voucher

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://rest-api.developer.24sevenoffice.com/doc/v1/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "v1 MCP server": {
    "url": "https://rest-api.developer.24sevenoffice.com/doc/v1/mcp"
  }
}

Close
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.

Headers

  • Authorization string Required

    Authorization header

Path parameters

  • voucherId string(uuid) Required

    A unique identifier for the voucher within Finago Office ERP modules.

Query parameters

  • limit integer(int32)

    Maximum number of pages to return per request.

    Minimum value is 1, maximum value is 200. Default value is 50.

  • continuationToken string

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

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
    Hide response attributes Show response attributes object
    • sequenceNumber integer Required
    • thumbnailUrl string(uri) Required

      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) Required

      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.

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
  • 401

    Unauthorized. Missing or invalid bearer token.

    Hide headers attributes Show headers attributes
    • 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.

    Hide headers attributes Show headers attributes
    • 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.

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string
    • Access-Control-Allow-Credentials string
    • X-Trace-Id string
GET /vouchers/{voucherId}/pages
curl \
 --request GET 'https://rest.api.24sevenoffice.com/v1/vouchers/{voucherId}/pages' \
 --header "Authorization: string"
Response examples (200)
# Headers
link: string
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string

# Payload
[
  {
    "sequenceNumber": 1,
    "thumbnailUrl": "https://example.com",
    "previewUrl": "https://example.com"
  }
]