Skip to main content
POST
/
api
/
validate
/
ubl
Validate UBL Document
curl --request POST \
  --url https://api.e-invoice.be/api/validate/ubl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": "<string>",
  "file_name": "<string>",
  "is_valid": true,
  "issues": [
    {
      "message": "<string>",
      "type": "error",
      "schematron": "<string>",
      "location": "<string>",
      "rule_id": "<string>",
      "flag": "<string>",
      "test": "<string>"
    }
  ],
  "ubl_document": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

Response

Successful Response

id
string
required
file_name
string | null
required
is_valid
boolean
required
issues
ValidationIssue · object[]
required
ubl_document
string | null