What is the “Clearance API”?

What is the “Clearance API”?

The “Clearance API” clears a single standard invoice, credit note, or debit note. Specifically, it accepts standard invoice, credit note, or debit note encoded in base64 and validates it to ensure:

  1. Compliance to the UBL2 XSD.
  2. EN 16931 Rules subset.
  3. KSA Specific Rules set. KSA Rules set will override EN 16931 Rules set in case the same rule exists in both sets.

On successful validation, the api then applies a cryptographic stamp from ZATCA side and generates a QR Code string. After that the XML is returned back.