Skip to end of banner
Go to start of banner

Retrieve Document Pages

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The Gini Accounting API renders preview images of the document pages. In order to retrieve a list of pages for a document, issue a GET request to the pages sub-resource of the document.

Request
Path Parameters

Name

Value

id

Document ID

Headers

Header

Value

Accept

application/vnd.gini.v1+json

Response
Headers

Status Code

Description

200 (OK)

The request was successful.

404 (Not Found)

The requested document does not exist.

Body

Name

Type

Description

pages

array

All pages in the current result page.

A page is an entity with the following fields:

Key

Child key

Type

Description

documentId

string

UUID of the document which the page belongs to.

pagenum

number

Page number.

_links

object

Links to related resources.

document

string

Link to the document to which the page belongs.

pages

string

Link to the pages of the document.

_images

object

Links to pre-rendered page images in different resolutions.

image resolution in pixels

string

Link to a pre-rendered image of the page.

Image downloads require a corresponding `Accept` header such as `image/jpeg` or `image/*`.

  • No labels