Sending Invoices to the Moodian System from Software: Steps and Buying Questions
Send sales invoices to the Moodian tax system without retyping: profile and certificate, unit codes, preview, sandbox and live sending, and tracking acceptance.
If you still enter a sales invoice once in your accounting software and again in the Moodian tax portal, you pay twice: the time is duplicated and the two figures can drift apart. The usual fix is to send the invoice to the Moodian system from the same software that recorded the sale. This article explains the steps and what to check before choosing software.
What does sending from software mean?
The Moodian system of Iran's National Tax Administration accepts invoices in a fixed format. Connecting software to it means the software converts a sales or sales-return invoice into that format, sends it, and tracks the result. The user records the invoice once.
Four setup steps
1. Taxpayer profile
Each company has one active profile. Its main items are:
- the taxpayer's economic code
- the unique tax memory identifier (from the Moodian portal)
- the certificate and private key
- the API address (test and live)
The private key should be stored encrypted and never shown again after saving. After saving, run a "test connection" so a wrong certificate or identifier produces an error right there.
2. Unit codes
The tax authority requires an official measurement-unit code on each invoice line. You enter the code once per unit (piece, kilogram, meter and so on). An invoice whose unit has no code should not be sent, and good software flags it as a gap before sending.
3. Preview
A preview sends nothing. It shows what would go out: totals, tax and gaps. A customer without an economic code or a unit without a code shows up here. The earlier gaps appear, the fewer invoices are rejected by the portal.
4. Sending and tracking
Sending should have two stages: a test environment (sandbox) first, then live sending. After sending, the status of each invoice (accepted, rejected or pending) should be trackable in the same software, with the reference number stored.
What to ask the vendor
| Question | Why it matters |
|---|---|
| Who can perform live sending? | Live sending has legal effect; ideally only a system administrator, with an extra check such as a one-time code |
| Is "preview only" the default? | It prevents accidental sending |
| Are sales returns supported? | Without it, correcting an invoice goes back to manual work |
| Are taxpayer and invoice inquiries available? | Needed before adding a buyer or when a dispute arises |
| How is a tax authority error displayed? | A clear message means a faster fix |
A simple example
A company issues about forty sales invoices a day. Until now each one was retyped into the portal after issuing. With a direct connection, the salesperson records the invoice, the preview shows two lines with no unit code, the codes are added, and after a clean preview the invoice is sent. At the end of the day the accountant looks at the list of rejected invoices and fixes only those.
Where this sits in the document chain
Sending to Moodian works best when the invoice comes from a proper chain: order, proforma, warehouse issue and invoice. If each step is typed separately by hand, errors reach the final invoice too. Read more in the article the document chain in ERP.
What Afrandeh does
In Afrandeh, the Moodian section (under the Accounting menu) provides the taxpayer profile and certificate, unit codes, inquiries, preview, sandbox sending and live sending, and tracks acceptance or rejection. Every profile starts in "preview only" mode, and live sending is done only by the system administrator with a one-time code. It is part of Afrandeh cloud accounting and works alongside sales and warehouse in one ERP system. The full list of areas is on the products page.
Summary
To send invoices from software, check the profile and certificate, unit codes, preview, the test stage and status tracking. To see this on your own invoices, request a demo.
Frequently asked questions
Do I need to enter the invoice in both the software and the Moodian portal?
No. When the software is connected to the Moodian system, the invoice is recorded once and sent and tracked from there.
Why is a sandbox stage needed?
Live sending has legal effect. In the test environment you can try a few invoices with no real effect before enabling live sending.
What happens to an invoice with a unit that has no code?
The tax authority requires a unit code on each line. An invoice whose unit has no code is flagged as a gap in the preview and is not sent.