Skip to content

Features at a glance ​

Everything the package does, with the page that explains it. ⚠ marks behaviour that depends on a ZATCA rule not yet confirmed in official documentation.

Setup ​

FeatureHowDocs
Companies (taxpayers) and VAT registrationsZatca::companies()->create(), zatca:taxpayer:registerDevices from code, Taxpayers and devices
Stores / branchesZatca::companies()->createStore(), stores in create()Devices from code
Your own IDs for companies and storesexternal_refDevices from code
Devices (EGS units), one or manyZatca::devices()->register()/registerMany(), zatca:device:registerDevices from code
Device import from CSV / Excel, local or S3Zatca::devices()->import(), zatca:devices:importDevices from code
Dry-run validation of a device filevalidateMany(), --validateDevices from code
Onboarding (key, CSR, compliance CSID, compliance checks, production CSID)onboard(), onboardMany(), OTP column, zatca:device:onboardTaxpayers and devices
Resume after failed compliance checksresume(), --resumeTaxpayers and devices
Certificate renewal and expiry alertszatca:device:renew, zatca:devices:check-expiryTaxpayers and devices
Sandbox, simulation and productionZATCA_ENVIRONMENT, per deviceGoing live

Invoicing ​

FeatureHowDocs
B2C simplified invoices, reported within 24 hZatca::b2c()->issue()B2C
B2B standard invoices, cleared before deliveryZatca::b2b()->issue()/submit()B2B
Validation onlyvalidate()Invoice payload
Idempotency (same number = same result)external_id / invoice_numberB2C, HTTP API
Unit, line and header discounts; percentages; split over VAT groupsdiscount, discounts[], allowances[], distributeDiscounts
Charges (delivery etc.)charges[]Invoice payload
Zero-rated, exempt, out-of-scope linesvat_category, exemption_reason_codeInvoice payload
QR code (TLV, phase 2)qr in the resultB2C
Cleared XML for the buyerstored artifactB2B
Stored lines and VAT breakdown$invoice->lines, vatBreakdownYour own invoice tables
Link to your own invoice/order tablesource option, HasZatcaInvoicesYour own invoice tables

After issuing ​

FeatureHowDocs
Automatic retries with backoffworkersRejections, retries and corrections
Manual retry of the identical documentretry(), zatca:invoice retryCorrections
Correct a rejected or invalid invoicecorrect(), zatca:invoice correctCorrections
Reissue unchangedreissueUnchanged(), zatca:invoice reissueCorrections
Four-eyes approval of correctionsapprove(), zatca:invoice approveCorrections
Credit and debit notes, credit limitcreditNote(), debitNote(), zatca:invoice credit/debitCredit and debit notes
Cancel an accepted invoice (full credit note)cancel(), zatca:invoice cancelCancelling invoices
Discard a never-signed invoicediscard(), zatca:invoice discardCancelling invoices
Abandon a rejected invoice ⚠abandon(), zatca:invoice abandonCancelling invoices
303 "clearance switched off" handling ⚠automaticB2B
24-hour reporting deadline alertszatca:deadlines:checkMonitoring
Statuses and history of every changeprocessing_status, history tablesStatuses and lifecycle

Integration ​

FeatureHowDocs
PHP facadeZatca::…PHP API
HTTP API (optional)ZATCA_API_ENABLEDHTTP API
Events for every outcomeInvoiceAccepted, InvoiceRejected, InvoiceCancelled, …Events
Multi-company and multi-tenanttenant resolverMulti-company and multi-tenant
Queues, workers, schedulerqueue:work, outbox relayQueues and workers
Web dashboard: overview, B2B/B2C lists, invoice detail, actions, XML download, permissions/admin/zatca, Zatca::auth()Dashboard
Dashboard: devices (register, import from Excel/CSV, onboard and renew with an OTP), companies and stores/admin/zatca/devicesDashboard
Dashboard: errors and error groups (resolve with a note), queue monitor, audit history, settings/admin/zatca/errorsDashboard
Dashboard: correction editor, credit/debit note formsinvoice pageDashboard
Dashboard: reports with charts, VAT summary, CSV exports/admin/zatca/reportsDashboard
Audit trail of every operator action (hash-chained)zatca:audit:verifySecurity

Reliability and security ​

FeatureDocs
Gap-free invoice counter (ICV) and hash chain (PIH) per device, safe under concurrencyKey concepts, Scaling
Chain and audit verificationzatca:chain:verify, zatca:audit:verify — Monitoring
Lost-message recoveryzatca:reconcile — Monitoring
Load shedding (429/503)HTTP API, Scaling
Encrypted private keys and secrets, OTPs never stored, redacted logs, TLS verification, XXE protectionSecurity
Laravel 9.52+–13, PHP 8.1+, MySQL/MariaDB/PostgreSQL/SQL Server ⚠Requirements, Compatibility

Not available yet ​

FeaturePlanned
Batch HTTP endpoint, per-device in-flight limitlater; the config keys exist but are not used yet
Prepaid amounts, currencies other than SARlater

Not affiliated with or endorsed by ZATCA. Verify regulatory requirements with ZATCA and your tax advisor.