Ask a Moroccan SME owner what keeps cash tight, and late customer payments usually come up before bank credit access. The problem isn't the law: Law 32-10, which amended Morocco's Commercial Code, caps payment terms at 60 days from the invoice date (extendable to 90 days when both parties sign a written agreement, sector by sector). The problem is execution. Without a structured process, a properly formatted invoice with an ICE number goes out by email, nobody tracks its status, and the follow-up happens on gut feeling, three weeks too late.
Automating invoicing and collections doesn't mean replacing your accountant with a bot. It means removing repetitive manual work, standardizing reminders, and giving your team real-time visibility into who owes what, and since when.
Why manual collections cost Moroccan SMEs more than they realize
Three hidden costs show up consistently in SMEs that run invoicing by hand:
- Time cost. A 2-3 person accounting team often spends 15 to 20 hours a week entering, sending, and chasing invoices, hours that could go toward financial analysis or budget control instead.
- Delay cost. Every extra day an invoice stays unpaid is a day of cash tied up. For an SME billing 3 million MAD a year with an average collection period of 75 days, cutting that down to 45 days mechanically frees up several weeks' worth of revenue in available cash, without selling a single additional dirham of product.
- Forgetting cost. A reminder sent on day 45 instead of day 15 signals to the client that the vendor isn't actively tracking unpaid invoices, which quietly encourages further delay.
On top of this sits a compliance risk: an invoice that doesn't follow the DGI's standardized format (mandatory fields, ICE number, correct VAT rate) can be rejected during a tax audit, with penalties that far outweigh the cost of an automation tool.
5 steps to automate invoicing and collections
1. Centralize invoicing in one connected tool
The most common mistake among Moroccan SMEs is generating invoices in Excel or Word, then sending them over WhatsApp or email with no central record. Invoicing software connected to your CRM/ERP (Odoo, Sage, or a custom build) automatically generates a compliant invoice the moment an order or quote is confirmed, with the right VAT rate, the client's ICE number, and continuous legal numbering.
2. Automate sending and read receipts
Every invoice should go out automatically by email with an online payment link (via CMI, Morocco's main payment switch, or an aggregator like M2T or Maroc Telecommerce) instead of a plain PDF attachment. A direct payment link shortens the settlement time, because the client pays in two clicks instead of initiating a bank transfer manually.
3. Schedule graduated reminders, not a single alert
Effective collections rely on cadence, not a one-off nudge. A well-performing standard workflow looks like this:
- 3 days before due date: a courteous email reminder ("your invoice is due in 3 days")
- 1 day after due date: automatic follow-up, neutral tone
- 15 days after: reminder referencing the late-payment penalties allowed under Law 32-10
- 30 days after: a manual phone call, triggered by an automatic CRM alert
- 45 days after: escalation to formal collections or factoring
This cadence is configured once inside the tool and runs on its own afterward, except for steps that genuinely need a human touch (the day-30 call is still a phone call, automation just fires the alert at the right moment).
4. Track DSO on a live dashboard
DSO (Days Sales Outstanding) is the key metric here. A dashboard connected to your CRM/ERP shows, continuously: invoices pending, overdue invoices bucketed by age (0-30 days, 30-60 days, 60+ days), and total amount at risk. Without automation, this number often only gets recalculated once a month at accounting close, too late to act on.
5. Connect invoicing, CRM, and accounting
Automation only pays off if it eliminates re-entry. An invoice generated in the CRM should flow automatically into accounting without a manual export-import step. That's exactly what an integrated CRM/ERP built for Moroccan SMEs is for, connecting sales, invoicing, and accounting into one flow instead of three tools that don't talk to each other.
A worked ROI example
Take a mid-sized Moroccan SME: 25 employees, 4 million MAD in annual revenue, current DSO of 68 days.
- Accounting time saved: 12 hours/week freed up, worth roughly 45,000 MAD/year at a junior accountant's fully loaded rate.
- Cash unlocked: cutting DSO from 68 to 40 days frees up about 28 days' worth of revenue in cash, roughly 310,000 MAD that stops sitting idle with customers.
- Tool cost: an automated invoicing/CRM subscription for a team this size typically runs 1,500 to 4,000 MAD/month depending on user count and integrations.
On these figures, the tool pays for itself within 2 to 4 months, and the cash unlocked well exceeds its annual cost. Treat these as a worked example, not a guaranteed average: starting DSO and how disciplined a company already is about follow-ups will shift the outcome.
Automation or factoring: two complementary levers
Automation shortens collection time, but it doesn't replace factoring when cash flow is already tight. The two solve different problems:
- Automation works upstream: it lowers DSO by speeding up invoicing, payment, and reminders. It's an investment that pays back within months and keeps paying off indefinitely.
- Factoring works downstream, turning an already-issued invoice into immediate cash for a fee (typically 1-3% of the receivable, depending on client risk and duration). It's a point solution, not a structural fix for slow payment terms.
An SME that automates invoicing and collections gradually needs less factoring, because fewer invoices drift past 60 days. The logical order is: automate first to shrink the pool of overdue receivables, then keep factoring only for large clients on structurally long payment cycles (major corporates, public tenders), where even perfect follow-up won't shorten a contractual term.
One more thing worth checking before picking a tool: whether it can separate customer segments. A public-sector client (government tender, municipality) follows different payment rules than a private client, usually with longer terms and a reminder process that has to stay formal. A good invoicing automation tool lets you build distinct reminder workflows per segment, instead of applying one cadence to every client regardless of type.
What to look for when picking a tool
Not every invoicing tool on the market fits a Moroccan SME out of the box. Before committing to a subscription, check for three things specifically:
- DGI-compliant invoice templates. The tool needs to generate invoices with the correct mandatory fields and ICE number by default, not as a manual add-on you have to configure yourself for every template.
- Local payment rail support. Confirm the tool can generate payment links through CMI or a local aggregator, rather than only supporting international processors that Moroccan clients rarely use.
- Bilingual output. Many Moroccan SMEs invoice both local clients and European partners. A tool that can produce the same invoice in French and English, with consistent numbering, saves a second manual workflow later.
Skipping this check is how SMEs end up paying for a subscription for six months, then reverting to spreadsheets because the tool didn't actually fit local invoicing rules.
Readiness checklist
- Your invoices already follow the DGI's standardized format (ICE number, mandatory fields, correct VAT)
- You know your current DSO (if not, calculate it before picking a tool)
- Your CRM and accounting don't talk to each other yet (a strong signal you need to connect the two)
- Your reminders are currently sent manually, case by case
- Your invoices don't carry an online payment link
If you checked 3 boxes or more, automating invoicing and collections is likely the fastest cash-flow lever available to your SME, faster than a bank negotiation or a funding round. Our AI transformation service works with Moroccan SMEs on exactly this kind of project, from process audit to setting up business process automation.
FAQ
What is the maximum legal payment term in Morocco?
Law 32-10, which amended the Commercial Code, sets a maximum term of 60 days from the invoice date, extendable to 90 days when both parties sign a written agreement for certain sectors. Beyond that, the vendor can apply legal late-payment penalties.
Do you need a full ERP to automate invoicing, or does a simpler tool work?
It depends on team size. An SME under 10 employees can start with a standalone invoicing tool connected to a payment link. Beyond that, connecting invoicing, CRM, and accounting in one system becomes worth it, since the time lost to manual re-entry outweighs the cost of an integrated tool.
Won't automated reminders annoy good clients?
A reminder sent 3 days before the due date reads as a service, not pressure. Tone and escalation should stay configurable: a loyal client with a clean payment history can sit on a softer cadence than one who keeps racking up delays.
How does an online payment link speed up collections?
A standard bank transfer requires the client to log into their banking portal, enter account details, and confirm manually, which often takes several days before the vendor's accounting team even sees it processed. A payment link through CMI or a local aggregator cuts that friction to a few clicks, which mechanically shortens the time to actually get paid.
What's the first process to automate on a limited budget?
Graduated reminders before and right after the due date (day -3 and day +1) offer the best effort-to-impact ratio: they're cheap to set up and fix the main leak, simply forgetting to follow up on time.
