Skip to content

Get Document

Request

Get Document by documentId and return binary file.

Security
PublicApiKey
Headers
x-software-idstring

If the header is included in request, the system should store its value when the endpoint is called. This allows us to identify which ERP retrieved the document.

Bodyapplication/jsonrequired
documentIdstring

The unique identifier of the invoice document.

Example:"6787a98e15306d37eed688a8"
companyVatNumberstringrequired

The VAT number of the company.

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

Responses

Successfully retrieved invoice as binary file.

Bodyapplication/octet-stream
string, (binary)
Response
string