1.Introduction
This is the manual for the integration between Ecwid and Twinfield.
- This integration is a financial integration. It is not a logistics integration. It is not suitable for updating customers in Twinfield, printing packing slips, or synchronizing products/inventory.
- This integration does not replace the work of an accountant. It saves time because you no longer have to retype documents. The accountant is still needed for advice, expertise, and control.
Tip: Other customers using this integration found the tips in the FAQ for Ecwid and in the FAQ for Twinfield.
Installing the integration from the Ecwid App Store
You install this integration from the Ecwid App Store. You can find us via Apps > AppMarket > Accounting in the Ecwid dashboard. Upon activation, you will be automatically guided through the configuration screens. The Installation section in this manual explains how this process continues.
If you install the integration via the Ecwid App Store, the trial period is 14 days and you pay 18.95 per month. The integration can be canceled monthly.
Install integration via the integrations page from our website
You request a trial period via the integrations page by selecting Ecwid as the shop system and the desired accounting system. After requesting the trial period, you can immediately log in to your personal dashboard and further configure the integration. The Installation section in this manual explains how this process continues.
If you install the integration via the integrations page from our website, the trial period is 30 days and you pay 170 euros per year. After the trial period, you will receive a payment link if you wish to continue using the integration.
If you have activated the integration in the Ecwid App Store and you want to terminate it, you can easily do so by removing the app in your backend. Are you switching to another accounting system and want to create a new integration? You can install the new app from the app store in your backend. Make sure you are logged out of the dashboard of the old integration and preferably start the new installation in an incognito browser.
Are you switching to another webshop system? Via our integrations page you can see whether you install it from the relevant app store, or by means of an installation link.
Has the installation been successful, but do you see in the dashboard of the integration the old license key still present when you click the dropdown arrow next to the key (even though that app/key has been deleted)? If so, please send us an email requesting that the old key be removed.
Stop integration via our website
If you have activated the integration via our website Then you can terminate the integration via the dashboard, Profile tab >> Disable integration.
Are you switching to another web shop/accounting system and do you want to re-establish a connection? In this faq we explain how to do this.
2.How the integration works
Ecwid works with webhooks. We receive a notification as soon as a new order is created in your webshop or if an order changes. If the order can be processed - this depends on the status - the integration places the order in the processing queue. Depending on how busy the processing queue is, the order will be processed quickly or slightly later. In general, the queues move quickly.
Read more How the integration works .... Read less How the integration works ....
At the start of processing an order, we perform a number of checks on the Ecwid order:
- It is checked whether the total of the Ecwid order is equal to the sum of the amounts in the order lines plus the shipping cost amount.
- If the order is an ICP order, the VAT number is checked.
- It is checked whether a corresponding VAT code exists in Twinfield for the VAT in each line.
- It is checked whether the order has not already been processed.
Processing a Ecwid order to Twinfield takes place in two steps:
- It is checked if the customer already exists in Twinfield. If not, the customer is created. Matching is based on the email address.
- The Twinfield transaction (draft entry, invoice) is created and processed.
After the order has been forwarded and a success message from Twinfield has been received, the order is marked as handled. The Ecwid order appears at the Reporting tab on the dashboard.
If Twinfield returns an error while processing the order, the order appears in the Errors tab on the dashboard. Via the yellow button More info more information about the problem can be found. Via the red button Report problem can the order with all necessary information easily be submitted to us after you have tried to resolve the problem yourself. If the problem is solved, in some cases the orders can be processed again with the blue Process button.
Data
Information about the data that is processed can be found in the section Day-to-day: To Twinfield later in the manual.
3.Preparation Twinfield
To connect with Twinfield, your own username/password is required to log in. The connection must be established using this username/password.
When using an accountancy username/password, the integration gains access to all records under the accountant's responsibility. This is highly undesirable. The consequence may be that the integration posts to the wrong record. Additionally, the integration has access to all records covered by the accountancy license. This is undesirable from a security perspective and is contrary to GDPR regulations.
For more information, see: FAQ.
4.Installation
Read more Installation .... Read less Installation ....
1. You install the integration via your Ecwid backend
You log in to your Ecwid account and search for webwinkelfacturen. The apps will then appear automatically. You can recognize us as a supplier by the blue gear icon. If you click on the App, you will see a description and the Open button.
When you click the Open button, you must first authorize the integration to read data from your webshop. This is clearly indicated in the following screen. You also need to approve the monthly fee for the integration. Once you have approved the monthly fee, the connection with your Ecwid account is established. You will automatically receive a registration email from us containing a username and password for your personal dashboard https://uwkoppeling.webwinkelfacturen.nl.2. You install the integration via the integrations page from our website
Via the integrations page from our website, you select Ecwid and the accounting system of your choice. A new screen appears where you can fill in your details. This data will be used for retrieving orders from Ecwid and for invoicing. After the form is completed and sent, you will receive your unique codes to log in to your dashboard.The following steps still need to be completed:
1. Accepting the general terms and conditions.
2. Establishing the connection with the Ecwid webshop. This step does not need to be performed if you established the integration via the Ecwid App Store.
3. Establishing the connection with Twinfield. This gives the integration permission to write transactions to your Twinfield administration and to read information.
4. Configuring additional data, such as the VAT settings.
Before the integration can be used, the terms and conditions must first be accepted. The terms are based on the general ICT Terms (industry association) and the general GDPR guidelines. We also require a name, email address, and the country of the webshop.
Webshop authentication: - only for installation via the integrations page from our website
The authentication with the webshop is handled via OAuth. Ensure you are logged out of your webshop before establishing the connection. Now click the red Connect button. A login screen for the webshop will automatically appear. Once you log in, you will see a screen asking if you allow the connection. If you confirm this, the connection will be established.
If you want to re-establish the connection at a later time, you can always do so by clicking the Connect button.
Twinfield connection
The connection with Twinfield is handled via OAuth. Ensure you are logged out of Twinfield before starting the connection. Now click the red Connect button. A login screen for your Twinfield account will automatically appear. Once you log in, you will see a screen asking if you allow the connection. If you confirm this, the connection with Twinfield will be established.
If you want to re-establish the connection at a later time - for example because you want to use a different one - you can do so by clicking the Connect button.
It is important that after establishing the connection with Twinfield, you first set the administration code of your Twinfield administration. You can also change the debtors dimension. The default in Twinfield is a debtors dimension 1300.
When configuring the VAT rates and general ledger accounts, a link is created between the VAT rates in webshop and the VAT codes and revenue accounts in Twinfield. You can always make changes by clicking the blue 'Edit' button and selecting an option from the drop-down menus.
By default, all EU countries are shown in the list. You only need to configure the countries you sell to, and - if applicable - ICP and International.
The integration shows the standard VAT rates for Europe. You can adjust the VAT percentage with which you sell - left column. For example: By default, sales to Germany are set to 21%, but if you sell in the webshop with 19%, you can adjust that in the left column. Intra-Community (ICP) and international deliveries
The Intra-Community supplies / ICP option is intended for business-to-business deliveries within the EU. These sales are invoiced with 0% VAT. A VAT number from the customer is required. The International option applies to deliveries outside the EU. For these sales, the integration expects 0% VAT; otherwise, the sales cannot be processed. Separate VAT codes and general ledger accounts can be configured for both ICP and international deliveries.
Once the VAT settings have been configured and saved, you will always see the selected VAT rates. If you want to start over, you can use the grey 'Remove VAT settings' button. Your current settings will then be deleted and you can begin again.
When processing orders, a link can be established for each payment method in with a fixed debtor. Orders with a payment method from the list are then always posted under this debtor. In that case, no new debtors are created.
Note: It is not possible to set fixed debtors for ICP orders. For an ICP order, a valid VAT number must be transmitted. Therefore, a debtor will always be created in Twinfield for an ICP order.
The list of debtors contains the Twinfield debtors with the specific substring WWF_. See this faq for more information, if the list is empty.
5.Day-to-day: From Ecwid
Once an order has been processed, it cannot be processed again. Any order changed in the webshop after it has been processed will not be updated in Twinfield.
Debtors
The integration first checks if the debtor is already present in the accounting system. If not, the integration creates the debtor in Twinfield. Matching of debtors between Ecwid and Twinfield takes place based on email address.
VAT numbers For business orders within the EU, outside the Netherlands, a VAT number is mandatory. The integration checks for this.
Refunds
The integration only processes orders. The integration does not process refunds.
Gift Vouchers
Ecwid orders have an option for gift vouchers. Ecwid deducts the gift voucher amount from the order total.
Therefore, the integration will create a negative order line with 0% VAT for the order amount. This can cause issues with orders to the EU because no 0% VAT setting is available for those orders.
Please contact us if this is an issue for you. We will then advise if it is still possible to resolve this situation via a workaround.
Field-level specification orders
| Name field | Values from Ecwid order |
| Order-identifier | [id] |
| Order number | A fixed prefix followed by field [vendorOrderNumber]. The prefix configuration can be requested via webcare@webwinkelfacturen.nl |
| Booking date | [createDate] |
| Order date | [updateDate] |
| Status order | [fulfillmentStatus] |
| Payment status | [paymentStatus] |
| Payment reference | [id] |
| Note | [vendorOrderNumber] |
| Valuta | [currency] |
| Payment method | field [gateway] in [transactions] |
| Order total incl. VAT and discounts | [total], this total amount includes the amount of any gift voucher |
| Total VAT order incl. discounts | [tax] |
| Order total excl. VAT incl. discounts | Difference between the two lines above |
| Delivery country | The delivery country will be the [shipping][country] field if it is filled in. Otherwise, the [billing][country] field will be used. |
| ICP indication | The integration determines as follows whether it concerns an ICP order:
|
| International indication | The integration determines as follows whether it concerns an international order:
|
| To read the order lines, the integration retrieves the [line_items] field. Multiple order lines can be included in the order, and the integration reads these lines one by one. | ||
| Name field | Values from Ecwid order line | |
| Productid | [productId] | |
| Amount | [quantity] | |
| SKU | [sku] | |
| Description | [name] | |
| VAT percentage |
The VAT percentage is determined as follows:
|
|
| Discount in order line | Sum of the amounts in [discounts] of the order line. This amount is used in the amounts for the order line. See below. | |
| Amounts incl. and excl. VAT | Amount in field [price] times the quantity, as [price] is the unit price. From the result of this line price, a coupon code amount (the field [couponAmount]) is deducted if the field [coupoonApplied] exists and has the value 1. The line discount amount (see above) is also deducted.
Finally, it is taken into account whether the amounts in the Ecwid webshop are incl. or excl. VAT. |
|
| VAT code and accounts Twinfield | These are determined based on the settings, the VAT percentage and the delivery country. It also takes into account whether the order is an ICP or international order. If processing is done based on categories, the revenue account is determined using the revenue account configured for the respective category in the dashboard | |
| Name field | Values from Ecwid order line |
| To determine the shipping costs, we use the field [shippingOption][shippingMethodName] from the order | |
| Description | [shippingMethodName] |
| Shipping costs excl VAT | [shippingRateWithoutTax] |
| Shipping costs incl VAT | [shippingRate] |
| VAT amount shipping costs | Difference between the two fields above |
| VAT percentage | VAT amount for shipping costs divided by the shipping cost amount excl. VAT |
| VAT code and accounts Twinfield | These are determined based on the settings, the VAT percentage and the delivery country. It also takes into account whether it is an ICP or international order. |
|
The discounts are located both in the order itself, referred to below as ecwidorder, and in the lines, referred to as orderline. The integration assumes that a membershipbaseddiscount is processed in the order lines. If not, the integration will not process the order.
Gift vouchers are processed as negative order lines and are explained in that part of the detailed description in this manual. | ||
| Name field | Values from Ecwid order line | |
| General order discount | [discount] - [membershipBasedDiscount] - [volumeDiscount]. The general order discount is recalculated back to the VAT rates in the order lines. This ensures the VAT on the discount is calculated correctly. | |
| Description | Discount with the VAT percentage of the discount | |
| Amount incl VAT | Amount incl. VAT for that VAT percentage | |
| Amount excl VAT | Quotient Amount incl. VAT and (1 + VAT percentage) | |
| VAT percentage | Applicable VAT percentage | |
| VAT code and accounts Twinfield | These are determined based on the settings, the VAT percentage and the delivery country. It also takes into account whether it is an ICP or international order. | |
| There are two types of surcharges that are included. These are the surcharges in the field handlingFee and customSurcharges. | ||
| Name field | Values from Ecwid surcharge line | |
| Description | description | |
| Amount incl VAT | Amount incl. VAT for that VAT percentage | |
| Amount excl VAT | Quotient Amount incl. VAT and (1 + VAT percentage) | |
| VAT percentage | Applicable VAT percentage | |
| VAT code and accounts Twinfield | These are determined based on the settings, the VAT percentage and the delivery country. It also takes into account whether it is an ICP or international order. | |
| Name field | Values from Ecwid customer |
| The billing address is in field[billingPerson] and the shipping address in field [shippingPerson]The content of these fields is always the same, so we do not describe them separately. It sometimes happens that the fields for [shippingPerson] are filled in and those for [billingPerson] are not. In that case, the fields in [shippingPerson] are used for the fields in [billingPerson]. | |
| Address |
If present based on [billing_address] in the Ecwid order
|
| VAT number | Field [customerTaxid] in the order |
6.Day-to-day: To Twinfield
For orders in Ecwid, draft entries or invoices can be created in Twinfield. The option draft entry is default and is used most often. The option invoices can be requested from us. For the invoices option, you need the paid invoice module, see also the FAQ. If you are in doubt between draft entries (financial transactions) or invoices, we recommend draft entries / transactions.
Create debtors
When processing customer information, it is first checked whether the customer has been processed before. If so, this Twinfield debtor is used as the debtor for the Twinfield transaction. If the customer is not yet known, they are added to Twinfield. Matching is based on email address.
Please note: The integration only creates debtors. The integration does not modify debtors.
The integration cannot automatically have Twinfield invoices or draft entries sent from Twinfield.
Field-level specification Twinfield
| Name | Example | Note | |
| @attributes | |||
| destiny | temporary | ||
| raisewarning | true | ||
| header | |||
| code | VRK | ||
| office | 300333 | ||
| invoicenumber | 5869 | ||
| date | 20230203 | order date | |
| Currency | EUR | Default, variable on request. | |
| Totalline | |||
| type | total | ||
| id | 4 | debtor id | |
| dim1 | 1600 | Debtor dimension | |
| dim2 | 4539 | Debtor dimension | |
| debitcredit | debit | ||
| value | 82.20 | Total price Incl. VAT | |
| basevalue | 82.20 | Total price Incl. VAT | |
| description | 4121 | Description: order number, or invoice number - this cannot be adjusted. | |
| Detaillines | |||
| @attributes | |||
| type | detail | ||
| id | 5 | ||
| dim1 | 2000 | Debtor dimension | |
| debitcredit | credit | ||
| basevalue | 33.47 | Line price Excl. VAT | |
| value | 33.47 | Line price Excl. VAT | |
| description | 24 pcs Prof. drawing paper. | Product description, max length 35. | |
| vatvalue | 7.03 | VAT amount | |
| vatcode | VH | VAT code | |
| Cost center | 1 default cost center per integration. | ||
| ICP | If it is an ICP entry: | ||
| Performancetype | goods | ||
| Performancecountry | [isocountry] | Country of delivery | |
| Performancevatnumber | [vatnr] | VAT number | |
| In the VAT amounts, any rounding difference is processed if the rounding difference is at most 5 cents. | |||
| Name | Example | Note |
| header | ||
| office | KJ903932 | |
| invoicetype | INVOICE | This cannot be adjusted. |
| invoicedate | 20230308 | order date |
| headertext | Order 3234002342 |
If the invoice number is equal to the order number: Order order number Otherwise Invoice invoice number. |
| customer | 9023 | Customer code |
| currency | EUR | Default, variable on request. |
| status | draft | |
| Payment method | Bank | |
| Detailline | ||
| @attributes | ||
| id | 4 | |
| article | 0 | |
| description | 70 x 70 painter's canvas | Description |
| quantity | 9 | quantity |
| units | 1 | |
| unitspriceexcl | 21.50 | unit price excl. VAT |
| dim1 | 3456 | Ledger account |
| vatcode | VH | VAT code |
| Name | Example | Note |
| name | [name] | |
| website | ||
| Cocnumber | [coc] | |
| VATnumber | [VATnr] | |
| Address | ||
| contact | [firstname][lastname] | |
| Country | [isocountry] | |
| City | [city] | |
| Postal code | [zipcode] | |
| Phone number | [telnr] | |
| [email] | not longer than 200 characters. | |
7.Support
Read more Support .... Read less Support ....
Explanation tabs dashboard
On the Dashboard >> Report you can see which orders from your Ecwid webshop, and when, have been transferred to Twinfield.What if orders are missing in Twinfield
If orders are missing in Twinfield we recommend following the steps below:- Log in to the dashboard: https://uwkoppeling.webwinkelfacturen.nl. The username and password are included in the registration email.
- Go to the Errors tab and check if order is there. You may need to adjust the search period if the
order is from a previous month. If you find order in this overview:
- Check the error code and verify whether you can resolve it yourself.
- If yes resolve the issue and click the blue Process button to resubmit the order.
- If not use the red Report problem button to create a ticket with us.
- Note if there are multiple errors, please create only 1 or 2 tickets. We will automatically see the other issues.
- Go to the Report tab and see if order is listed there. If so, you'll often see an identifier for Twinfield (in the purple section of the overview) that you can use to search for order.
- Go to the Open tab and check if order is there.
- If you cannot resolve the issue, you can always create a ticket via the green Ask us button.