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:
- Compliance to the UBL2 XSD.
- EN 16931 Rules subset.
- 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.