Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. EDI
  3. E-Invoicing UAE v 20.0
  4. Sales Conditions FAQ

E-Invoicing UAE

by Inwizards software Technology Pvt Ltd https://www.inwizards.com/
Odoo
v 20.0 Third Party 3
Download for v 20.0 Deploy on Odoo.sh Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 17.0 18.0 19.0 20.0
  • Description
  • Manifest
UAE E-Invoicing - Wafeq ASP + Odoo Connector by Inwizards

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
Odoo invoice validated, submitted to Wafeq ASP, delivered on Peppol and reported to the FTA

The real Odoo screens of this module, recorded in Mock mode with sample data.

Book Your Personalised Demo Right Away

Odoo implementation and integration team – UAE e-invoicing with Wafeq ASP
Connect via Email - scan the QR code
Connect via WhatsApp - scan the QR code
Book a Meeting - scan the QR code

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.

ONE CLICK FROM ODOO TO PEPPOL AND THE FTA

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.

WHAT YOU CLICK AND WHAT HAPPENS

How It Works, Step by Step

STEP 1

Create and post the invoice

What 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:

✓Nothing is sent yet. The Wafeq ASP tab on the invoice shows Not Submitted.
✓Draft invoices cannot be sent; Odoo only sends posted invoices with a number.
Posted invoice with the Validate with Wafeq button

▲ A posted invoice with the Wafeq ASP tab open, before validation

STEP 2

Validate with Wafeq

What you do: click Validate with Wafeq.

What happens behind the scenes:

✓Odoo first runs its own checks (customer address and emirate, TRN / Peppol ID, VAT categories, totals… see the full list below). If something is missing, the invoice becomes Validation Failed and the Validation Errors box lists exactly what to fix. Nothing is sent to Wafeq.
✓If the local checks pass, Odoo builds the PINT AE request and calls POST /invoices/validate (or /credit-notes/validate). Wafeq ASP checks everything but stores, delivers and reports nothing at this step.
✓Valid: the status becomes Validated, and the e-invoice type (380 tax invoice / 480 commercial / 381 credit note) and route are stored. Wafeq's warnings, if any, are kept on the invoice.
✓Invalid: Wafeq's error messages and rule codes are written to the invoice.
Invoice validated by Wafeq ASP

▲ Validated: the Submit to Wafeq ASP button appears

STEP 3

Submit to Wafeq ASP

What 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:

✓Odoo validates once more, then calls POST /invoices (or /credit-notes) with an Idempotency-Key and Prefer: respond-async.
✓The key is saved in its own committed transaction before the call. If Odoo or the network stops halfway, the next attempt sends the same key and Wafeq ASP returns the stored answer instead of creating a second document.
✓A database lock blocks double clicks and the same invoice being sent from two tabs at once.
✓Accepted: the Wafeq document ID, e-invoice UUID and delivery job ID are saved, and the status becomes Processing. From now on the invoice cannot be reset to draft; corrections are made with a credit note.
Submission confirmation

▲ Confirmation before the document is sent

Invoice accepted by Wafeq ASP

▲ Accepted by Wafeq ASP: document ID, UUID and Idempotency-Key are stored

STEP 4

Delivery and FTA report come back automatically

What 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:

✓Odoo's endpoint /wafeq/asp/webhook checks the Standard Webhooks signature (HMAC-SHA256, 5-minute replay window), deduplicates on webhook-id, stores the event and answers 2xx immediately.
✓The event is processed in the background: Odoo finds the invoice by its Wafeq document ID (or source ID), applies the FTA status and submission ID, and then reads GET /invoices/{document_id}, the authoritative status.
✓The invoice shows Delivered, Reported to FTA, Delivery Failed, Rejected or Needs Attention, with the delivery reason when there is one. Every change is tracked in the chatter.
Invoice reported to the FTA

▲ Reported to FTA: delivery status, FTA status and FTA answer filled in

INVOICE LIST

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.

Customer invoice list with the Wafeq ASP Status column
CLEAR MESSAGES INSTEAD OF REJECTED E-INVOICES

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

✓Only posted customer invoices and credit notes, with a number of at most 64 characters
✓Invoice date, currency, and a due date on invoices
✓Foreign currency: an exchange rate to AED is needed and sent
✓At most 1,000 lines
✓Line totals must match the untaxed total, and the VAT must match the invoice VAT

Lines & VAT

✓Quantity above zero, no negative lines
✓Exactly one percentage VAT tax per line, with a UAE VAT category
✓5 % taxes are sent as Standard (S); 0 % taxes must say Z, E, O or AE
✓Exempt lines need an exemption reason code (DL8.46.x)
✓Reverse-charge lines need the goods type (DL8.48.x) and a valid GTIN barcode
✓Standard-rated or reverse-charge lines need the company's VAT TRN

Customer

✓Name, street, city and country
✓UAE buyers: the emirate (State field or Emirate Code)
✓A Peppol ID (0235:<TIN>), a VAT TRN, or another identifier
✓UAE TRN format: 15 digits, starting with 1 and ending with 03
✓Reverse charge: the customer's TRN and an explanatory note
✓Commercial invoices (only exempt / out-of-scope lines): the customer's legal registration (trade licence, Emirates ID, passport…)
Validation errors listed on the invoice

▲ Example: the customer has no address, emirate or identifier, so Odoo lists exactly what to fix

CORRECT A SUBMITTED INVOICE

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
Credit note reported to the FTA

▲ A credit note submitted and reported, with its reason code and e-invoice type 381

ACCOUNTING › CONFIGURATION › WAFEQ ASP

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 Mock simulator answers like the real API, and results are clearly marked as simulated on the invoice.
✓An administrator can choose one of 14 Mock scenarios to see every outcome (listed below).
✓Test Connection checks the API key and confirms the taxpayer is among its active grants.
Wafeq ASP connection in Mock mode

▲ The connection form in Mock mode

STEP B

Add your Sandbox and Live credentials

What 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:

✓API keys and webhook secrets are write-only. After saving, only the last 4 characters are shown, and they are encrypted in the database.
✓A Sandbox key must start with pk_test_ and a Live key with pk_live_, so a key can never be used in the wrong mode.
✓Switching to Live is reserved for administrators, needs the Live credentials, and must be confirmed.
Sandbox credentials tab with masked key

▲ Sandbox credentials: the stored key is masked (sample values)

Switch to Live confirmation

▲ Switch to Live: refused while Live credentials are missing, and only after an explicit confirmation

STEP C

Connect the webhooks

What 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:

✓Odoo accepts only events signed with the secret of the connection, taxpayer and mode they belong to.
✓Live events must arrive over HTTPS (run Odoo behind a TLS proxy with proxy mode).
Webhook URL to register in Wafeq ASP

▲ The webhook URL to register in Wafeq ASP

STEP D

Set the VAT categories and customer identifiers

What 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:

✓5 % taxes need no setting: they are sent as Standard (S).
✓The Peppol ID routes the e-invoice to the buyer. Without one, the VAT TRN or another identifier is used.
UAE E-Invoicing tab on a tax

▲ UAE e-invoicing VAT category on a tax

Wafeq ASP tab on a customer

▲ Buyer identification on the customer

THE WAFEQ ASP STATUS ON THE INVOICE

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.
RELIABILITY & SECURITY

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.

SEE EVERY CALL, WITH SECRETS MASKED

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.

Wafeq ASP API log

▲ API Log: every call to Wafeq ASP

API log entry

▲ One log entry with the sanitized response

Webhook events

▲ Webhook Events: each verified event and the invoice it updated

PRIVATE DETAILS BLURRED

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 from Odoo on Wafeq ASP

▲ Invoices submitted from Odoo (Sandbox)

Invoice detail on Wafeq ASP

▲ Totals, line items, audit trail and delivery timeline

Metadata and events on Wafeq ASP

▲ Odoo invoice and company in the metadata, with the document events

FAQ

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.

YOUTUBE

Watch the Demo Video

Watch the demo video
▶  WATCH ON YOUTUBE

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.com

Pricing, 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 2624
Technical Name E_Invoicing_UAE
LicenseLGPL-3
Websitehttps://www.inwizards.com/

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with