Counterparties — import from a file with the customer or supplier role
A café is moving from its previous accounting software and wants all its suppliers in at once — vegetables, dairy, drinks. The counterparty import uploads the list from a file and sets the “Supplier” role right away, without opening every card. The same import adds customers or “both” counterparties.
What you need#
- The Cenaly web panel, the Counterparties section and a selected location: cards are added to it.
- The right to work with this location’s counterparties — the server checks it when writing.
- A CSV, TSV or Excel file with one counterparty per row.
What the file should look like#
The first row holds headers in any interface language (the wizard also recognises export headers of other systems —
Vendor Name, Tax ID, Mobile…). Only the name column is required.
| Column | What it holds | Example |
|---|---|---|
| Type | person or company; empty — company if there is a tax number | company |
| Name | how it shows in the list | Nairobi Fresh Produce Ltd |
| Legal name | the company’s full legal name | |
| Country | two-letter code; empty — the location’s country | KE |
| Tax number | KRA PIN, TIN, NIF, etc. — checked against the country format | |
| Phone | +254712000001 | |
| orders@example.com | ||
| Role | customer, supplier or both | supplier |
The old format without a header row works too — type;name;country;tax number;phone;email: if no header in the
file is recognised, the columns are read in this order.
How to import#
- Open Counterparties, the More → Import menu (in an empty list — the Import button).
- In “Role for the whole file”, choose Suppliers, Customers, Customers and suppliers or Automatic.
- Click “Choose file” (an example — “Download template”).
- On the Columns step, check the mapping. For a file without headers the header row field shows “No header row — columns in the standard order”.
- On the Preview step each row shows its resulting role (“Role: Supplier — added to the current roles”) and errors, if any.
- Click “Import N rows”. Rows with errors are not written.
- The Report shows how many cards were created, how many got the role added, how many were skipped and failed; the report can be downloaded as CSV.
How the role is assigned#
- The “Role” column wins over the whole-file choice. A filled cell (“customer”, “supplier”, “both”, also
fournisseur,fornecedor,مورد,поставщик) sets the row’s role; an empty one takes the whole-file choice. - Automatic with an empty cell — no role is set and the card gets it as before: customer unless it is a supplier.
- The card already exists. A row matching a card by tax number, then phone, then email does not create a duplicate: the file role is added to that card. A customer you uploaded in a file of suppliers becomes “customer and supplier” — the customer role is not removed. The import never removes roles; to remove one, use the “🔁 Role” bulk action in the list.
- An unknown role (a typo like “suplier”) is a row error in the preview; such a row is not written.
How to check the result#
- Turn on the Suppliers filter in the list — the new cards are there.
- A card that was already a customer now has two roles.
- Failed rows are listed in the report with the file row number — fix the file and upload it again: cards already imported are found and not duplicated.
Limitations#
- A row without a tax number, phone or email is not recognised on a repeated import and is created again — the preview warns about it. Add at least one of these keys to the file.
- The import does not change the fields of a matching card (name, requisites, contacts) — it only adds the role.
- Only one requisite is read — the tax number, placed into the country’s main requisite; add the others in the card.
- If the country requires more requisites (for example, KPP in Russia), a company row without them gets an error.
- Up to 10,000 rows and 15 MB per file.
Troubleshooting#
- “Unknown role” — a typo or a custom word in the role column. Use “customer”, “supplier”, “both” or their translations; several roles — separated by commas.
- “Tax number does not match the country format” — check the number and the Country column: an empty country means the location’s country.
- “The card was merged into another one — role not added” — open the surviving card and set the role there.
- Columns mapped wrongly — for a file without headers, check that “No header row” is selected and the column order matches the standard one.
FAQ#
Will a supplier import remove the customer role from existing cards?#
No. The import only adds roles. To remove a role, select the cards in the list and choose “🔁 Role” → “− Customer”.
Can one file hold both customers and suppliers?#
Yes: fill in the Role column for every row. Rows with an empty cell get the role chosen for the whole file.
Does the old text I used to paste still work?#
Yes. Save it as a .csv or .txt file — type;name;country;tax number;phone;email rows without a header are read in
the column order.
Related sections#
- Counterparties — cards, roles, requisites and duplicates.
- Customer import — the location’s customer directory.