m2m.maE-commerce
E-commerce

WooCommerce or Shopify: Connect Your Store to Your Invoices

WordPress/WooCommerce, Drupal and Shopify plugins or an API: each paid order creates its invoice on my.m2m.ma, with no duplicates or re-entry. 15-day trial.

by the m2m.ma team · Published on · 4 min read

WooCommerce or Shopify: Connect Your Store to Your Invoices

The online store invoicing headache

You already sell online with WooCommerce, Shopify or Drupal, and orders are coming in. But at the end of the month, the invoices have to be issued. Many merchants do it by hand, copying each order into their invoicing software or a spreadsheet. It is slow, repetitive and risky: a forgotten order, a mistyped amount, an invoice created twice, and your accounts no longer match your actual sales.

m2m.ma offers a simpler solution: connect your store directly to your invoicing on my.m2m.ma. Plugins exist for WordPress and WooCommerce, for Drupal and for Shopify, and an API is available for other cases. Once the connection is set up, each paid order can automatically create its invoice, only once, with no re-entry.

How the connection works

The principle is the same whatever your tool. Your store and my.m2m.ma communicate using an API key, which you create in your m2m.ma account. This key can grant read or write access, depending on what the integration needs. When an order is paid in the store, its details are sent to my.m2m.ma, which creates the corresponding invoice with your usual mandatory details.

To avoid duplicates, each order is identified by its order ID. If the same order is sent twice, for example after a network outage, it does not create a second invoice. This is essential: a duplicate invoice distorts your revenue and your VAT, and correcting it then requires a credit note.

  • A read or write API key
  • One invoice per paid order
  • An order ID that prevents duplicates
  • Your Moroccan mandatory details on every invoice

WooCommerce, Drupal and Shopify plugins

If your store runs on WordPress with WooCommerce, the m2m.ma plugin installs like any standard extension and is then configured with your API key. The same goes for Drupal and Shopify, each with its own module. You do not need a developer for a standard installation, although help from the person who manages your website can be useful the first time.

If your store uses another technology, or if you have business software that generates sales, the m2m.ma API lets you build the connection. Your IT person or web agency can take care of it. The connectors are presented on the Integrations page of the m2m.ma website, which remains the reference for technical details.

Export and free zone: the right regime for each order

Some stores sell abroad or to customers based in a free zone. In these cases, VAT does not apply in the same way. The connection lets you specify the export or free zone regime order by order. The invoice is then issued without VAT, with the required wording and the correct sales accounts, and a foreign customer can be invoiced without an ICE.

Take a fictitious example: a crafts store in Fez sells a rug for 3,600 DH to a customer in Lyon and a cushion for 240 DH including VAT to a customer in Rabat. The first order is invoiced as an export, without VAT; the second with the usual VAT. Your accountant confirms the rules that apply to your situation.

What you gain day to day

The first gain is time: invoices are created while you prepare the parcels. The second is reliability: your invoices match your paid orders exactly. The third concerns your accounts: on my.m2m.ma, each approved invoice is posted as an entry according to the Moroccan chart of accounts, and VAT is prepared from this data.

You can also send invoices to your customers from your own address, Gmail, Outlook or your domain's mail server, with your logo. Your customers receive a professional invoice in your name, which builds trust, especially for a young store building its reputation. Sales reports and invoice status can then be read in one place.

Test the connection before switching it on for good

Before connecting your live store, place a few test orders: a standard paid order, an export order if you have them, and a cancelled order. Check on my.m2m.ma that each invoice is created as expected, with the right amounts and the right mandatory details. Show the result to your accountant before the first full month.

my.m2m.ma can be tried free for 15 days, with no payment method required. That is more than enough to install the WooCommerce, Drupal or Shopify plugin, connect your store and check, on your own orders, that invoicing follows without any action on your part. If anything is unclear, the m2m.ma team answers at support@m2m.ma, and your accountant can check the first invoices created.

Frequently asked questions

Which online stores can be connected to my.m2m.ma?

Plugins exist for WordPress with WooCommerce, for Drupal and for Shopify. For other tools, an API lets you build the connection. In every case, each paid order can create its invoice on my.m2m.ma.

How do I stop an order from creating two invoices?

Each order is sent with its order ID. If the same order arrives a second time, for example after a network incident, my.m2m.ma does not create a new invoice. Your sales and your VAT stay accurate.

Do I need a developer to install the plugin?

For a standard WooCommerce, Drupal or Shopify installation, the plugin is usually configured with your API key, with no development. A connection with other software through the API, however, requires an IT professional or your web agency.

Share this article

Put it into practice with m2m.ma

E-invoicing, accounting and business management services for Moroccan companies. 15-day free trial, no credit card.