Skip to content

Get PDF Document

Request

Get PDF attachment by documentId and return the PDF file.

Security
PublicApiKey
Headers
x-software-idstring

External software identifier to track which ERP has fetched this document.

Bodyapplication/jsonrequired
documentIdstring

The unique identifier of the invoice document.

Example:"6787a98e15306d37eed688a8"
companyVatNumberstringrequired

The VAT number of the company.

Example:"HR12345678910"
includeEmbeddedAttachmentsboolean

When true, the attachments embedded in the document UBL are appended to the generated PDF visualization. When false or omitted, only the document visualization is returned.

Default:false
Example:false
curl -i -X POST \
  https://omnizon-public-api.redocly.app/_mock/openapi/rest/v1/documents/getPdf \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'x-software-id: string' \
  -d '{
    "documentId": "6787a98e15306d37eed688a8",
    "companyVatNumber": "HR12345678910",
    "includeEmbeddedAttachments": false
  }'

Responses

Successfully retrieved PDF document.

Bodyapplication/pdf
string, (binary)
Response
string