Description
Qirtas is an independent plugin; it is not affiliated with or endorsed by ZATCA or WooCommerce.
Every VAT-registered business in Saudi Arabia has to issue electronic invoices that follow the rules of the Zakat, Tax and Customs Authority (ZATCA). This plugin produces them straight from your WooCommerce orders, on your own hosting. No third-party server sits between your store and ZATCA.
Free: Phase 1 (generation)
- A simplified tax invoice for every paid order, as a bilingual PDF: Arabic first, English underneath.
- The ZATCA QR code on every invoice (seller name, VAT number, time stamp, invoice total, VAT total).
- Credit notes for refunds, created automatically when you refund an order.
- Debit notes for extra charges after an invoice was issued, from the order screen.
- The PDF attached to the customer’s order and refund emails, with download links on the “Thank you” page, in My account and in the admin.
- Sequential invoice numbers with your own prefixes.
- Arabic admin screens and emails. Works with HPOS and the block checkout.
Premium: Phase 2 (integration)
When ZATCA notifies you of your integration wave, upgrade from the plugin’s settings page:
- One-step onboarding: enter the OTP from the Fatoora portal. The plugin creates the key and the certificate request, gets the compliance certificate, passes ZATCA’s compliance checks and requests the production certificate.
- Signed UBL 2.1 XML for every invoice and credit note (XAdES, ECDSA secp256k1), with the invoice hash chain and counter ZATCA requires.
- Simplified invoices reported to ZATCA automatically within the 24-hour window. A background queue retries with backoff if ZATCA is unreachable.
- Standard tax invoices (B2B): optional company VAT number fields at checkout (block and classic checkout). Invoices are cleared by ZATCA before they are sent to the buyer, and the cleared PDF is emailed to the customer.
- A documents screen with the status of each invoice (waiting, reported, cleared, rejected), the signed XML and resend.
- Correcting documents: when ZATCA rejects an invoice, fix the cause and issue a replacement in one click.
- Certificate renewal without disconnecting, with admin notices and email reminders 30 and 7 days before the certificate expires.
- Admin notices for invoices that have not reached ZATCA within 12 hours, or that ZATCA rejected.
- Developer sandbox and Simulation environments for testing before going live.
Requirements
- WooCommerce 8.0 or later, with prices in Saudi riyals (SAR) and a 15% VAT rate.
- PHP 8.0 or later with the OpenSSL, DOM, mbstring and GD extensions. For Phase 2, OpenSSL must support the secp256k1 curve; the plugin’s System check screen tests this.
- Compatible with High-Performance Order Storage (HPOS) and the block checkout.
External services
ZATCA Fatoora platform (Premium only)
The Premium (Phase 2) features connect to the ZATCA Fatoora e-invoicing platform at gw-fatoora.zatca.gov.sa. This is required by Saudi law for businesses in an integration wave. The free version never contacts ZATCA.
- When you connect the store, the plugin sends the OTP you entered and a certificate signing request (your VAT number, organisation name, branch and a device serial number). ZATCA returns the certificates.
- After each invoice, credit note or debit note is issued, the plugin sends the signed invoice XML. It contains your business details, the buyer’s name, address and VAT number (for tax invoices), the order lines and the amounts.
The ZATCA platform is operated by the Zakat, Tax and Customs Authority. See ZATCA’s e-invoicing information and privacy policy.
Freemius (upgrades and licences)
The plugin uses the Freemius SDK to offer the upgrade to Qirtas Pro and to activate licences. After activation, Freemius asks whether you agree to share basic information with it: your site URL, WordPress, PHP and plugin versions, the admin’s name and email, and plugin activation and deactivation events. Nothing is sent unless you opt in. Buying or activating a Qirtas Pro licence sends the licence key and site URL to Freemius. See the Freemius terms of service and privacy policy.
Privacy
Invoices are stored in your WordPress database and in a protected folder under wp-content/uploads/sanad. They are not deleted when a customer asks for account erasure, because tax law requires businesses to keep invoices. Mention this in your store’s privacy policy.
Screenshots




Installation
- Install and activate the plugin from Plugins Add New, or upload the zip.
- Go to WooCommerce ZATCA E-Invoicing Business details. Enter your legal name, VAT number, commercial registration number and national address exactly as registered with ZATCA.
- Check WooCommerce Settings Tax: prices in SAR, and a 15% standard rate for Saudi Arabia.
- Place a test order. The invoice appears in the order screen and in the customer’s email.
For Phase 2 (Premium): open the “Connect to ZATCA” tab, log in to the Fatoora portal, generate an OTP under “Onboard new solution unit/device” and enter it in the plugin. Try the Simulation environment first.
FAQ
-
When do I need Phase 2?
-
ZATCA brings taxpayers into integration in waves, based on their revenue, and notifies each business at least six months before its integration date. Until your wave starts, Phase 1 (the free version) is what you need.
-
Does my invoice data go through your servers?
-
No. Invoices are generated and stored on your own WordPress site, and we never receive them. In Phase 2 (Premium), invoices are sent only to ZATCA’s Fatoora platform. Separately, the Freemius SDK handles upgrades and licences; it never receives invoice data. See “External services” below for exactly what is sent to each service and when.
-
What happens if ZATCA’s platform is down?
-
It depends on the invoice type:
- Simplified tax invoices (B2C) are issued and given to the customer straight away. Reporting to ZATCA is queued and retried automatically. You get an admin notice if an invoice has not been reported within 12 hours, well inside ZATCA’s 24-hour limit.
- Standard tax invoices (B2B) must be cleared by ZATCA before the buyer receives them. During an outage, clearance is queued and retried, and the invoice is emailed to the buyer once ZATCA clears it.
-
Can I edit or delete an issued invoice?
-
No, and that is deliberate: ZATCA does not allow changes to an issued e-invoice. Corrections are made with a credit note (refund the order in WooCommerce) or a debit note.
-
Is the plugin in Arabic?
-
Yes. The admin screens, checkout fields and emails are translated into Arabic, and the PDF invoice is always bilingual (Arabic and English).
-
Which orders get a tax invoice (B2B) instead of a simplified invoice?
-
When B2B is enabled, a buyer who enters a valid company VAT number and a complete Saudi address at checkout gets a standard tax invoice. If details are missing, a simplified invoice is issued and the order notes say why.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Qirtas Saudi E-Invoicing for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Qirtas Saudi E-Invoicing for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.1.1
- The upgrade and licence screens use the Qirtas name. No changes to invoices.
0.1.0
- First release: invoices, credit notes and debit notes from WooCommerce orders, bilingual PDF with QR code, email attachments, Arabic translation.
- Premium: ZATCA onboarding, signing, reporting and clearance, B2B checkout fields, submission queue, correcting documents, certificate renewal.
