Skip to main content
This sync creates the sales and purchase invoices of an invoicing software in the accounting software, with their attachments and their third parties.
Data flow: the invoicing software sends invoices, credit notes, attachments and third parties to the Chift invoices sync. The sync runs every night, after a safety delay. It creates the invoices with their attachment, and the customers and suppliers, in the accounting software.

The invoices sync reads invoices from the invoicing software and creates them in the accounting software.

Default scope

The sync replaces the manual entry of invoices in accounting.
This is the default scope. Based on your requirements, it can be modified.

What the sync creates

Each invoice or credit note of the invoicing software becomes one invoice in the accounting software.
A posted sales invoice INV-2026-042 for Acme SRL with two lines at VAT 21% (Consulting 1,000.00 and Licence 200.00), a discount of 100.00, VAT of 231.00 and a total of 1,331.00. The sync creates a draft invoice in accounting: sales journal, third party matched or created, Consulting and Licence on account 706 with the VAT code 21%, the discount on account 709, the PDF of the invoice as attachment, and the same total of 1,331.00.

Example of a sales invoice and the invoice that the sync creates in accounting.

  • Accounts: the sync uses the account of each invoice line when it exists in accounting. Otherwise, it uses the default account of the mapping.
  • VAT: the sync uses the VAT code mapped to the VAT rate of each line.
  • Discounts: the sync posts discounts on a specific account when you enable the discounts mapping. Otherwise, it deducts them from the account of the line.
  • Rounding: when the sum of the lines differs from the invoice total, the sync adds a rounding line.
  • Journal entry: when the accounting software cannot take the document as an invoice, the sync creates a journal entry instead.
The amounts and the accounts are an example. The accounts come from your mappings.

When an invoice is imported

The sync imports an invoice when it is final and older than the delay.
Each invoice goes through five steps: read the posted or paid invoices, check the amounts, the VAT and the partner, match or create the third party, convert the accounts, the VAT and the journal, then create the invoice and its PDF in accounting. An invoice that is a draft, too recent or already synced is skipped. An invoice in error is logged and retried at the next run.

How the sync processes each invoice.

  • Date: the sync imports the invoices dated from the start date, and older than the delay (7 days by default).
  • Status: the sync imports posted and paid invoices only.
  • Checks: the invoice must have a customer or a supplier, its totals must match its lines, and each line must have a VAT rate.
  • Already synced: the sync never imports the same invoice twice.
  • Zero invoices: the sync skips an invoice without any amount when the accounting software does not accept it.
  • Errors: an error on one invoice does not stop the other invoices. The sync retries the invoice at the next run.

How third parties are matched

The sync links each customer and supplier of the invoicing software to a third party in accounting.
Step 1, already linked: the sync linked this third party during a previous run and reuses the link. Step 2, match: an active third party in accounting matches on the account number, the external reference, the company number, the VAT number or the name, in this order. Step 3, create: without a match, the sync creates the customer or the supplier in accounting and stores the new link for the next invoices.

The three steps to find the third party of an invoice in accounting.

The sync compares the criteria in the order of the visual, and the first match wins. It compares VAT numbers and company numbers without dots, spaces and case.

Configuration

You configure three things before the sync runs: the scope, the mappings and the settings.
Three cards. Scope: invoices (sales, purchases or both), bank transactions (off by default), analytic accounting (off by default), creation of missing accounts (off by default) and payment status (no by default, or all invoices, sales only, purchases only). Mappings: sales VAT codes, purchase VAT codes, rounding VAT codes, journals, default accounts, discounts (optional), analytic plan (analytics), bank journals and bank accounts (bank transactions). Settings: start date, delay, draft entries, invoices without attachment and entry labels.

The sync configuration: the scope, then the mappings, then the settings.

These are the default mappings. Based on your requirements, they can be modified.

Scope

The scope defines what the sync handles. You answer five questions. The configuration then shows only the mappings and the settings that your answers need.
Select the invoices to synchronize: sales and purchases (default), sales only, or purchases only. Credit notes follow their invoice type.
Select whether the sync also imports the bank transactions of the invoicing software. The default is no.When you enable it, the sync creates a journal entry for each bank transaction and matches it with its invoices in accounting. It adds the bank journals and bank accounts mappings, and two settings.
Select whether the sync sends the analytic data of the invoice lines. The default is no.When you enable it, the configuration adds the analytic plan mapping and one setting.
Select what the sync does when the account of an invoice line does not exist in accounting:
  • Use a default account (default): the sync uses the default sales or purchase account of the mapping.
  • Create the account: the sync creates the missing account in the accounting software.
Select whether the sync updates the payment status of the synced invoices in the invoicing software. The default is no.You can enable it for all synced invoices, for sales invoices only, or for purchase invoices only.

Mappings

A mapping links a value from the invoicing software, or a fixed value, to a VAT code, a journal or an account in the accounting software. The sync uses these values to build the invoices.
Sales VAT codes: each VAT rate to a VAT code, shown when sales are in scope. Purchase VAT codes: each VAT rate to a VAT code, shown when purchases are in scope. Rounding VAT codes: two fixed values to VAT codes at 0%, always shown. Journals: document types to journals, always shown. Default accounts: nine fixed values to class 4, 6 and 7 accounts, always shown. Discounts: two fixed values to class 6 and 7 accounts, optional. Analytic plan: one fixed value to an analytic plan, shown when analytic accounting is on. Bank journals: each bank account to a journal, and bank accounts: each bank account to a class 5 account, both shown when bank transactions are on.

The nine mappings of the sync, and when the configuration shows each one.

Select the accounting VAT code for each sales VAT rate of the invoicing software.This mapping is shown when the scope includes sales.API calls to reproduce this mapping: Retrieve all taxes (invoicing), Get vat codes (accounting)
Select the accounting VAT code for each purchase VAT rate of the invoicing software.This mapping is shown when the scope includes purchases.API calls to reproduce this mapping: Retrieve all taxes (invoicing), Get vat codes (accounting)
Select the VAT code of the rounding line: one for sales invoices, one for purchase invoices. The list shows the VAT codes at 0%.This mapping is always shown. It shows only the invoice types of your scope.API calls to reproduce this mapping: Get vat codes
Select the accounting journal for each document type: sales invoices, sales credit notes, purchase invoices and purchase credit notes. This mapping is always shown.You can also map each journal of the invoicing software to an accounting journal. Each invoice must then have a journal in the invoicing software. Do not use this option when one journal holds invoices and credit notes with different number sequences.API calls to reproduce this mapping: Get journals
Select the accounts that the sync uses when it has no more specific account. This mapping is always shown.
  • Default sales account and default purchase account: used when an invoice line has no account, or when its account does not exist or is not active in accounting.
  • Customer collective account (for example 411) and supplier collective account (for example 401).
  • Credit rounding account (for example 758) and debit rounding account (for example 658): used for the rounding line.
  • Default payable VAT account and default deductible VAT account.
  • Suspense account: used for the bank transactions without a linked document.
API calls to reproduce this mapping: Get chart of accounts (filter on class 4, 6 and 7 accounts)
Select the account for the discounts on sales (for example 709) and on purchases (for example 609).This mapping is optional. You enable it with a question in the configuration. Without it, the sync deducts each discount from the account of its line.API calls to reproduce this mapping: Get chart of accounts (filter on class 6 and 7 accounts)
Select the default analytic plan for the invoices. You also choose whether the sync creates the missing analytic accounts in accounting.This mapping is shown when analytic accounting is in scope.API calls to reproduce this mapping: Get analytic plans
Select the accounting journal for each bank account of the invoicing software.This mapping is shown when bank transactions are in scope.API calls to reproduce this mapping: Retrieve all Bank Accounts (invoicing), Get journals (accounting)
Select the accounting account for each bank account of the invoicing software.This mapping is shown when bank transactions are in scope.API calls to reproduce this mapping: Retrieve all Bank Accounts (invoicing), Get chart of accounts (filter on class 5 accounts)

When a value is not mapped

An invoice can use an account, a VAT rate or a journal that the sync cannot resolve. The sync then uses a fallback when one exists.
Ledger account: if found, the sync uses the account of the invoice line. If not found, it uses the default account or creates the account. With no fallback, it fails with ERROR_SYNC_INVOICE_ACCOUNT_NUMBER_NOT_FOUND. VAT rate: if mapped, the sync uses the VAT code of the rate. If not mapped, it fails with ERROR_SYNC_INVOICE_MAPPING_TAX_RATE_NOT_FOUND. Journal: if mapped, the sync uses the mapped journal. If not mapped, it fails with ERROR_SYNC_INVOICE_MAPPING_JOURNAL_NOT_FOUND.

What the sync does when it cannot resolve a ledger account, a VAT rate or a journal.

When the account of an invoice line does not exist or is not active in accounting, the sync uses the default sales or purchase account. If you selected “Create the account” in the scope, it creates the missing account instead.If the default account does not exist or is not active either, the sync fails with ERROR_SYNC_INVOICE_ACCOUNT_NUMBER_NOT_FOUND or ERROR_SYNC_INVOICE_ACCOUNT_NUMBER_NOT_ACTIVE. Correct the account in the invoicing software, or the default accounts mapping.
A VAT rate has no fallback. When a rate is not mapped, the sync fails with ERROR_SYNC_INVOICE_MAPPING_TAX_RATE_NOT_FOUND.Map the rate in the sales or purchase VAT codes mapping.
A journal has no fallback. When the journal of an invoice is not mapped, the sync fails with ERROR_SYNC_INVOICE_MAPPING_JOURNAL_NOT_FOUND.Map the journal in the journals mapping.

Settings

The settings define the first invoices to import, when an invoice is imported and how the sync creates it.
Start date: required, up to 6 months in the past. Delay: 7 days by default. Draft entries: yes by default. Invoices without attachment: no by default. Entry labels: four options, with the third-party name on the header line by default.

The five main settings of the sync and their default values.

The first invoice date that the sync imports. This setting is required.You can select a date up to 6 months in the past. The sync never reads invoices older than 12 months.
The number of days between the date of an invoice and its import. The default is 7 days, and the minimum is 0.The delay leaves time to correct an invoice in the invoicing software before it reaches accounting.
Select whether the sync creates the invoices as draft in accounting. The default is yes. The accountant then validates each invoice.Some accounting software does not support drafts. This setting then has no effect.
Select whether the sync imports the invoices that have no PDF or attachment. The default is no.With “no”, an invoice without attachment waits until the attachment is available in the invoicing software.
Select how the sync writes the label of the lines in accounting:
  • Third-party name on the header line (default): the line of the customer or supplier has their name. The other lines keep the description of the invoicing software.
  • Third-party name on all lines.
  • Third-party name and line description on all lines.
  • Invoice number and third-party name on all lines.
Shown when analytic accounting is in scope. Select what the sync does when an analytic account does not exist in accounting and cannot be created:
  • Skip the invoice (default).
  • Import the invoice without the analytic data of the plan concerned.
Shown when bank transactions are in scope. The first transaction date that the sync imports. You can select a date up to 3 months in the past.
Shown when bank transactions are in scope. Select which transactions the sync imports: all transactions (default), or only the processed transactions.
The sync starts automatically each night, at 4 AM (UTC).

Troubleshooting

Sync errors appear in the execution logs of the sync. See Monitor executions to find the execution logs and the affected records.
Cause: The account of an invoice line does not exist in the accounting software, and the default account does not exist either.Resolution: The sync first uses the account of the invoicing software, then retries with the default account of the mapping. Use a valid account in the invoicing software, create the account in accounting, or correct the default accounts mapping.
Cause: The account of an invoice line is not active in the accounting software, and the default account is not active either.Resolution: Activate the account in accounting, use another account in the invoicing software, or correct the default accounts mapping.
Cause: An account cannot be used in this place, for example a customer or supplier account on an invoice line.Resolution: Adapt the default accounts mapping so that invoice lines use general ledger accounts.
Cause: The customer or supplier of the invoice was linked to a third party in accounting, and this third party no longer exists. It was probably deleted in accounting.Resolution: Check whether the third party exists in accounting and create it again if needed. Then contact Chift’s support to link it again.
Cause: The invoice has no customer or supplier.Resolution: Add the customer or supplier on the invoice in the invoicing software. If it is present, contact Chift’s support.
Cause: The contact of the invoice does not exist in the invoicing software.Resolution: Check the contact of the invoice. If the contact exists in the invoicing software, contact Chift’s support.
Cause: The totals of the invoice (total, taxes or untaxed amount) do not match the sum of its lines.Resolution: Check the invoice in the invoicing software. If the amounts are correct, contact Chift’s support.
Cause: An invoice line is not valid: its VAT rate or its tax code is missing.Resolution: Correct the line in the invoicing software. If the line is valid, contact Chift’s support.
Cause: A VAT rate of the invoice is not mapped.Resolution: Map the rate in the sales or purchase VAT codes mapping.
Cause: The sync needs a rounding line, and the rounding VAT code is not mapped.Resolution: Map the VAT code in the rounding VAT codes mapping.
Cause: The journal of the invoice is not mapped. This applies when you map the journals of the invoicing software.Resolution: Map the journal in the journals mapping.
Cause: The invoice has no journal in the invoicing software. This applies when you map the journals of the invoicing software.Resolution: Link every invoice to a journal in the invoicing software. If the journal is linked, contact Chift’s support.
Cause: The journal cannot be used for this type of invoice, for example a purchase journal for a sales invoice.Resolution: Adapt the journals mapping.
Cause: The invoice has no PDF or attachment, or the sync cannot retrieve it from the invoicing software.Resolution: Add the attachment in the invoicing software, or allow invoices without attachment in the settings. If the attachment is present, contact Chift’s support.
Cause: The PDF of the invoice already exists in the accounting software.Resolution: The invoice probably exists already in accounting, created by hand or by another tool. Check the accounting software before you retry.
Cause: The invoice number is already used in the accounting software.Resolution: Check whether the invoice was created by hand or by a previous sync.
Cause: The invoice was already processed in a previous run.Resolution: No action is needed when the invoice is in the accounting software. Otherwise, contact Chift’s support.
Cause: The accounting period of the invoice is closed in the accounting software.Resolution: Open the period again in the accounting software, or contact your accountant.
Cause: The sync cannot find or create the analytic account of the invoice in the accounting software.Resolution: Check the analytic plan mapping, and check that the analytic account or plan exists in accounting.
Cause: The amounts of the documents linked to a bank transaction do not add up to the amount of the transaction.Resolution: Correct the linked documents or their amounts in the invoicing software, then wait for the next run. If the amounts match, contact Chift’s support.
Cause: The sync cannot match a payment with its invoice in the accounting software.Resolution: Open the execution logs to find the error that the accounting software returned for the invoice or the payment.
Errors that are not specific to the invoices sync, such as ERROR_SYNC_UNBALANCED_ENTRY, are listed in the sync errors section.