Skip to main content
This sync creates accounting entries in the accounting software from the orders and the refunds of an eCommerce platform.
Data flow: the eCommerce platform sends orders, refunds and payments to the Chift eCommerce sync. The sync groups them per order, per day or per month. It creates sales entries and refund entries in the accounting software, to report revenue and VAT.

The eCommerce sync reads orders, refunds and payments from the eCommerce platform and creates entries in the accounting software.

Default scope

The sync replaces the manual export of eCommerce sales to accounting.
This is the default scope. Based on your requirements, it can be modified.

What the sync creates

The sync creates two types of balanced entries: one for the orders and one for the refunds.
Sales entry: card payments 968.00 and PayPal payments 242.00 debited on the payment method accounts; sales Clothing 800.00 and sales Accessories 150.00 credited on the sales accounts, shipping fees 50.00 credited on the account of the default values, and VAT 21% 210.00 credited on the VAT account. Total 1,210.00 on each side. Refund entry: sales Clothing 100.00 and VAT 21% 21.00 debited; card payments 121.00 credited. Total 121.00 on each side.

Example of a sales entry and a refund entry for one period.

  • Payments: the sync debits the account of each payment method.
  • Revenue: the sync credits the sales account of each product category, order country or VAT rate, with amounts excluding VAT.
  • Fees: shipping fees and other fees go to their accounts of the default values.
  • VAT: the sync credits the VAT account of each VAT rate.
  • Refunds: a refund entry reverses the lines of the refunded amounts.
  • Changes: when an order changes after its import, the sync books the difference.
The amounts are an example. The accounts come from your mappings.

When an order is imported

The sync imports an order when it reaches the status that you select, and books it on the date that you select.
Five steps: read the orders and refunds, filter them on status, date and tags, group them per order, per day or per month, build a balanced entry, and create it in accounting. An order that is too early, not confirmed or excluded by a tag is skipped. An entry in error is logged and retried at the next run.

How the sync processes the orders and the refunds.

  • Status: the sync imports an order when it is confirmed, or when it is delivered. You select this in the settings.
  • Start date: the sync does not import orders created before the start date.
  • Tags: the sync skips the orders that have one of the excluded tags.
  • Refunds: the sync books each refund at its own date.
  • Errors: the sync logs the error and retries at the next run.

Configuration

You configure three things before the sync runs: the scope, the mappings and the settings.
Three cards. Scope: B2B customers and B2B invoices, both off by default, for the orders of companies with a company name and a VAT number on the billing address. Mappings: journal, payment methods, VAT rates, sales accounts, default values, gift cards (optional), discounts (optional) and invoice VAT codes (B2B invoices). Settings: start date, frequency, grouping, booking date, cancelled orders, excluded tags 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 how the sync books the orders of companies (B2B). A B2B order has a company name and a VAT number on its billing address. Both options are off by default.
Select whether the sync books each B2B order on the account of its real customer. The default is no: all orders go to the customer collective account.When you enable it, the sync finds the customer in accounting, or creates it. It first reuses the link of a previous run. It then compares the reference, the VAT number or company number, and the company name or email. Without a match, it creates the customer.
Select whether the sync books each B2B order as a sales invoice, and each B2B refund as a credit note, instead of a journal entry. The default is no.This option is available when “B2B customers” is on. Each invoice line then has its own VAT code, which some accounting software needs to report VAT. The configuration adds two journals and the invoice VAT codes mapping.

Mappings

A mapping links a value from the eCommerce platform, or a fixed value, to a journal or an account in the accounting software. The sync uses these accounts to build the entries.
Journal: one fixed value to a journal, always shown. Payment methods: each payment method to a class 4 or 5 account, always shown. VAT rates: each tax rate to a VAT account such as 445, always shown. Sales accounts: each product category, country or VAT rate to a class 7 account, always shown. Default values: seven fixed values to class 4 to 7 accounts, always shown. Gift cards: one fixed value to a class 4, 5 or 7 account, optional. Discounts: two fixed values to class 7 accounts, optional. Invoice VAT codes: each tax rate to a VAT code, shown when B2B invoices are on.

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

Select the accounting journal that receives the entries. This mapping is always shown.When “B2B invoices” is on, you also select the journal of the B2B sales invoices and the journal of the B2B credit notes.API calls to reproduce this mapping: Get journals
Select the accounting account for each payment method of the eCommerce platform (credit card, PayPal, etc.). The sync debits this account. This mapping is always shown.API calls to reproduce this mapping: Get all payment methods (eCommerce), Get chart of accounts (filter on class 4 and 5 accounts)
Select the VAT account for each tax rate of the eCommerce platform (for example 445). This mapping is always shown.API calls to reproduce this mapping: Get all tax rates (eCommerce), Get chart of accounts (filter on class 4 accounts)
Select the sales accounts for the revenue, excluding VAT. This mapping is always shown. You can split the revenue in three ways:
  • By product category: the account depends on the category of the product sold.
  • By order country: the account depends on the delivery country of the order. The sync uses the billing country when the order has no delivery country.
  • By VAT rate: the account depends on the VAT rate of the line.
API calls to reproduce this mapping: Get all product categories, Get all countries or Get all tax rates (eCommerce), Get chart of accounts (filter on class 7 accounts)
Select the accounts for the specific cases. This mapping is always shown.
  • Default sales account: used when the sync finds no sales account for a line.
  • Shipping fees account and other fees account.
  • Credit rounding account and debit rounding account.
  • Default payment method: used when a payment method is not mapped.
  • Customer collective account.
API calls to reproduce this mapping: Get chart of accounts (filter on class 4, 5, 6 and 7 accounts)
Select the account for the revenue of gift card sales. This mapping is optional. You enable it with a question in the configuration.Without it, the entries do not include the gift card sales. Gift cards used as a payment method are always included.API calls to reproduce this mapping: Get chart of accounts (filter on class 4, 5 and 7 accounts)
Select the account for the discounts on products and the account for the discounts on fees. This mapping is optional. You enable it with a question in the configuration.Without it, the sync books each line net of its discount.API calls to reproduce this mapping: Get chart of accounts (filter on class 7 accounts)
Select the accounting VAT code for each tax rate, and for the lines exempt from VAT (0%). The sync uses these codes on the lines of the B2B invoices.This mapping is shown when “B2B invoices” is on.API calls to reproduce this mapping: Get all tax rates (eCommerce), Get vat codes (accounting)

When a value is not mapped

An order can use a product category, a payment method or a VAT rate that has no account in the mapping. The sync then uses a fallback account when one exists.
Sales account: if mapped, the sync uses the mapped sales account. If not mapped, it uses the default sales account of the default values. With no fallback, the order is not booked. Payment method: if mapped, the sync uses the account of the payment method. If not mapped, it uses the default payment account of the default values. With no fallback, the order is not booked. VAT rate: if mapped, the sync uses the VAT account of the rate. If not mapped, the order is not booked.

What the sync does when a sales account, a payment method or a VAT rate is not mapped.

When a product has no category, an order has no country, or the value is not mapped, the sync uses the default sales account of the default values.Without a default sales account, the sync cannot book the order. Complete the sales accounts mapping or the default values mapping.
When a payment method is not mapped, the sync uses the default payment method of the default values. This happens, for example, when you add a payment method in the eCommerce platform after the setup.Without a default payment method, the sync cannot book the order. Map the payment method, or complete the default values mapping.
A VAT rate has no fallback. When a rate is not mapped, the sync cannot book the order.Map the rate in the VAT rates mapping. For B2B invoices, map it in the invoice VAT codes mapping as well.
The execution logs give the order and the reason of each error. See Troubleshooting.

Settings

The settings define which orders the sync imports, when it books them and how it groups them.
Start date: required. Frequency: daily or monthly, set at activation. Grouping: per order, per day or per month (default). Booking date: when the order is confirmed (default) or delivered. Cancelled orders: no (default), synced orders or all orders. Entry labels: default label, or with the country, the VAT rate or both.

The main settings of the sync and their default values.

The first order date that the sync imports. This setting is required. The sync does not import orders created before this date.Two rules apply to the orders created before the start date:
  • Refunds: a refund made after the start date is booked at the date of the refund.
  • Changes: the sync does not import a change made to such an order. The exception is Shopify, when you book each element at the date it was added to the order.
With the booking date “delivered, at the delivery date”, the sync compares the delivery date with the start date.
You select the frequency when you activate the sync: every night, or once per month on the first day of the month.
Select how the sync groups the orders and the refunds:
  • One entry per month (default): one entry for all orders of the month, and one for all refunds.
  • One entry per day.
  • One entry per order and per refund.
This setting is shown when “B2B customers” is off. When “B2B customers” is on, the sync always creates one entry per order and per refund, so that each entry has its own customer.
Select the status that makes an order eligible, and the date of the booking:
  • Confirmed, at the creation date of the order (default).
  • Confirmed, each element at the date it was added to the order.
  • Delivered, at the creation date of the order.
  • Delivered, each element at the date it was added to the order.
  • Delivered, at the delivery date of the order.
The status of an order depends on the eCommerce platform:
  • Confirmed: Shopify has processed the order, so it is no longer a draft. For WooCommerce and PrestaShop, the order is paid.
  • Delivered: the order is fulfilled (Shopify), completed or shipped (WooCommerce), or shipped and delivered (PrestaShop).
Only Shopify gives the exact date of each element. For the other platforms, the sync uses the date of the last change of the order.
Select whether the sync reverses the cancelled orders that have no refund in the eCommerce platform:
  • No (default): the sync books a reversal only when the order has a refund.
  • Yes, for the orders already synchronized.
  • Yes, for all orders.
With “yes”, you also select the date of the reversal: the cancellation date (default), or the creation date of the order.
Enter the tags of the orders that the sync must skip, separated by commas. This setting is optional. The sync ignores the case of the tags.For example, enter StockTracking to skip the internal orders that you create to follow your stock. Shopify orders have tags. For WooCommerce, create a custom field named order_tags on the order and enter the tags as its value, separated by commas.
Select the label of the entry lines:
  • Accounting date and name of the eCommerce platform (default).
  • With the country of the orders.
  • With the VAT rate of the orders.
  • With the country and the VAT rate.
The sync starts automatically at 3 AM (UTC): every night, or on the first day of the month.

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 sync cannot synchronize an order.Resolution: Open the execution logs to find the reason. Check the data of the order in the eCommerce platform (amounts, payment method, VAT rates) and the mappings of the sync. If both are correct, contact Chift’s support with the consumer ID.
Cause: The sync cannot synchronize a refund.Resolution: Open the execution logs to find the reason. Check the data of the refund in the eCommerce platform and the mappings of the sync. If both are correct, contact Chift’s support with the consumer ID.
Cause: The sync cannot build the entry, or the accounting software refuses it.Resolution: Open the execution logs to find the reason, for example a payment method that is not mapped. Check the mappings of the sync: journal, payment methods, VAT rates, sales accounts and default values. If the mappings are correct, contact Chift’s support with the consumer ID.
Cause: A B2B order has no VAT number or no company name on its billing address, so the sync cannot create the customer.Resolution: Complete the billing address of the order in the eCommerce platform.
Cause: A line of a B2B invoice has no account.Resolution: Complete the sales accounts mapping or the default values mapping.
Cause: A tax rate of a B2B invoice has no VAT code in the mapping.Resolution: Map the tax rate in the invoice VAT codes mapping.
Cause: A B2B invoice has a line without VAT, or a rounding line, and the “exempt from VAT (0%)” row is not mapped.Resolution: Map the “exempt from VAT (0%)” row in the invoice VAT codes mapping.
Cause: The journal of the B2B sales invoices or of the B2B credit notes is not mapped.Resolution: Map both journals in the journal mapping.
A B2B invoice that the accounting software refuses can also return the errors of the invoices sync. Errors that are not specific to the eCommerce sync, such as ERROR_SYNC_UNBALANCED_ENTRY, are listed in the sync errors section.