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. This is for UBL you've already built yourself — see Dry run for the equivalent check on a JSON payload, before you've built anything.

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 a 400 VALIDATION_ERROR naming both — useful for catching a generator emitting the wrong CustomizationID

Response fields

FieldType Description
validboolean—true when there are no errors. Warnings don't make a document invalid
profilestring—Which rule set was resolved from the document
issues[].severityenum—error blocks sending · warning doesn't · info is advisory
issues[].codestring—The Oman rule identifier, e.g. IBR-019-OM. Quotable against the published rule text
issues[].locationstring—XPath to the element at fault

A 200 means the document was checked, not that it passed — read valid. The same issues[] shape appears in Create an invoice's 400 VALIDATION_ERROR response when a send fails the same rules, so the same handling code works for both.

SUMU

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

joinsumu.com ↗