How JomeInvoice matches buyers and suppliers

Last reviewed: 2026-11-02 · Last updated: 2026-11-02

Scope: How the matching identifiers and the Customer/Supplier Data Source setting decide whether a document from SFTP, Direct Upload or the API links to a saved Customer or Supplier, creates a new record, updates one, or stops for review.

Update: Rewritten for the Customer/Supplier Data Source setting, which replaced automatic registration.

Every time a document reaches JomeInvoice with buyer or supplier details on it, JomeInvoice answers two questions, in this order:

  1. Matching: is there already a saved Customer or Supplier for these details?
  2. What to do with the result: link the document to it, update it, create a new one, or stop for review.

Matching only searches. Your Customer/Supplier Data Source setting decides what happens next. Keeping the two steps apart is the fastest way to work out why a document did not link to the customer you expected.

Where this applies

Matching runs on documents that arrive through:

  • your SFTP feed
  • Direct Upload
  • the API, in either JomeInvoice or ClearTax format

It works the same way for Customers (the buyers on your sales documents) and Suppliers (the suppliers on your self-billed documents).

It does not run when:

  • you create an invoice in JomeInvoice, because you pick the saved customer yourself
  • a buyer requests an e-invoice through your request form
  • you add a customer or supplier by hand, invite one to self-onboard, or import a customer or supplier list

Suppliers on documents in the Purchases module follow their own rule. JomeInvoice creates or updates them from the details on MyInvois, whatever these settings say.

Two settings in Settings → Workspace Settings → General, under Other Settings, control the process:

  • SFTP & API Matching Identifiers decides which details are compared in step 1.
  • Customer/Supplier Data Source decides what happens in step 2.

Both apply to your whole workspace, to Customers and Suppliers alike, and to all three routes above.

Step 1: matching

A Customer Code always comes first

If a document carries a Customer Code (or supplier code), JomeInvoice matches on that code alone. It ignores the name, TIN and other details, whatever your matching identifiers say. A code belongs to only one record, so a code finds one record or none.

A code that finds no record does not fall back to the other details. A new or mistyped code is treated as a new customer, even if a record with the same name and TIN already exists. What happens then depends on your data source: under Follow Submission Data, or while the setting is not yet configured, a second record is created, and under Follow Jome Data the document fails. If a deleted record held that code, it is restored instead.

If your source system sends Customer Codes, keep them stable and make sure every record in JomeInvoice carries the same code. A code that changes in your source system creates duplicate records instead of updating the one you have.

Otherwise, the matching identifiers

If the document carries no code, JomeInvoice compares the identifiers selected under SFTP & API Matching Identifiers:

Identifier Notes
Name Always used, except in the code-only case below
TIN The buyer or supplier Tax Identification Number
Registration Number A business registration number, NRIC, or passport number
Registration Type Which kind of registration number is being used, such as BRN or NRIC

With Custom Matching off, which is the default and the recommended choice, JomeInvoice compares all four. Turn Custom Matching on only if you have a specific matching requirement, and check with JomeInvoice first.

Workspaces created before 23 October 2026 compare Name, TIN and Registration Number only, so their screen shows Custom Matching on. Turning it off and clicking Save Update switches them to the four standard identifiers.

Selecting Customer Code under Match Identifiers does not change how codes work: a code on a document is always used, as above. It has one effect. In a workspace on Follow Jome Data, it lets you switch Name off and match documents by code alone.

Every identifier you select and send has to match. A record that matches on name and TIN still fails to match if the document's registration number differs from the saved one.

If a document leaves a selected identifier out, or sends it blank, JomeInvoice leaves that detail out of the comparison and matches on the rest. This makes the search broader, not stricter, and it is the most common reason a document matches more than one record.

The practical rule: send every identifier you match on, on every document.

How values are compared:

  • Name and Customer Code ignore capital letters and spaces at either end.
  • Registration Type ignores capital letters.
  • TIN and Registration Number must match exactly, apart from spaces at either end. A saved value that differs by a space or a hyphen in the middle, or uses an older format, does not match.
  • Matching compares the values saved in JomeInvoice. It does not look the TIN up with LHDN at this point.
  • Records match whatever their status, including ones still waiting for the customer to complete onboarding.
  • A document with no name and no code cannot be matched at all.

There are three possible results: one match, no match, or more than one match. Step 2 decides what each one leads to.

Step 2: Customer/Supplier Data Source

The setting has two options, Follow Submission Data and Follow Jome Data. A workspace where nobody has chosen yet shows Not yet configured.

Follow Submission Data

Your source system is the master list. JomeInvoice keeps your saved records in line with what each document says.

When one record matches, it is updated from the document:

  • The name, address, SST number, and business email and phone are replaced with the document's values.
  • A new email address is added to the record's contacts. It does not replace the primary contact.
  • A detail the document sends blank or leaves out does not wipe the saved value.
  • A document that matched on its Customer Code can change only the code's capital letters.
  • The TIN and registration details are not overwritten when the record matched on them. If the record matched without comparing them, because it matched on its Customer Code or your matching identifiers leave them out, and the document carries a different TIN or registration number, the record takes the document's TIN and registration.

When nothing matches, a new record is created, already approved, provided the document carries every detail below:

Detail Notes
Name
TIN
Registration Number Registration Type is optional and defaults to BRN, so send it for any buyer that is not a company
Address line 1
City
State
Country Taken as Malaysia when left blank

Email and contact number are optional. If any required detail is missing, no record is created and the document fails with a message listing what is missing.

When more than one record matches a document with no code, the document does not fail for that reason. JomeInvoice looks for the one record with the same name, the same TIN and registration details, and no Customer Code, and uses that. If there is none, it creates a new record, which needs every detail in the table above. A document that matched several records because it left a detail blank usually fails here, with a message listing what is missing.

The document shows what was sent. The address, SST number, and business email and phone on the document, on its PDF, and in what is submitted to LHDN come only from what the document sent. A detail sent blank stays blank, even when your saved record has it. The name, TIN and registration details come from the record after it has been updated.

Send the full address, including state and country, on every document, even for customers you already have. If a document leaves the address out, JomeInvoice does not fill it in from the saved record. The document then fails at submission with a message such as buyer state code does not exist, even though the customer's saved record is complete.

Follow Jome Data

You maintain your customers and suppliers in JomeInvoice. Documents are matched against them and never change them.

  • One match: the document is linked to the record, and shows the record's saved details. The record is not changed.
  • No match: no record is created. The document fails, for you to add the customer or correct the document.
  • More than one match: the document fails, for you to review.

Not yet configured

The screen asks you to choose an option to enable matching, but matching already runs in this state. A workspace where nobody has chosen an option yet behaves like this:

  • One match: the document is linked to the record, which is not changed. The document shows the record's saved details.
  • No match: a new record is created when the document carries every detail listed under Follow Submission Data. Otherwise the document fails.
  • More than one match: the document fails, for you to review.

Choose one of the two options so the behaviour is deliberate, preferably before your first SFTP feed or API connection goes live.

This setting replaced Customer/Supplier Auto Registration on 23 October 2026. Workspaces that existed before then were moved across automatically:

  • Follow Submission Data, if automatic registration was on. This was the old default, so most existing workspaces are now on this option. They update matched records from each document instead of only creating new ones, and their documents carry the address they were sent with. If your feed does not send buyer addresses, read the warning under Follow Submission Data.
  • Follow Jome Data, if automatic registration was off.

Open the setting to check which option your workspace uses.

Documents keep their own copy of the buyer and supplier

Each document stores its own copy of the buyer and supplier details when it is received. Editing a customer or supplier record afterwards does not change documents you already have. The new details apply to documents received after the edit.

Consolidated e-invoices

A consolidated e-invoice never fails at this stage. If its buyer or supplier cannot be matched or created, it is issued to General Public instead, whichever option you use.

Outcome summary

Data Source One match No match More than one match
Follow Submission Data Linked; record updated from the document Record created if every required detail is present, otherwise Failed Linked to the exact record without a code, or a new record is created
Follow Jome Data Linked; record unchanged Failed Failed
Not yet configured Linked; record unchanged Record created if every required detail is present, otherwise Failed Failed

A document carrying a Customer Code can only find one record or none.

Messages you may see

A document that fails at this stage shows the status Failed, with the reason on the document. The word "buyer" reads "supplier" on self-billed documents.

Message What it means What to do
Missing buyer compulsory fields: … Nothing matched, and the document lacks a detail needed to create a record Add the listed details to your source data and send the document again
No buyer found matching … Nothing matched, and your workspace does not create records (Follow Jome Data) Add the customer in JomeInvoice, or correct the details or Customer Code on the document
Invalid registration type '…'. Expected one of: … The document's registration type is not one JomeInvoice recognises Send one of the listed types, such as BRN, NRIC or PASSPORT
Multiple buyers match … More than one saved record matches Remove or correct the duplicate records so only one matches. The message mentions buyer_uuid, which applies only to API documents
buyer state code does not exist (at submission) The document has no state or country, so JomeInvoice stops it before it reaches LHDN Send the full address on the document. See the warning under Follow Submission Data

For step-by-step fixes, see Fixing buyer not matched errors.

Choosing your setting

If this is true for you Choose
Your source system holds the master customer list, and its data is complete and reliable Follow Submission Data
You maintain customers and suppliers in JomeInvoice and want to approve every new one Follow Jome Data
You are rolling out a new feed and want to see problems before records are created or changed Follow Jome Data first, then review

For the identifiers, keep Custom Matching off unless you have a specific need. Send the same identifiers on every document, and if you use Customer Codes, keep them stable.

You can change both settings in Workspace Settings. Contact JomeInvoice if you want help choosing.