SANDBOX · no legal effect

ZATCA Phase 2 e-invoicing — sandbox demo

SAIF ERP integration test against ZATCA's developer portal. Make a dummy invoice below and watch it go through ZATCA's real validation — test data only, no legal effect.

CompanySaif Logistics Demo
CityDammam
VAT number (test)399999999900003
Device (EGS)SAIF-DMM-DEMO-01
Invoice typesStandard + simplified

Try it — make a dummy invoice

Enter any test data. We build the e-invoice, sign it with the demo device and ZATCA's sandbox checks it in real time.

DescriptionQtyPrice (SAR)
Net 0.00VAT 15% 0.00Total 0.00
  1. 1 · Build XMLUBL 2.1 e-invoice
  2. 2 · HashSHA-256, chained to previous
  3. 3 · SignECDSA with device key
  4. 4 · QR code9 tags (TLV)
  5. 5 · Send to ZATCAsandbox API
  6. 6 · ZATCA resultvalidation
Your invoice and ZATCA's answer will appear here.
Press ▶ Play demo to watch one being made.

Device onboarding status

Step 1

Onboard the device

Keys + CSR sent with the OTP; ZATCA returns a Compliance CSID.

Done HTTP 200 · 2026-10-07T19:36:16+00:00
Step 2

Six compliance documents

Simplified + standard invoice, credit note and debit note.

Done 6 of 6 accepted
Step 3

Production CSID

Exchange the compliance certificate for the production one.

Done ISSUED · 2026-10-07T19:36:50+00:00
Step 4

Live invoices

B2C invoice reported, B2B invoice cleared (cleared XML returned).

Done 1 of 4 accepted · 1 cleared XML

Every call to ZATCA

Time (UTC)EndpointHTTPResultValidation · messages
2026-10-07 20:35:08/invoices/clearance/single200 CLEARED PASS
2026-10-07 20:35:07/invoices/reporting/single400 NOT_REPORTED ERROR ✖ signed-properties-hashing: Invalid signed properties hashing, SignedProperties with id='xadesSignedProperties'
2026-10-07 20:34:59/compliance/invoices200 CLEARED PASS
2026-10-07 20:34:59/compliance/invoices200 CLEARED PASS
2026-10-07 20:34:58/compliance/invoices200 CLEARED PASS
2026-10-07 20:34:57/compliance/invoices200 REPORTED PASS
2026-10-07 20:34:57/compliance/invoices200 REPORTED PASS
2026-10-07 20:34:56/compliance/invoices200 REPORTED PASS
2026-10-07 19:36:58/invoices/clearance/single400 NOT_CLEARED ERROR ✖ XSD_ZATCA_INVALID: Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 55; columnNumber: 182; cvc-datatype-valid.1.2.1: '0x1100003803C5F74023B3FC5C5F000100003803' is not a valid value for 'integer'.
2026-10-07 19:36:57/invoices/reporting/single400 NOT_REPORTED ERROR ✖ XSD_ZATCA_INVALID: Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 55; columnNumber: 182; cvc-datatype-valid.1.2.1: '0x1100003803C5F74023B3FC5C5F000100003803' is not a valid value for 'integer'.✖ signed-properties-hashing: Invalid signed properties hashing, SignedProperties with id='xadesSignedProperties' ⚠ invoiceTimeStamp_QRCODE_INVALID: Time on QR Code does not match with Invoice Issue Time (KSA-25). If ZATCA's SDK was used to generate QR Code, kindly use the latest version of SDK
2026-10-07 19:36:50/production/csids200 ISSUED
2026-10-07 19:36:36/compliance/invoices200 CLEARED PASS
2026-10-07 19:36:35/compliance/invoices200 CLEARED PASS
2026-10-07 19:36:35/compliance/invoices200 CLEARED PASS
2026-10-07 19:36:34/compliance/invoices202 REPORTED WARNING ⚠ invoiceTimeStamp_QRCODE_INVALID: Time on QR Code does not match with Invoice Issue Time (KSA-25). If ZATCA's SDK was used to generate QR Code, kindly use the latest version of SDK
2026-10-07 19:36:33/compliance/invoices202 REPORTED WARNING ⚠ invoiceTimeStamp_QRCODE_INVALID: Time on QR Code does not match with Invoice Issue Time (KSA-25). If ZATCA's SDK was used to generate QR Code, kindly use the latest version of SDK
2026-10-07 19:36:33/compliance/invoices202 REPORTED WARNING ⚠ invoiceTimeStamp_QRCODE_INVALID: Time on QR Code does not match with Invoice Issue Time (KSA-25). If ZATCA's SDK was used to generate QR Code, kindly use the latest version of SDK
2026-10-07 19:36:16/compliance200 ISSUED
How it works. 1 · the device is registered with an OTP and receives a compliance certificate (CSID). 2 · it proves it can produce all six document types. 3 · it receives the production certificate. 4 · simplified (B2C) invoices are reported within 24 hours; standard (B2B) invoices are cleared first and the cleared XML returned by ZATCA is the legal copy. Private keys and certificates stay in a folder that cannot be downloaded. Entries made with “Try it” use ZATCA's sandbox compliance check, which runs the full validation but never creates a real invoice.