SUMU
Sending

Validate

Check a UBL document against the Oman rule set without sending it.

Runs the full Oman rule set against a UBL document without sending anything. Free of rate-limit cost against your send quota, and safe to call as often as you like — use it in your test suite or as a pre-flight check in CI before going live.

POST/v1/api/documents/validate
synchronous
FieldType Description
documentstringrequiredThe UBL XML as a JSON string
profilestringoptionalAssert which profile you expect. If it disagrees with the document you get 400 PROFILE_MISMATCH — useful for catching a generator emitting the wrong CustomizationID

Response fields

FieldType Description
validbooleantrue when there are no errors. Warnings don't make a document invalid
profilestringWhich rule set was resolved from the document
issues[].severityenumerror blocks sending · warning doesn't · info is advisory
issues[].codestringThe Oman rule identifier, e.g. IBR-019-OM. Quotable against the published rule text
issues[].locationstringXPath to the element at fault

A 200 means the document was checked, not that it passed — read valid. Failing this returns the same SCHEMATRON_INVALID issue shape as Create an invoice's 422 response, so the same handling code works for both.

SUMU

Sumu — a business platform owned and operated by OceanGate for Smart Technologies LLC, a FinTech and SaaS solutions company. All rights reserved © 2026.

joinsumu.com ↗