GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing zatcatools.com — ZATCA Tools SDK — open-source ZATCA e-invoicing for Python · ZATCA Tools Start here · 1 of 3 Your first invoice
Sending real invoices needs your own certificate from ZATCA instead of the sandbox's. It is one call with a one-time password from the Fatoora portal: Connect to ZATCA.
quickstart.py
Output
Reading the resultThree questions, three fields. Did it work?
result
Saving the invoiceKeep the XML: it is the e-invoice. The PDF is PDF/A-3 with that XML embedded inside, so the copy a person reads and the copy a system reads travel as one file. Brand it with your logo, colour and footer — printed invoices.
save
Next stepsHow it worksThe SDK is a library inside your process, not a service in between. The first two steps run on your servers; only the last arrow leaves them, and it goes to ZATCA. 1
Your application
ERP, POS, store or SaaS — passes a plain dict. 2 · zatca-tools-sdklocal
On your servers
Validate
Compute VAT
UBL XML
Sign (XAdES)
Invoice hash
QR code
PDF/A-3
HTTPS
3 · gw-fatoora.zatca.gov.sa
ZATCA
Reports or clears it, and answers — returned to you as a result. ZATCA Tools is nowhere on this path: no proxy, no account, no telemetry. What it does todayThree callsonboard() once, create_invoice() locally, submit() to ZATCA. The certificate steps, the invoice chain and the choice between reporting and clearance happen inside. Sandbox in one lineonboard() in the sandbox gets ZATCA's test credentials by itself: a first invoice in under a minute, with nothing to set up. Clear resultssuccess, status, and an error with a code, a sentence and a help link. Local problems, connection problems and ZATCA's answers are never mixed up. Signed XML, hash and QRUBL 2.1 invoices, credit and debit notes, with the XAdES signature, the invoice hash and the QR code ZATCA checks. Reporting and clearanceSimplified invoices reported, standard ones cleared — with ZATCA's stamped copy returned to you. Printed invoicesPDF/A-3 with the XML embedded, Arabic and English, your logo and colour. veraPDF passes it as PDF/A-3b. VAT done rightStandard, zero-rated, exempt and out-of-scope items with their reasons, prices with or without VAT, discounts, rounding the way ZATCA checks it. Every problem at onceAn invoice that cannot be valid is refused before anything is sent, with every field that needs fixing. Open source, localMIT licence. Runs in your process; the only network calls go to ZATCA. Questions developers askIs the SDK free?Yes. It is open source under the MIT licence: free to use, including in commercial products, with no account, no key and no usage limit of ours. ZATCA itself charges nothing for its API. Do I need a ZATCA Tools account?No. The SDK talks to ZATCA directly with the certificate ZATCA issues to you. ZATCA Tools is not in the path and never sees your requests. Does my invoice data pass through your servers?No. Invoices are built, signed and hashed inside your application and sent from your servers straight to Do I have to understand CSRs and CSIDs?No. In the sandbox, Does it support Phase 2 (integration)?Yes: onboarding, signed UBL 2.1 invoices, credit and debit notes with the XAdES signature, invoice hash and QR code, reporting of simplified invoices and clearance of standard ones. It has been run end to end against ZATCA's sandbox. Can it print the invoice?Yes. Can I use it in an ERP or a POS?Yes — that is what it is for. Each till or server that issues invoices is a unit with its own certificate and its own invoice chain; one client per unit. Can I use it in production?The SDK is new (version 0.1). Its arithmetic and XML match the ZATCA Tools platform's, which signs production invoices today, and it passes ZATCA's sandbox end to end. Run it in simulation with your own VAT number before you switch production traffic to it. How is it different from ZATCA Tools?The SDK is a library: you build your own integration and keep everything in your infrastructure. ZATCA Tools is the hosted product around the same engine — dashboard, invoice history, Shopify and WooCommerce integrations, a REST API — for teams that would rather not run their own. How do I report a problem?Open an issue on GitHub, or write to [email protected], with the SDK version and, if you can, the failing invoice with personal data removed. Security issues privately to [email protected]. Open sourceThe SDK is published under the MIT licence: use it, change it and ship it in commercial products, keeping the copyright notice. You can read every line that touches your data — and check for yourself that nothing leaves for anywhere but ZATCA. Issues and pull requests are welcome. Questions: [email protected]. SDK or platform?
Building your own integration? The SDK. Would rather not run one? ZATCA Tools. | ||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |