GET api/Documents/{id}/Preview

Downloads a document preview.

Request

Parameters

Name Description Default
id Document number (unique ID).

Response

Body

Content Type: application/octet-stream
Preview content or an error message.

Status Codes

Code Condition
200 OK The operation completed successfully.
400 Bad RequestInvalid document number.
401 Unauthorized Access token is invalid, expired or not specified.
403 ForbiddenUser does not have permission to preview the document.
404 Not FoundDocument not found.
406 Not Acceptable Content type specified in the Accept header isn't supported.
500 Internal Server Error An internal error occurred.
501 Not ImplementedThe document does not support previewing.

Remarks

A more specific content type (e.g. text/html) may be included in the response headers.