Skip to content

Archive Document

Request

Archive Document.

Security
PublicApiKey
Bodyapplication/jsonrequired
documentIdstringrequired

The unique identifier of the invoice document.

Example:"6787a98e15306d37eed688a8"
companyVatNumberstringrequired

The VAT number of the sender.

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

Responses

Document archived successfully.

Bodyapplication/json
documentIdstringrequired

The unique identifier of the archived document.

Example:"6787a98e15306d37eed688a8"
statusstringrequired

Status of the archived document.

Example:"archived"
Response
{ "documentId": "6787a98e15306d37eed688a8", "status": "archived" }