Skip to content

Send UBL 2.1 invoice

Request

Accepts a UBL 2.1 XML document as raw binary stream and processes it.

Security
PublicApiKey
Headers
companyVatNumberstringrequired

VAT number of the company.

Example:HR12345678910
fiscalizationboolean

Fiscalization flag.

x-fileNamestring

Optional file name override for uploaded XML document.

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 sent the document.

Bodyapplication/octet-streamrequired
string, (binary)

Example of raw UBL invoice content.

curl -i -X POST \
  https://omnizon-public-api.redocly.app/_mock/openapi/rest/v1/documents/send \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/octet-stream' \
  -H 'companyVatNumber: HR12345678910' \
  -H 'fiscalization: true' \
  -H 'x-fileName: string' \
  -H 'x-software-id: string' \
  -d '<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">...</Invoice>'

Responses

Document processed successfully.

Bodyapplication/json
documentIdstringrequired
Response
{ "documentId": "string" }