Skip to content

Guides · Jordan e-invoicing

What JoFotara's error messages mean and how to fix them

Look up the status, HTTP code or error message that Jordan's national e-invoicing API, JoFotara, sent back to your software. Each entry gives its meaning, what to check, the fix and whether to resend. Headings repeat each message exactly as ISTD's guide prints it, typos included, so your browser's find-in-page lands on it.

Why did JoFotara reject my invoice?

JoFotara rejects an invoice when it finds an error in the invoice data or in the integration setup. The response then carries NOT_SUBMITTED and names the reason in an error message. The most common rejection messages in ISTD's guide point to a grand total that does not match the line arithmetic, an invoice type that does not match the taxpayer's registration or a missing buyer name. Two lines sharing an ID, or a tax category that does not fit a zero rate, also cause rejections. An HTTP 403 or 500 points to the credentials, the registration or a tax rate the system does not accept. A 504 means the connection to JoFotara failed, so resend with the same ID and UUID.

Published and reviewed on

By BarmajTek

Checked by BarmajTek against version 1.5 of the technical integration guide, which Jordan's Income and Sales Tax Department (ISTD) issued with the date 12 May 2026. This is an educational reference by BarmajTek, not an ISTD document.

Change log

  • : Added a question on the buyer's tax number and a link to the national e-invoicing guide, checked against version 1.5 of ISTD's technical guide.
  • : Published this reference and its CSV, checked against version 1.5 of ISTD's technical guide on 4 November 2026.

Reading the response

Find the cause in three steps

  1. Check the HTTP status

    A 200 means JoFotara received and processed the request. For any other code, see the HTTP status codes section below.

  2. Check EINV_STATUS

    EINV_STATUS holds the invoice's final state: SUBMITTED, ALREADY_SUBMITTED or NOT_SUBMITTED. ISTD tells integrators to rely on this field, not on the HTTP status alone.

  3. Match the error message

    On NOT_SUBMITTED, read EINV_RESULTS.ERRORS[].EINV_MESSAGE and search for it on this page. Trim whitespace before you compare strings: in ISTD's own sample the message ends with a space and status reads " ERROR ". Match on a distinctive fragment rather than the whole string, so a changed full stop or capital letter does not break your lookup.

Error reference

Every status, code and message in ISTD's guide v1.5

Meanings come from pages 97 to 104 of ISTD's guide, and every string is quoted exactly as the guide prints it. What to check, how to fix it and who usually fixes it are our advice, built from the guide's own rules. Each entry lists its source pages.

The messages and codes in this reference, and who fixes each one
Message or codeWhere it appearsWho fixes itResend?
SUBMITTEDEINV_STATUSNobodyNo
ALREADY_SUBMITTEDEINV_STATUSNobodyNo
NOT_SUBMITTEDEINV_STATUSDepends on the messageAfter the fix, same ID and UUID
200HTTP statusNobodyNo, read EINV_STATUS
400 Bad RequestHTTP statusDepends on the messageAfter the fix
403 ForbiddenHTTP statusWhoever manages the integration settingsAfter fixing the keys
500 Internal Server ErrorHTTP statusAccount owner with the accountantAfter fixing the data
504 Gateway TimeoutHTTP statusNetwork administratorYes, same ID and UUID
Total General Amount is Not CorrectEINV_MESSAGEIntegration developerAfter the fix
This user is not authorized to submit this type of invoiceEINV_MESSAGEAccountant, then the integration developerAfter the fix
Bayer name is missingEINV_MESSAGEWhoever records the saleAfter the fix
The ID number must be uniqueEINV_MESSAGEIntegration developerAfter the fix
General tax percentage must be zeroEINV_MESSAGEAccountant, then the integration developerAfter the fix
BuyerTaxNumber: The buyer's taxpayer number is not associated with the developmental arearEINV_MESSAGEAccountant with the buyerAfter the fix
Postal code length is incorrectEINV_MESSAGEWhoever records the saleAfter the fix
Invalid Invoice MinificationEINV_MESSAGEIntegration developerAfter the fix
Complied with UBL 2.1 standardsINFONobodyNo

Invoice statuses in EINV_STATUS

Every response carries one of three values that decide the invoice's fate (pages 98 to 100).

SUBMITTED

Where it appears
EINV_STATUS.
What it means
JoFotara accepted the invoice (the guide's wording is "تم اعتماد الفاتورة بنجاح", "the invoice was approved successfully"). The response also returns the QR code in EINV_QR, the invoice number in EINV_NUM and its UUID in EINV_INV_UUID.
What to check
Make sure EINV_QR holds a QR code. ISTD treats it as part of a completed, accepted submission.
Fix
Nothing to fix. Store the invoice number, UUID, QR code and EINV_STATUS, and print the QR code on the seller's invoice, as the guide requires.
Resend?
No.
Who fixes it
Nobody
Source
guide pages 97, 98, 104

ALREADY_SUBMITTED

Where it appears
EINV_STATUS.
What it means
An invoice with the same ID and UUID reached JoFotara before, so the response returns the QR code of that earlier submission. The guide calls it an invoice "approved previously".
What to check
You get this when your software resends an invoice that JoFotara accepted on an earlier attempt, typically after the connection dropped before the first response arrived.
Fix
Treat it as accepted and store the returned QR code against the invoice you already hold. ISTD describes this status as the way to recover a QR code you failed to store the first time.
Resend?
No need.
Who fixes it
Nobody
Source
guide pages 99

NOT_SUBMITTED

Where it appears
EINV_STATUS.
What it means
JoFotara did not accept the invoice because of an error. The HTTP status is not 200, and EINV_QR, EINV_NUM, EINV_INV_UUID and EINV_SINGED_INVOICE are null. (ISTD spells the signed-invoice field that way.)
What to check
Open EINV_RESULTS.ERRORS. Each item has EINV_CODE, EINV_CATEGORY and EINV_MESSAGE; look the message up below. Two traps in the guide: the rejected-invoice sample on page 100 sits under a heading that says ALREADY_SUBMITTED by mistake, and its status value is padded with spaces (" ERROR ").
Fix
Fix the cause at the source record, then rebuild the invoice from that record instead of editing the XML by hand.
Resend?
Yes, after the fix, with the same ID and UUID, following ISTD's rule for resending after a failed send (guideline 3, page 104). Do not resend automatically before the fix: the problem is in the data, not the connection. For that reason our own module never resends a rejected invoice by itself.
Who fixes it
Depends on the message
Source
guide pages 100, 104

HTTP status codes

The HTTP status tells you how the call itself went. ISTD lists the common values on page 101.

200

Where it appears
HTTP status.
What it means
JoFotara received the request and processed it technically.
What to check
Read EINV_STATUS to learn whether the invoice was accepted; ISTD says not to rely on the status code alone.
Fix
Nothing to fix.
Resend?
No.
Who fixes it
Nobody
Source
guide pages 97, 104

400 Bad Request

Where it appears
HTTP status, with the reason in EINV_MESSAGE.
What it means
One of the values in the invoice XML is wrong; EINV_MESSAGE in the response says which.
What to check
Look up the EINV_MESSAGE text in the error messages section below. ISTD recommends checking totals, taxes, the taxpayer number, the buyer number and mandatory fields before sending, to cut down on these errors.
Fix
Correct the field the message names, at its source.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Depends on the message
Source
guide pages 101, 104

403 Forbidden

Where it appears
HTTP status.
What it means
The Client ID or the Secret Key is wrong.
What to check
Compare both values in your configuration with what the portal's device-linking screen issued, and confirm you send them as the two request headers Client-Id and Secret-Key, as in ISTD's example.
Fix
Copy both values again from the device-linking screen and keep them in configuration outside the codebase. ISTD forbids storing them in plain text in the code and makes the taxpayer responsible for keeping them secret.
Resend?
Yes, once the values are corrected, with the same ID and UUID. Resending with the same wrong values returns the same error.
Who fixes it
Whoever manages the integration settings
Source
guide pages 8, 10, 96, 101, 104

500 Internal Server Error

Where it appears
HTTP status.
What it means
Usually a wrong tax number or income source sequence, less often a wrong Client ID or Secret Key. It can also mean the XML carries a tax rate ISTD has not approved.
What to check
Check, in this order: the seller's tax number in the seller block, the income source sequence, the tax rate on every line, then the Client ID and Secret Key. The income source sequence is the number of the business activity that issues the invoice; the account owner picks it when linking the device. The guide's rates are 0, 1, 2, 3, 4, 5, 7, 8, 10 and 16 percent.
Fix
Correct whichever value does not match the business's registration with ISTD, after the account owner checks it with the accountant.
Resend?
Yes, after the correction, with the same ID and UUID.
Who fixes it
Account owner with the accountant
Source
guide pages 7, 18, 42, 101

504 Gateway Timeout

Where it appears
HTTP status. ISTD's guide prints it as Timout Getway : 504.
What it means
The request could not reach the national invoicing site, because of either the taxpayer's firewall or the invoicing site itself.
What to check
Confirm the server that sends invoices can reach backend.jofotara.gov.jo over HTTPS and that no firewall rule blocks it.
Fix
If the block is on your side, allow outbound HTTPS to that host. If not, wait and retry.
Resend?
Yes, with the same ID and UUID, without generating a new UUID, as ISTD requires. If the first attempt did arrive, you get ALREADY_SUBMITTED with the QR code.
Who fixes it
Network administrator
Source
guide pages 96, 99, 101, 104

Error messages in EINV_MESSAGE

ISTD lists these as the most common messages that come with a 400 (pages 101 and 102). Each heading is the exact string, so ISTD's typos stay: Bayer for Buyer, arear for area.

Total General Amount is Not Correct

Where it appears
EINV_MESSAGE in ERRORS. In ISTD's sample its EINV_CODE is totalGeneralTaxesAmount and its category invoice.
What it means
The calculation of the invoice's grand total is wrong. The error can start in one of the sub-calculations.
What to check
Recompute with the guide's formulas. Line amount = quantity × unit price − line discount. Line tax = line amount × rate. Line total including tax (RoundingAmount) = line amount + line tax. In the header, TaxExclusiveAmount = Σ(quantity × unit price), AllowanceTotalAmount = Σ line discounts, TaxInclusiveAmount and PayableAmount = Σ RoundingAmount, and on a general sales invoice the header TaxAmount = Σ line tax. JoFotara does not accept an invoice-level discount, so spread it over the lines before sending, and send discounts as positive values. Rounding to 3 decimals (up to 9) is allowed as long as the difference stays within 0.001. Special sales invoices add the special tax to these formulas, from page 64.
Fix
Compute the totals in your own code with these formulas before sending, instead of copying them from a screen that discounted the total.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Integration developer
Source
guide pages 18, 19, 39, 40, 42, 64, 100, 101

This user is not authorized to submit this type of invoice

Where it appears
EINV_MESSAGE in ERRORS.
What it means
The taxpayer is sending an invoice type that does not fit their tax number or income source sequence, for example an income invoice from a seller registered for general sales tax, or the reverse.
What to check
Look at the last digit of the three-digit code in the name attribute of InvoiceTypeCode: 1 is an income invoice, 2 a general sales invoice, 3 a special sales invoice. Then compare it with the registration: businesses not registered for sales tax issue income invoices, registered ones issue sales invoices, and those registered for special sales tax issue special sales invoices.
Fix
The accountant confirms the business's registration; the developer sets the last digit to match and checks the income source sequence being sent.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Accountant, then the integration developer
Source
guide pages 10, 12, 33, 58, 101

Bayer name is missing

Where it appears
EINV_MESSAGE in ERRORS. "Bayer" is ISTD's spelling.
What it means
The buyer's name is missing. It is required on a credit invoice, and on a cash invoice above 10,000 JOD or the equivalent in a foreign currency.
What to check
Check RegistrationName in the buyer block (AccountingCustomerParty), and the middle digit of the invoice type code, where 2 means a credit invoice.
Fix
Complete the buyer's name on the customer record, and make your software require it before sending in those two cases.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Whoever records the sale
Source
guide pages 12, 16, 101

The ID number must be unique

Where it appears
EINV_MESSAGE in ERRORS.
What it means
Two or more goods or services on the invoice share an ID (ISTD's example: the first line has ID 1 and so does the second), so the invoice is not issued. A line ID must be unique within the invoice.
What to check
Check the cbc:ID values of the InvoiceLine elements.
Fix
Number the lines 1, 2, 3 in order and store each line's ID with the invoice. ISTD asks you to keep it, because a return invoice matches returned items to the original by that ID.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Integration developer
Source
guide pages 101, 104

General tax percentage must be zero

Where it appears
EINV_MESSAGE in ERRORS.
What it means
A line has a 0% rate with tax category S. The guide requires category O with it.
What to check
The table on page 42 defines three categories: S for goods or services taxed at any rate other than zero, O for zero-rated items and Z for exempt items. On export, development area, transit, foreign trade and free-zone transfer invoices, ISTD requires 0% and category O on every line.
Fix
The accountant decides whether the line is zero-rated or exempt, and the developer sends O or Z accordingly. On export, development area, transit, foreign trade and free-zone transfer invoices, set every line to 0% with category O.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Accountant, then the integration developer
Source
guide pages 42, 102

BuyerTaxNumber: The buyer's taxpayer number is not associated with the developmental arear

Where it appears
EINV_MESSAGE in ERRORS. "arear" is ISTD's spelling.
What it means
On a development area invoice the buyer's tax number is mandatory. The buyer must be registered in the development areas and hold a valid exemption letter entered in ISTD's financial system.
What to check
Development area invoices have 2 as the first digit of the invoice type code. Confirm the buyer's number is sent in PartyIdentification with schemeID="TN".
Fix
Before issuing the invoice, confirm with the buyer that they are registered in the development areas and that their exemption letter is valid. If they are not, ask the accountant which invoice type applies.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Accountant with the buyer
Source
guide pages 12, 16, 33, 58, 102

Postal code length is incorrect

Where it appears
EINV_MESSAGE in ERRORS.
What it means
The postal code in the XML has the wrong length. The maximum is 5 digits.
What to check
Check PostalZone in the buyer's address. ISTD's template marks it as optional.
Fix
Send a postal code of 5 digits or fewer, or leave the field out if you do not know it.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Whoever records the sale
Source
guide pages 16, 17, 102

Invalid Invoice Minification

Where it appears
EINV_MESSAGE in ERRORS.
What it means
The first tag in the XML is malformed or spread over more than one line. It must sit on a single line, with spaces between its parts.
What to check
Open the file and look at the opening <Invoice> tag with its four namespace declarations (Invoice-2, cac, cbc and ext).
Fix
Write the whole opening tag on one line. If your XML serializer pretty-prints across lines, turn that off for this tag.
Resend?
Yes, after the fix, with the same ID and UUID.
Who fixes it
Integration developer
Source
guide pages 10, 102

The information message in INFO

JoFotara also returns a message in the INFO list that signals neither acceptance nor rejection (pages 98 to 100).

Complied with UBL 2.1 standards

Where it appears
EINV_MESSAGE in INFO, with EINV_CODE XSD_VALID and category XSD validation.
What it means
The invoice file's structure complies with UBL 2.1. ISTD's samples show this message in both the accepted and the rejected response, so it does not mean the invoice was accepted.
What to check
Read EINV_STATUS for the outcome.
Fix
Nothing to fix.
Resend?
No.
Who fixes it
Nobody
Source
guide pages 98, 99, 100

Download

The error table as CSV

The seventeen messages and codes on this page are also available as one UTF-8 CSV file. Load it into your software or map your own error handling to it. Each row has the exact string, its meaning, what to check and the fix in Arabic and English, the guide pages and a link to its entry here. The file's modified date changes only when its rows change.

Download the JoFotara error table (CSV)

Columns
idThe entry's anchor on this page, stable for good
code_or_stringThe exact string the guide prints, typos kept and trailing spaces trimmed
kindOne of einv_status, http_status, einv_message or einv_info
http_statusThe HTTP status where the guide ties one to the entry, otherwise empty
einv_codeOnly where the guide prints it, otherwise empty
einv_categoryOnly where the guide prints it, otherwise empty
meaning_ar, meaning_enWhat the entry means, in Arabic and in English
check_ar, check_enWhat to check, in Arabic and in English
fix_ar, fix_enThe fix, in Arabic and in English
resend_ar, resend_enWhether to resend, in Arabic and in English
fixed_by_ar, fixed_by_enWho usually fixes it, in Arabic and in English
guide_pagesPrinted page numbers of guide v1.5, separated by semicolons
guide_versionThe guide version, 1.5
checked_onThe date we checked the entry against the guide
url_ar, url_enThe link to the entry on the Arabic and on the English page

All rights reserved by BarmajTek. You may link to the file.

How to cite the table:BarmajTek. JoFotara error table (Jordan national e-invoicing), checked against ISTD's technical guide v1.5 on 4 November 2026. https://barmajtek.com/en/guides/jofotara/errors

A message you cannot find here

Pages 101 and 102 of ISTD's guide list "the most common" errors, not everything JoFotara can return, and the guide gives no example of a WARNINGS entry. If you get another message, log the full response with its code and category, and show staff a short reason, as ISTD recommends. Then ask ISTD's technical support committee for invoicing through istd.gov.jo (opens in a new tab), which is where the guide sends questions. You can also send us the message text (opens in a new tab), with your customers' data removed.

Check the invoice before you send it

Your software can catch most errors above before it calls JoFotara. ISTD recommends checking totals, taxes, taxpayer and buyer numbers and mandatory fields before sending. Here are the checks we recommend. The JoFotara module we built on guide v1.5 runs most of them before any network call and gives each failure an Arabic and English message. It also builds the totals and the opening tag by the guide's own rules:

  1. The invoice ID and UUID are present, and the UUID was generated once and stored before the first attempt.
  2. The issue date is in yyyy-mm-dd format.
  3. The seller's tax number and income source sequence are present.
  4. The last digit of the invoice type code is built from the invoice type the accountant confirms for the business's registration.
  5. The buyer's name is present on credit invoices and on cash invoices above 10,000 JOD.
  6. The buyer's tax number is present, with scheme TN, on development area invoices.
  7. Every line has an ID unique within the invoice, a quantity above zero, and a positive discount no larger than the line amount.
  8. Every tax rate is one of the guide's ten rates, every 0% line has category O or Z, and every line on an export, development area, transit, foreign trade or free-zone transfer invoice is 0% with category O.
  9. Totals follow the guide's formulas, and any discount is spread over the lines.
  10. The postal code has 5 digits or fewer.
  11. A return invoice references the original invoice and states a reason.
  12. The opening XML tag is on one line.

Building for a Jordanian client from abroad

The rules on this page apply to every system that submits to JoFotara, wherever its developer sits. The Client ID and Secret Key come from your client's own JoFotara account, after the client links a device. Agree with your client how you will use them for test runs before you start. ISTD's guide v1.5 publishes one submission address, https://backend.jofotara.gov.jo/core/invoices/, and no separate test address.

What this reference does not do

This is an educational reference. It does not replace ISTD's guide or an answer from ISTD, and where they differ, ISTD is right. It is built from the guide, not from a log of our own rejected invoices. It is not tax advice either: your accountant or ISTD decides which invoice type fits your business and which rates apply to what you sell. We review this page when ISTD issues a new version of the guide and record each review in the change log. For the full checklist, read what to prepare before you connect: a checklist.

ISTD's technical guide (version 1.5) makes it mandatory on a development-zones invoice, where it is sent with type TN (p. 16). The guide requires the buyer to be registered in the development zones and to hold a valid exemption letter entered on ISTD's financial system (p. 102). The guide makes the buyer's name mandatory on a receivables invoice and on a cash invoice worth more than 10,000 dinars or the equivalent in foreign currencies (pp. 16 and 101). For other invoice types, check the field table for your invoice type in the guide, and ask your accountant.

Get an integration that shows why an invoice was rejected and resends with the same ID and UUID

If your system stalls on every rejection, we build it a JoFotara connection that checks each invoice before sending and keeps the full response. The first conversation is free, and the quote comes in writing before any work starts.

The message ends with a short code that shows the page where your visit started and how you reached it. It carries nothing about who you are, and you can delete it before sending.