---
title: "Validate UBL Document"
method: POST
path: "/api/validate/ubl"
tags: ["Validate"]
---

# Validate UBL Document

`POST /api/validate/ubl`

Validate the correctness of a UBL document

## Response `201`

Successful Response

- UBLDocumentValidationResponse
  - `id` string, required
  - `file_name` string, nullable, required
  - `is_valid` boolean, required
  - `issues` ValidationIssue[], required
    - `message` string, required
    - `type` 'error' | 'warning', required
    - `location` string, nullable
    - `rule_id` string, nullable
    - `flag` string, nullable
    - `test` string, nullable
    - `schematron` string, required
  - `ubl_document` string, nullable

## Other responses

- `422` — Unprocessable File: Invalid file type
- `500` — Internal Server Error: Unexpected server error

---

[API](https://skmtc.net/e-invoice-be/apis/e-invoice-be-peppol-access-point-api.md) · [All operations](https://skmtc.net/e-invoice-be/apis/e-invoice-be-peppol-access-point-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/e-invoice-be/e-invoice-be-peppol-access-point-api/versions/a5b8396effe8/schema)
