
UAE E-Invoicing with Wafeq ASP
Send your Odoo customer invoices and credit notes to the Wafeq ASP for UAE e-invoicing in one click. Odoo checks the invoice, builds the PINT AE e-invoice, submits it once (never twice), and then tracks its Peppol delivery to the buyer and its report to the UAE Federal Tax Authority (FTA), all on the invoice itself.
ODOO 17 · 18 · 19 · 20COMMUNITY & ENTERPRISEPINT AE · PEPPOL · FTAMULTI-COMPANYNO DUPLICATE SUBMISSIONS
The real Odoo screens of this module, recorded in Mock mode with sample data.
Book Your Personalised Demo Right Away



Automate UAE E-Invoicing in Odoo with Wafeq ASP
This connector links Odoo with the Wafeq ASP UAE e-invoicing API to validate, submit and track customer invoices and credit notes straight from the invoice. Every document is checked before it leaves Odoo, submitted exactly once, delivered to the buyer over Peppol and reported to the FTA, with the status kept up to date on the invoice. No double entry and no manual uploads.
What This Module Does
UAE e-invoicing sends each tax invoice as a structured e-invoice through an accredited service provider, who delivers it to the buyer over the Peppol network and reports it to the FTA. This module connects Odoo to the Wafeq ASP API (https://api.wafeq.com/ae/v1), so your team keeps invoicing in Odoo as usual. The module turns the invoice into the PINT AE format, sends it, and writes every answer from Wafeq ASP back onto the invoice.
Validate
Odoo checks the invoice itself first, then asks Wafeq ASP to validate it against the PINT AE rules. Errors are shown on the invoice in plain language.
Submit
Each invoice and credit note is submitted exactly once, with an Idempotency-Key. Odoo stores the Wafeq document ID and the e-invoice UUID.
Peppol delivery
Wafeq ASP delivers the e-invoice to the buyer's provider over Peppol. The delivery status and any reason appear on the invoice.
FTA reporting
Wafeq ASP reports the document to the FTA. The FTA status and submission ID are stored, and the invoice shows “Reported to FTA”.
Live status
Signed webhooks from Wafeq ASP update the invoice automatically. A Refresh button reads the latest status at any time.
Test, then go Live
Try everything in Mock mode with no account, test on the Wafeq Sandbox, then go Live after an administrator confirms.
How It Works, Step by Step
![]() |
STEP 1
Create and post the invoiceWhat you do: create a customer invoice (or credit note) as usual and click Confirm. Once Wafeq ASP is enabled for the company, the header shows Validate with Wafeq and a badge with the current mode (Mock, Sandbox or LIVE). What happens behind the scenes:
|
▲ A posted invoice with the Wafeq ASP tab open, before validation
![]() |
STEP 2
Validate with WafeqWhat you do: click Validate with Wafeq. What happens behind the scenes:
|
▲ Validated: the Submit to Wafeq ASP button appears
![]() |
STEP 3
Submit to Wafeq ASPWhat you do: click Submit to Wafeq ASP and confirm. In Live mode a separate confirmation window asks you to tick that this is a real tax invoice, every time. What happens behind the scenes:
|
▲ Confirmation before the document is sent
▲ Accepted by Wafeq ASP: document ID, UUID and Idempotency-Key are stored
![]() |
STEP 4
Delivery and FTA report come back automaticallyWhat you do: nothing. Wafeq ASP sends a webhook as soon as the document is delivered or reported. You can also click Refresh Wafeq Status at any time. What happens behind the scenes:
|
▲ Reported to FTA: delivery status, FTA status and FTA answer filled in
Every Invoice's E-Invoice Status at a Glance
The customer invoice list gets a Wafeq ASP Status column, so you can see straight away which invoices are not sent yet, which failed validation, which are processing and which are reported.
Checked Before Anything Is Sent
Odoo checks the invoice itself before calling Wafeq ASP, so missing data is caught early and explained in words your accountants understand:
Document
Lines & VAT
|
Customer
|
▲ Example: the customer has no address, emirate or identifier, so Odoo lists exactly what to fix
Credit Notes, the UAE Way
A submitted invoice is locked: it cannot be reset to draft. To correct it, create a credit note from the invoice (Credit Note button). The credit note is validated and submitted the same way:
| ✓ | It is sent to /credit-notes as e-invoice type 381, with its own credit note number |
| ✓ | The UAE credit note reason code (DL8.61.1.A to E) is chosen on the credit note's Wafeq ASP tab |
| ✓ | When the original invoice went through Wafeq ASP, the credit note refers to its Wafeq document ID. Otherwise it sends the original invoice number and date as an external reference |
| ✓ | The credit note must be for the same customer as the original invoice |
▲ A credit note submitted and reported, with its reason code and e-invoice type 381
Setup in a Few Minutes
![]() |
STEP A
Create the connection (one per company)What you do: open Connections and create one. It starts in Mock mode: tick Enabled and you can try the whole flow immediately, with no Wafeq account and no credentials. What happens behind the scenes:
|
▲ The connection form in Mock mode
![]() |
STEP B
Add your Sandbox and Live credentialsWhat you do: paste the API key, then use Load Taxpayers to pick your business (Taxpayer ID and Grant ID are filled in for you). Sandbox and Live each have their own tab. What happens behind the scenes:
|
▲ Sandbox credentials: the stored key is masked (sample values)
▲ Switch to Live: refused while Live credentials are missing, and only after an explicit confirmation
![]() |
STEP C
Connect the webhooksWhat you do: copy the Webhook URL from the Webhooks tab into the Wafeq ASP portal (Developer › Webhooks), subscribe to the document and taxpayer events, and save that mode's signing secret in Odoo. What happens behind the scenes:
|
▲ The webhook URL to register in Wafeq ASP
![]() |
STEP D
Set the VAT categories and customer identifiersWhat you do: on every 0 % tax, choose the UAE E-Invoicing VAT Category (Zero-rated, Exempt, Out of scope, Reverse charge) and, where needed, the exemption reason or reverse-charge goods type. On each customer, fill in the Wafeq ASP tab: Peppol ID, other identifier, Emirate Code, and legal registration for commercial invoices. What happens behind the scenes:
|
▲ UAE e-invoicing VAT category on a tax
▲ Buyer identification on the customer
Every Status Explained
| Status | Meaning | What to do |
|---|---|---|
| Not Submitted | Not sent to Wafeq ASP yet. | Validate with Wafeq. |
| Validation Failed | Odoo's checks or Wafeq's PINT AE validation found errors; they are listed on the invoice. | Fix the data (customer, tax, lines) and validate again. |
| Validated | Wafeq ASP accepted the data. Nothing has been stored or reported yet. | Submit to Wafeq ASP. |
| Submitting / Submission Failed | The submission is being processed, or was refused or interrupted. | Retry Submission: the same request is resent, so no duplicate is created. |
| Processing | Accepted by Wafeq ASP; delivery and FTA reporting are in progress. | Nothing; the webhook updates it. |
| Accepted (not reported to FTA) | Accepted. In Sandbox and Mock, FTA reporting is simulated. | Nothing. |
| Delivered | Delivered to the buyer over Peppol. | Nothing. |
| Reported to FTA | Reported to the Federal Tax Authority. | Nothing. The invoice is complete. |
| Delivery Failed (reported) | Reported to the FTA, but delivery to the buyer failed (reason shown). | Contact the buyer. Do not resubmit. |
| Rejected | Rejected by the buyer's provider or by the FTA. | Issue a credit note and a corrected invoice. |
| Needs Attention | Wafeq ASP needs a check (or Live: not reported to the FTA). | Open the API log and the Wafeq portal. |
Built to Never Lose or Duplicate a Tax Invoice
Never submitted twice
An invoice with a Wafeq document ID is never sent again. One Idempotency-Key per document version, saved before the call. Retries reuse it, and a new key is used only after a final refusal or a changed invoice.
Finds lost submissions
If the outcome of an attempt is unknown (timeout, 409), Odoo searches the taxpayer's outbound documents for the invoice before sending anything new, and links it if found.
Safe retries
HTTP 429, 500, 502, 503, 504 and “in progress” answers are retried up to 3 times with back-off. Network failures leave the invoice ready for “Retry Submission”.
Encrypted secrets
API keys and signing secrets are encrypted at rest, can be entered but never read back, and are never written to logs. Each mode uses only its own credentials.
Verified webhooks
Standard Webhooks signatures on the raw body, replay protection, deduplication, routing by taxpayer and mode, and test events ignored.
Locked after sending
A submitted invoice cannot be reset to draft, and each change of status is tracked in the chatter.
Full API Log and Webhook History
Every HTTP attempt is logged: operation, endpoint, HTTP status, duration, retry number, idempotency key, and the request and response bodies with secrets masked. The log is written in its own transaction, so it is kept even when the action fails. Open it from the invoice (API log button) or from the menu.
▲ API Log: every call to Wafeq ASP
▲ One log entry with the sanitized response
▲ Webhook Events: each verified event and the invoice it updated
The Same Invoices on the Wafeq ASP Portal
What you see in Odoo matches what Wafeq ASP shows: the invoice list, totals, line items, delivery timeline and the Odoo invoice reference in the metadata.
▲ Invoices submitted from Odoo (Sandbox)
▲ Totals, line items, audit trail and delivery timeline
▲ Odoo invoice and company in the metadata, with the document events
Frequently Asked Questions
Is there a registration step?
Yes. After installation, an administrator registers once with name, email, country and mobile number and confirms an OTP (sent through Go4WhatsUp). These details are shared with Inwizards to activate the module and so we can help you with setup; the popup says so before anything is sent. After the OTP is verified, the Wafeq ASP connection screen opens.
Do I need a Wafeq ASP account?
Not to try it: Mock mode runs entirely inside Odoo. For Sandbox and Live you need a Wafeq ASP organization API key and your business connected as a taxpayer in the Wafeq ASP portal.
Can an invoice be sent twice by mistake?
No. Idempotency-Key, a database lock, the stored document ID and automatic reconciliation together ensure one invoice equals one Wafeq document, even after timeouts or crashes.
What if Wafeq ASP rejects an invoice?
The reason is written on the invoice (and in the API log). Fix the data and submit again. If it was rejected after acceptance, issue a credit note.
Does it support foreign-currency invoices?
Yes. Invoices in USD, EUR or any currency are sent with the exchange rate to AED from Odoo's currency rates.
Does it support zero-rated, exempt and reverse-charge sales?
Yes. Set the UAE VAT category on the tax; exempt taxes also need the reason code, and reverse charge needs the goods type and a GTIN on the product. The margin scheme and special transaction types are not supported in this version, and Odoo refuses them with a clear message.
What if the webhook can't reach my Odoo?
Click Refresh Wafeq Status on the invoice: Odoo reads the status directly from Wafeq ASP. Webhooks need a public HTTPS URL.
Several companies in one database?
Yes. Each company has its own connection, mode and credentials, and webhooks are routed to the right company by taxpayer.
Watch the Demo Video
Need Help or a Customization?
Our Odoo team installs, configures and adapts UAE e-invoicing for your business: Sandbox testing, go-live, and custom fields or flows.
✉ info@inwizards.com ☎ +91-9667584436 🌐 www.inwizards.comPricing, set-up and free ASP advice: https://www.inwizards.com/uae-e-invoicing-odoo-pricing
Wafeq is a trademark of its owner. This module is an independent integration by Inwizards and is not made by Wafeq. Screens in Mock mode with sample data; private details on the Wafeq portal screenshots are blurred.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 2637 |
| Technical Name |
E_Invoicing_UAE |
| License | LGPL-3 |
| Website | https://www.inwizards.com/ |
Please log in to comment on this module