housedevinci Start a project
sheet 06 · work · morocco generator · part D
UBL · CIIpart D · stamp press

Morocco e-invoicing generator

e-invoicingdocument generation

First part of a connector to Morocco's B2B e-invoicing reform. Not in production, not sold yet.

Who it is for. Accounting and invoicing vendors, and integrators serving Moroccan businesses.

The problem

Morocco's platform and its business rules are not published yet. Almost none of the vendor-side pieces exist, and every vendor would build them alone.

What we built

  • A canonical invoice model: seller and buyer identifiers (ICE, IF, RC), lines, VAT, totals.
  • UBL 2.1 and UN/CEFACT CII generators, validated against the OASIS UBL 2.1 and UN/CEFACT CII D16B schemas, byte-identical on every run.
  • Validation rules for everything that can be checked without the tax authority's own rule set.

What waits for the platform

  • The tax authority's own business rules, not published.
  • Electronic signature and submission to the clearance platform.
  • Any numbering scheme the authority imposes.

No date and no penalty is stated on this page; none is confirmed by an official text. A clean result today means the document is structurally sound against those schemas and our own rules. It is not a prediction that the tax authority's platform will accept it: the authority's rule set is not published.

Not sold on its own yet. The way in is the readiness audit, which uses this generator on your real invoices.

Read the audit page