User guide

Import business documents (JSON)

Quotes, invoices, notes, credit notes and purchases from a JSON file: mapping, conditions and rules, links, total checks.

The business document import brings in your quotes, orders, delivery notes, invoices, credit notes and purchase documents from a JSON file — another software's export, as is, with its nested data: the customer inside the document, lines in an array, taxes as objects.

Like the record import, it checks everything before writing: each document is read, linked to your records (customers, suppliers, items, taxes) and recomputed with your calculation rules. Nothing is created until you approve the check.

Opening the wizard

From the Data import page, choose Business documents (JSON) 1. The Import button of the Sales and Purchasing lists also leads straight there.

The import page offers business documents below the records.

  1. 1Business documents (JSON) import

Step 1 — Choose the document type

The six steps of the import, then the document types.

  1. 1The steps: type, file, mapping, links, check, result
  2. 2Sales documents
  3. 3Purchase documents

Click the type of document to create: Quote, Sales order, Delivery note, Invoice or Credit note on the sales side 2; Purchase order, Goods receipt or Purchase invoice on the purchasing side 3. Only the types you are allowed to create are shown.

Step 2 — Drop the file

The file is read in the browser.

  1. 1Drop zone
  2. 2File read and number of documents
  3. 3First record, to spot the field names
  1. Click the zone 1 or drop your file onto it: 25 MB and 20,000 documents at most.
  2. The file can be an array of documents, an object holding one ({ "data": [ … ] }) — then pick the array in the list that appears — or a JSON Lines file (one document per line).
  3. Check the number of documents read 2, and open Show the first record 3: it is your reminder of the field names for the next step.

Step 3 — The mapping

QuoSuite walks through the file, recognises nested objects and arrays, and suggests a mapping for each document attribute. Review and correct it tab by tab 1.

Document tab: each attribute, its source in the file, a default value, and the resulting sample.

  1. 1The mapping tabs
  2. 2Source in the file, with a sample value
  3. 3Default value, when the file says nothing
  4. 4Value obtained on the first record
  5. 5Attribute filled in automatically when left empty

For each attribute:

  • the source 2 is a field of the file, picked in the list (each path is followed by a sample value);
  • + fallback adds another source, tried when the first one is empty: quantity, then nb_days;
  • Expression… accepts a free path or a template;
  • the default value 3 is used when no source gives anything;
  • the sample 4 immediately shows what the mapping gives on the first record.

Attributes marked automatic 5 — number, date, currency, exchange rate, quantity, VAT — are filled in by the application when left empty: next number in the series, today's date, your workspace currency…

Writing a path

SyntaxWhat it reads
customer.company_nameA nested attribute
items[0].descriptionThe first element of an array
$.main_tax.rate_percentageFrom a line, a value of the document
{customer.first_name} {customer.last_name}A template: several fields put together

A template whose fields are all empty counts as empty: placed as a fallback behind the company name, it gives individuals their name without producing a name made of spaces.

Partner tab

Each document's customer (or supplier): matching, creation, default partner.

  1. 1Matching keys, in order
  2. 2What to do with an unknown partner
  3. 3Default partner
  4. 4Name: company name, otherwise first and last name
  1. The matching keys 1 — code, tax ID, email, phone, name — are tried in order: the first one that finds an existing record wins. The arrows change the order.
  2. For an unknown partner 2: create the record (once, even if it appears on a hundred documents), reject the document, or attach it to the default partner 3.
  3. Partner attributes are only used to recognise or create it: an existing record is never modified. Here the name 4 combines the company name and, as a fallback, the first and last name.

Lines tab

The lines: their array, item recognition, and their attributes.

  1. 1Array holding the lines
  2. 2Item recognition
  3. 3Description
  4. 4Quantity
  1. Point to the lines array 1 — or one line taken from the document for a flat file.
  2. Items 2 are recognised by reference, barcode or description. A recognised item brings its description, price and VAT when the file does not give them; an unknown item gives a free-text line, or rejects the document if you choose so.
  3. Paths are relative to the line 3 4; $. goes back to the document.

Taxes tab

Footer taxes (stamp duty, FODEC…): read from the file or taken from the catalog.

  1. 1How taxes are brought in
  2. 2Where the taxes are in the file

Choose how footer taxes are brought in 1:

  • Read from the file: say where they are 2 — an object (stamp_duty), an array (taxes[]) or a value — with their label and rate; each one is linked to a tax of your catalog in the next step. A zero amount skips the tax;
  • Catalog defaults: those the catalog applies automatically to this document type;
  • Chosen list: the same taxes on every document;
  • None.

VAT itself is read line by line (Lines tab).

Conditions: transform a value

Every attribute has a Conditions button 1: "if … then send …". It is the tool for data that does not speak QuoSuite's language — statuses as codes 0, 1, 2, a paid that implies a payment, a unit written differently.

The old software's statuses are codes: each code gets its status.

  1. 1The attribute's conditions (4 rules)
  2. 2Condition: the value read equals 0
  3. 3Then: send "Draft"
  4. 4Number of documents affected
  5. 5Otherwise: the value read is kept
  • A condition 2 compares a field with a value: equals, does not equal, is one of (3, 4), contains, starts with, ends with, greater / less than, is empty… Left without a field, it tests the value read by the attribute; with a field, any other data of the file ("if payment_status equals paid").
  • Several conditions combine: all, or at least one.
  • Then 3 sends a value — picked from the list for a status or a unit, so you never send a value the application would refuse — or reads another path.
  • The first matching rule wins; with no match, the value read is kept 5.
  • Each rule shows how many records of the file it affects 4: a badly written condition shows up straight away ("0 / 6").

Comparisons are forgiving: two numbers compare as numbers (1 = 1.0), text ignores case, accents and extra spaces.

Rules tab: stop what does not fit

An invoice slipped among the quotes is skipped; so is a line given away at 0.

  1. 1Condition of the document rule
  2. 2Then: skip, with a message
  3. 3Documents affected
  4. 4Line rule

Document rules are evaluated on every record before anything is read; line rules 4, on every line. Each one, when its conditions 1 are met, can 2:

ActionEffect
SkipThe document (or line) is not imported, without counting as an error
BlockThe document becomes an error, with your message
FlagThe document can still be imported, with a warning

A document whose lines are all skipped is blocked: it would be empty.

Options tab, and mapping profiles

Import options, and saved mapping profiles.

  1. 1Number already in use
  2. 2Reading dd/mm or mm/dd dates
  3. 3Save, export or import a profile
  4. 4Saved profiles
  • Number already in use 1: the document is flagged as a duplicate and, if you import it anyway, takes the next number in the series — or it is rejected.
  • Reading dates 2: 03/04/2026 reads as 3 April or 4 March. ISO dates (2026-04-03) and timestamps are understood automatically.
  • Allowed total gap, and customer pricing (negotiated discounts are added to the file prices — unchecked by default to bring documents in as they are).

A profile 3 saves the whole mapping — sources, conditions, rules, options. With the next export from the same software, click its name 4: everything is replayed. Export turns it into a file to share; Import a profile loads it back.

File values, linked to application values.

  1. 1Legal nature: "Société" and "Particulier"
  2. 2File tax → catalog tax

Each value found in the file, after conditions, is linked to an application value — with a suggestion to review: "Société" → company 1, "Timbre fiscal" → the stamp duty of your catalog 2. Values that are already understood do not appear. Ignored drops a value; Do not apply drops a tax.

Step 5 — The check

Click Check documents: each document is read by the server, linked to your records and recomputed.

Six documents checked: five ready, one skipped by a rule, one total that does not add up.

  1. 1Summary: ready, warnings, duplicates, errors, skipped, partners matched and to create
  2. 2Selection of the documents to import
  3. 3Filters by state
  4. 4Document skipped by a rule
  5. 5Recomputed total differs from the file's

The summary 1 sorts every document:

StateMeaning
ReadyWill be created
DuplicateIts number already exists, or appears earlier in the file — unchecked by default
ErrorCannot be imported: the last column says why
SkippedStopped by a rule 4 — neither imported nor an error

For each document, the Partner column says whether it is matched (and by which key), to create or default. Totals are those the document will have once created: a gap with the file total 5 is flagged — undetailed discount, missing tax, quantity linked to the wrong field.

The buttons 2 select everything, only ready documents, or nothing; filters 3 isolate a state. CSV downloads the full check.

A document's detail: its lines, taxes, recomputed totals and file totals.

  1. 1A line, as it will be created
  2. 2Footer tax
  3. 3Recomputed totals
  4. 4File totals

Click a document's number to expand it: lines 1, taxes 2, recomputed totals 3 and file totals 4 side by side.

Step 6 — The report

Click Import N document(s). Missing partners are created once each, then every document, in file order, with the numbering, taxes and history of a document entered by hand.

Five quotes created, and two new customers.

  1. 1Documents and partners created
  2. 2Created documents, each one can be opened
  3. 3View the list

The report 1 gives the documents and partners created, and details failures. Each number 2 opens the document; View the list 3 opens the list of the imported type; Report (CSV) downloads it.