SUMU E-Invoicing for ERPNext
Send Oman Fawtara e-invoices over Peppol straight from ERPNext. Submit a Sales Invoice as usual: SUMU delivers it to your buyer, reports it to the Oman Tax Authority, and ERPNext shows the result.
How it works
The app connects ERPNext to SUMU. When you submit a Sales Invoice, ERPNext sends it to SUMU in the background. SUMU builds the Oman PINT e-invoice, delivers it to the buyer over the Peppol network and reports it to the Oman Tax Authority (Fawtara). The status and the official files come back to the invoice in ERPNext.
- 01Submit the Sales Invoice in ERPNext
- 02Sent to SUMU automatically
- 03Delivered to the buyer over Peppol
- 04Reported to the Tax Authority
- 05PDF, XML and Tax Data Document attached
- B2B and B2C: tax invoices and simplified invoices, credit notes, line and invoice discounts, VAT-inclusive prices and freight.
- Checks before sending: missing VAT, HS codes or buyer address, or totals that would differ from your books, are shown before anything leaves ERPNext.
- Always up to date: signed webhooks plus a changes feed every 5 minutes. Retries are automatic and never send an invoice twice.
- Supplier invoices: e-invoices sent to you arrive as draft Purchase Invoices.
What you need
| You need | Details |
|---|---|
| A SUMU account and API key | Sandbox for testing (test.joinsumu.com → API Keys → Create key), production for real invoices. Contact us if you don't have an account. |
| ERPNext v15 or v16 | On Frappe Cloud. Running your own server? Contact us. |
| Your company's tax details | Oman VAT number, CR number and full address, exactly as on the VAT certificate. |
| Scheduler and workers running | Invoices are sent and followed up in the background. |
| A public HTTPS address (optional) | Only for the webhook. Without it, ERPNext checks SUMU every 5 minutes. |
Test first
Use the sandbox and a test company until everything works, then switch to production (see "Go live").
Install the app
The app is available on the Frappe Cloud Marketplace as SUMU E-Invoicing.
- 1Sign in to Frappe Cloud and open the site where you run ERPNext.
- 2Open the Apps tab and click Install App.
- 3Search for SUMU E-Invoicing, select it and click Install. Frappe Cloud picks the right version for your ERPNext (v15 or v16).
- 4When the install finishes, open your site and go to Company → SUMU E-Invoicing to connect your company.
Running ERPNext on your own server?
Contact our team and we'll help you install the app on your server.
The app adds a SUMU E-Invoicing tab to Company, Customer and Item, a SUMU card and a Fawtara tab on Sales Invoices, and the SUMU E-Invoicing workspace.
Connect your company
Open Company → your company → SUMU E-Invoicing. A setup checklist at the top shows each step with one button to do it.
- 1Set SUMU Environment (
testfor the sandbox,livefor production), paste the SUMU API Key and tick Allow sending data to SUMU. - 2Fill in the company Tax ID (Oman VAT), the company address, and on this tab the Commercial Registration Number, Address Line 2 (Area/District), Address Line 3 (Wilayat) and Governorate. Then Save.
- 3Click Test Connection. It checks the key and shows the taxpayer SUMU sees.
- 4Click Onboard SUMU Taxpayer to create the company at SUMU, or Sync Taxpayer if it already exists in your SUMU dashboard.
- 5Click Register on Peppol so the company can receive e-invoices.
- 6Click Create Oman VAT Templates and download the Oman code lists (HS codes and service types).


Save first
The SUMU buttons always use the saved values. If you change something, save the company before clicking them.
Set up VAT
The quickest way is Company → SUMU → Create Oman VAT Templates. It creates "Oman VAT 5%" (default), "Zero-rated" and "Exempt" with their VAT accounts, so every new invoice gets 5% VAT automatically.
Each VAT account has a SUMU Tax Category:
| Category | Use it for |
|---|---|
| S (standard rated) | The 5% VAT account |
| Z (zero-rated) | 0% accounts, with a zero-rating reason (VATZR-OM-xx) |
| E (exempt) | 0% accounts, with an exemption reason (VATEX-OM-xx) |
| O (out of scope) | Supplies outside the scope of VAT |
One VAT per line
Every invoice line needs exactly one VAT. Charges such as freight are taxed like the goods: put the charge row first and the VAT row after it with "On Previous Row Total".
Set up items
Open the item → SUMU E-Invoicing tab. A strip at the top shows whether the item is ready.
| Field | What to enter |
|---|---|
| Item Type | Goods or services |
| Oman HS Code | Goods: a 12-digit code from the synced list (search by code or description) |
| Oman Service Type | Services: a type from the synced list |
| UN/ECE Unit Code | Optional, for example H87 piece, KGM kilogram, HUR hour. Empty: taken from the unit of measure |

Set up customers
Business customers (B2B) need their VAT number (Tax ID); the Peppol ID (0248:<VAT>) is filled in automatically. They also need a billing address with street, Address Line 2 (Area/District), Address Line 3 (Wilayat), city and postal code. Individuals (B2C) need nothing extra.

SUMU → Check Peppol Registration looks the customer up on Peppol. A B2B customer who isn't on Peppol still gets the invoice: it is reported to the Tax Authority and SUMU delivers it through its fallback address.
Send an e-invoice
- 1Create the Sales Invoice as usual. The default VAT template fills in by itself.
- 2If something would stop the e-invoice, a SUMU card on the draft lists it, with a button to fix each item. Submit is refused until it is fixed.
- 3Click Submit. The invoice is sent to SUMU in the background and the card updates by itself.


| The card shows | What it means |
|---|---|
| Delivered · Reported to the Tax Authority | Done. For B2C: "Reported to the Tax Authority" (no Peppol delivery) |
| Sending to SUMU… / Sent · waiting | Nothing to do; it updates by itself (or click Refresh) |
| Kept as a draft at SUMU | Usually sent too late: see "Late invoices" |
| Not sent: N things to fix | Fix each item with its button, then click Send to SUMU |
| Delivery failed / Refused / Tax report rejected | Read the reason; issue a credit note and a new invoice |
Send right away
B2B invoices must reach SUMU within 1 hour of their issue time, and B2C within 24 hours (Oman time). Keep "Send to SUMU automatically on submit" on (the default).
Check the result
The Fawtara tab on the invoice shows the steps Sent → Delivered → Reported → Files with their times, the SUMU transaction and invoice UUID, and buttons for the files. SUMU's PDF (with the Fawtara QR code), the invoice XML and the Tax Data Document are attached automatically.

| Status | Values |
|---|---|
| Delivery | queued · sent · delivered · skipped (B2C, normal) · failed · rejected · draft |
| Tax report | pending · submitted · acknowledged (final OK) · rejected · failed (then Resubmit Tax Report) · disregarded |

B2C (simplified) invoices
The transaction type is set automatically when the invoice is saved: b2b when the customer has a VAT number or Peppol ID, otherwise b2c. You can change it on the Fawtara tab until the invoice is sent. B2C invoices are reported to the Tax Authority; a delivery status of "skipped" is normal.
Credit notes
- 1Open the sent invoice → Create → Return / Credit Note. Change the quantities for a partial return.
- 2On the Fawtara tab, choose the Reason for Issuance: CAN (cancellation or return), QTY (quantity), VAL (value), VAT (VAT treatment) or OTH (other).
- 3Submit. It is sent like an invoice and references the original automatically.

Issued invoices can't be cancelled
ERPNext refuses to cancel an invoice SUMU has issued and asks for a credit note instead. This keeps your books and the Tax Authority in agreement.
Late invoices and drafts
An invoice that reaches SUMU after the 1-hour (B2B) or 24-hour (B2C) window is kept as a draft at SUMU: not delivered and not reported. The invoice shows SUMU's reason.

To fix it, Cancel the invoice (the draft at SUMU is deleted automatically) and Amend it, so it gets the current date and time, then submit. Leave "Edit Posting Date and Time" unticked for normal sales.
Receive supplier invoices
E-invoices your suppliers send you over Peppol arrive in SUMU Inbound Document. Open one, click Fetch from SUMU, then Create Purchase Invoice: a draft Purchase Invoice is created with the supplier, invoice number, lines, VAT and the files attached. Review and submit it as usual.


Webhook and background jobs
With a public HTTPS site, click SUMU → Register Webhook on the Company. SUMU then tells ERPNext at once when an invoice is delivered or reported, or a supplier invoice arrives. Every event is signed and checked. The endpoint is:
https://your-site/api/method/erpnext_sumu_einvoice.api.webhook.receive| Background job | Runs every |
|---|---|
| Send queued invoices, read SUMU changes | 5 minutes |
| Refresh unfinished invoices, download files | 15 minutes |
| Update HS codes and service types | Week |
If SUMU can't be reached, the invoice is retried after 5, 15 and 60 minutes with the same request, so nothing is sent twice.
Troubleshooting
| Message | What to do |
|---|---|
| SUMU rejected the API key | Wrong or revoked key, or a sandbox key with Environment = live (or the other way round). |
| No taxpayer with VAT … in this SUMU account | Onboard the company, or check that the key belongs to the account where it exists. |
| Customer … has no Oman VAT number or Peppol ID | Add the VAT number, or set Transaction Type to b2c for an individual. |
| Customer … needs a full billing address | Complete the address: street, area, wilayat, city, postal code. |
| Item …: set a 12-digit Oman HS Code / Service Type | Open the item's SUMU E-Invoicing tab. |
| … has no VAT on this invoice | Let the VAT row include the charge (On Previous Row Total), or add it as an item line. |
| Draft at SUMU (past the submission window) | Cancel and amend the invoice (see "Late invoices"). |
| SUMU is temporarily unavailable | Nothing to do: it is retried automatically. |
| Can't be cancelled: issue a credit note | Use Create → Return / Credit Note. |
| You are not permitted to use SUMU e-invoicing actions | Ask for the SUMU Manager or Accounts Manager role. |
Contact support
Write to support@joinsumu.com with the invoice number and the SUMU transaction ID from the Fawtara tab.
Go live
- 1In your production SUMU account, create a live API key.
- 2On the company: set SUMU Environment to
live, paste the live key, Save and click Test Connection. - 3Click Sync Taxpayer (or Onboard SUMU Taxpayer) and check the Peppol registration.
- 4Register the webhook again for production.
- 5Check taxes, items (HS codes and service types) and B2B customers (VAT, address).
- 6Send one real invoice and check it shows Delivered · Reported to the Tax Authority.
Ready to send e-invoices from ERPNext?
Get a SUMU account and API key, or ask us to help you set it up.
