Interfaces & Inventory Management
Your store exchanges products, inventory, orders, and customer data with other programs: via the xoPort REST API, the XML interface, pre-built integrations for JTL-Wawi, Billbee, Afterbuy, and OpenXE, as well as your accounting software. This guide explains which method is best suited for each scenario, how to create and secure access points, how to protect your data from changes before the next synchronization, and how to resolve common errors.
At a Glance
- New integrations use the REST API. Each program is assigned its own access under Tools → xoPort OAuth2 Clients and can only do what you allow it to do.
- Add-on modules: REST API, XML Interface, JTL Connector, Billbee (Sync), and Tricoma require the data interface to be enabled.XONIC Premium: xoPort Datenschnittstelle
- Grant permissions sparingly: Anyone authorized to view customers or orders can see names, addresses, and email addresses. One access per program, limited to only the necessary areas.
- Protect data maintenance: Import locks on items and the “xoPort: Product Import Settings” prevent the next synchronization from overwriting your text or prices.
- CSV and Excel files are described in the Import & Export (CSV) guide.
In this guide
Not covered in this guide: CSV and Excel files using Porter (guide Import & Export (CSV)), Marketplaces (eBay Integration and Kaufland Integration Guides), the product feed for Google ( Google Merchant Center & Product Feed Guide), and shipping providers such as DHL or GLS ( Shipping & Delivery Guide).
Which Method for What
You can set up pre-built integrations in the settings. For your own programs, automations, and service providers, use the REST API.
| Method | Purpose | Location in the Backend | Section |
|---|---|---|---|
| REST API (xoPort) | New integrations, automations, service providers: Read and write articles, categories, customers, orders, manufacturers, and more | Tools → xoPort OAuth2 Clients | REST API |
| XML Interface (xoPort) | Existing inventory management integrations that exchange XML files | Settings → Interfaces → Inventory Management Systems/ERPs/Accounting → xoPort Data Interface | XML Interface |
| CSV Porter | Files you edit yourself, price portals, simple reconciliations via link | Tools → xoPort CSV Import/Export Manager | Import & Export Guide |
| JTL-Wawi | Items, prices, and inventory from JTL-Wawi; orders and customers to JTL-Wawi | Settings → Interfaces → Inventory Management/ERPs/Accounting → JTL | JTL-Wawi |
| Billbee | Send orders to Billbee or import orders from Billbee | Settings → Interfaces → Inventory Management/ERPs/Accounting → BillBee, Tools → BillBee (Sync) | Billbee |
| Afterbuy | Transfer orders to Afterbuy; send tracking numbers and shipping status back to the store | Settings → Interfaces → Inventory Management/ERPs/Accounting → Afterbuy | Afterbuy |
| OpenXE | Products, inventory, customers, and tracking numbers from OpenXE; orders as a file | Settings → Interfaces → Inventory Management/ERPs/Accounting → OpenXE | OpenXE |
| DATEV Rechnungsdatenservice 1.0, Lexware Office | Transfer invoices to accounting, bundled for DATEV by posting month along with invoice PDFs | Settings → Interfaces → Inventory Management/ERPs/Accounting → DATEV Rechnungsdatenservice 1.0 or → Lexware Office | Accounting |
| n8n, Webhooks, Slack | Notify other services when events occur, such as a new order | Settings → Interfaces → Artificial Intelligence → n8n, Settings → Interfaces → Chat Tools → Slack | Automation |
You can find all integrations with inventory management and accounting systems under Settings → Interfaces → Inventory Management/ERPs/Accounting. Click to enlarge.
The add-on module for the data interfaceXONIC Premium: xoPort Datenschnittstelle
The REST API, the XML interface, the JTL connector, Billbee (Sync), and the Tricoma connection only work if the data interface is enabled. Without it, the REST API returns the error “ LICENSE_REQUIRED,” and Tools → xoPort OAuth2 Clients displays a red notification.
The store synchronizes its licenses with the XONIC license server. If this fails for 30 days, it disables the data interface and reports “was deactivated because no connection to the auth server could be established for 30 days.” Please contact us in this case.
REST API (xoPort)
The REST API is intended for completely new integrations. Each program logs in with its own credentials (OAuth2) and is only permitted to read or modify the areas that you authorize.
Create an account
- Open Tools → xoPort OAuth2 Clients and click “Create New Client.”
- Enter a “Client Name,” such as the name of the program or service provider.
- Under “Permissions,” select “Read,” “Write,” or “Delete” for each section. At least one permission is required.
- Optional: “Rate Limit (Requests/Hour)” and “Notes,” such as who is using the access.
- Click “Create New Client” to save. The store will display the “Client ID” and “Client Secret.” The secret appears only this one time: Copy it immediately into the program that needs to log in.
An account for a price analysis tool only needs “Products: Read”; all other sections remain restricted. Click to enlarge.
Select the appropriate permissions
Permissions are organized by area, such as Products, Categories, Customers, Orders, Manufacturers, Suppliers, Media, News, FAQs, CMS Pages, Contracts, Tickets, and Newsletters. They can be changed later via “Edit Permissions” in the access action menu.
A change takes effect starting with the next token. A token contains the permissions that were in effect when it was issued. A newly granted area is therefore only available to the program once it retrieves a new token, which happens within one hour at the latest. A revoked area remains accessible for a token that has already been issued until that token expires. If you want access to end immediately, select “Revoke Tokens” afterward; see “Revoke Permissions Immediately.”
An access level for inventory reconciliation may read and write products, categories, and manufacturers, but may not delete anything or view customer data. Click to enlarge.
| Integration | Permissions |
|---|---|
| Price Analysis, Price Comparison | Products: Read |
| Merchandise Management Synchronizes Items | Products, Categories, Manufacturers: Read and Write |
| Fulfillment, Shipping Providers | Orders: Read and Write |
| Newsletter or CRM tool | Customers or newsletter subscribers: Read |
| n8n Workflow | only the fields that the workflow actually reads or writes |
Only assign “Delete” if a program is actually supposed to remove records.
Address and Registration
The program uses the client ID and client secret to obtain an access token. The token is valid for one hour; after that, the program requests a new one. Your store’s token address is listed in the info box under Tools → xoPort OAuth2 Clients.
| Task | Method and Address |
|---|---|
| Get Token | POST https://ihr-shop.example/xpanel/xoport/oauth/token |
| Read data | GET https://ihr-shop.example/xpanel/xoport/export/json/products |
| Read a data record | GET …/xpanel/xoport/export/json/product/42 |
| Read a range | GET …/xpanel/xoport/export/json/orders/1000:1100 |
| Create new | POST …/xpanel/xoport/import/json/products |
| Modify | PUT …/xpanel/xoport/import/json/products |
| Delete | DELETE …/xpanel/xoport/delete/json/product/42 |
curl -X POST https://ihr-shop.example/xpanel/xoport/oauth/token \
-d "grant_type=client_credentials" \
-d "client_id=<CLIENT_ID>" \
-d "client_secret=<CLIENT_SECRET>"
curl -H "Authorization: Bearer <TOKEN>" \
https://ihr-shop.example/xpanel/xoport/export/json/products?limit=250&offset=0
Each address consists of /xpanel/xoport/, the task (export, import, or delete), the format json, and the area. If any other format is used, the API returns “Unknown route.” Deletion is only possible using the method DELETE.
Retrieving data page by page: Use ` ?limit= ` (default 50, maximum 250) and ` ?offset= ` to browse through large datasets. The response returns the total count via ` stats ` and indicates whether additional pages follow via ` has_more`.
Limits
- Request limit: Each account is allowed to make 5,000 requests per hour by default; requests are counted based on the last 60 minutes. In the “Rate Limit (Requests/Hour)” field under “Edit Client,” you can enter a lower value; this takes effect immediately, even for active tokens. Only XONIC can set a limit higher than 5,000 after review. Anyone who exceeds the limit will receive a “
429” with “RATE_LIMIT_EXCEEDED”; the value “Retry-After” in the response indicates the wait time in seconds.from 4.9.17
If XONIC has set an unlimited request limit for an account, it remains in effect for updates and HealthCheck checks; older versions reset it back to 5,000.from 4.9.168 In “Edit Client,” the field for such an account is blank, with the note “Unlimited (set by XONIC).” If you save with the field left blank, the access remains unlimited, even if you change the name or notes; a value up to 5,000 limits it, and only XONIC can then reset it to unlimited.from 4.9.174 Up to version 4.9.173, the screen displayed 5,000 for such an entry, and every time you saved, the limit was set to 5,000—even if you had only changed the name or notes. XONIC therefore applies changes to this entry based on these settings. - Records per import: no more than the number allowed by Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface → xoPort API: Bulk Import Limit (50 by default).
- Creation and modification are separate:
POSTcreates only new records and returns the message “already exists. Use PUT to update.” if an existing item number is found.PUTmodifies only existing records.
You can change the request limit for a receipt under “Edit Client”; the form does not accept a value greater than 5,000. Click to enlarge.
Under Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface → xoPort: Enable Settings for the Interface, you can enable individual shop settings for the API. If no entry is made, the API will not see any. Access data, license, and login settings always remain locked.from 4.9.54
Securing the Interface
An account is only as powerful as its permissions. These measures keep the interface secure, even when service providers change.
One Access Per Program
Each program and each service provider receives its own client. If a partnership ends, select “Deactivate”: The client becomes invalid immediately, and all its tokens are revoked. “Permanently delete” removes it entirely.
Renew Secret
If a secret has been shared or someone who knew it leaves the team, select “Renew Secret.” The old secret is immediately invalidated. Enter the new one in the program.
Check Usage
“View Usage” displays requests, success rate, and response time; for each request, it shows the time, address, status, and IP address—along with the content, if desired. The shop stores the most recent 1,000 requests per client.
“View Usage” lists every request from a user; a 403 error indicates an access attempt outside the authorized areas. Click to enlarge.
The log does not include requests that the shop rejects due to the request limit (429), nor requests that it rejects with a 400 status code before the request is even processed—for example, due to an invalid filter value or an incorrect page number. These 400 responses still count toward the request limit. If you’re looking for such an error, have the program display the interface’s response.
Revoke Permissions Immediately: Revoke Tokens
A program logs in with a client ID and client secret and receives a token valid for one hour. If you change the permissions for an account, any token that has already been issued retains the old permissions until it expires. To revoke a permission immediately:
- Under “Edit Permissions,” lock the section and save.
- In the access’s action menu (arrow next to “Edit Client”), select “Revoke Tokens” and confirm. All active tokens for this access will immediately become invalid; the client ID and secret remain unchanged.from 4.9.168
- The next time the program makes a request, it will automatically retrieve a new token, now with the updated permissions. You do not need to make any changes in the program.
“Revoke Tokens” terminates any active sessions for that access without requiring you to distribute a new secret. Click to enlarge.
- This entry is visible to employees who are authorized to delete entries on this page, and only for active accesses. The same permission is required for “Deactivate.”
- If the entry is missing because your shop is older than version 4.9.168, select “Deactivate” and then immediately select “Activate.” This also revokes all tokens, and the secret remains the same.
- “Renew Secret” also revokes the tokens, but the program will then require the new secret. Use this option if the secret may have fallen into the wrong hands.
Customer and order data are personally identifiable. Anyone with “Customers: Read” or “Orders: Read” permissions can view names, addresses, email addresses, and phone numbers. Grant these permissions only to programs that need them to perform their tasks. The log under “View Usage” contains the transferred data. When deleting a client, you can remove it by selecting “Also delete this client’s access log.”
“Customers: Read” also provides shopping carts, viewed items, and order metrics for each customer.from 4.10
Restrict access to fixed IP addresses
Under Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface → xoPort API: IP Restriction (JSON/REST), enter the addresses from which your programs originate. Then, every request must include both: one of these addresses and a valid token. If left blank, the REST API remains open to any access with a valid token.from 4.9.83
- Enter individual addresses, or multiple addresses separated by commas. A range such as
203.0.113.0/24will never match here and will block all programs. - If the shop is behind a proxy or Cloudflare, the address that the shop sees applies. If it denies access, the response from
IP_NOT_ALLOWEDwill list this address, and the dashboard will display “xoPort REST: Connection blocked.” - The list in the XML interface (“xoPort: IP Filter”) does not grant access to the REST API. The REST API always requires a token.from 4.9.83
| Setting | Applies to | Format |
|---|---|---|
| … → xoPort Data Interface → xoPort API: IP Restriction (JSON/REST) | REST API, in addition to the token | individual addresses, comma |
| … → xoPort Data Interface → xoPort: IP Filter | XML interface, instead of the key | individual addresses, comma |
| Settings → General → Basic Settings → xoPort Customer and Order Directory IP Filter | Protected Porter Exports | Addresses and ranges, comma |
Enter only fixed addresses. If an address changes, remove the old one from the list immediately: The provider will reassign it, and its next owner would otherwise have access.
XML Interface
Many inventory management systems place XML files in specific folders within the shop and then call an endpoint that reads them in. The XML interface is equivalent to the REST API; it is fully supported and actively maintained. Existing integrations do not need to be migrated, and there are no plans to discontinue it. The REST API is intended for completely new integrations.
Enabling and Access
The settings for this section are located under Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface.
- Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface → “xoPort: XML Interface Can Be Used” (still labeled “xoPort: Old XML Interface Can Be Used” in version 4.9) enables the addresses at
/xpanel/xoport/. New stores start withfalse; existing ones retaintrue. Atfalse, the URLs return a 403 error for every request, including those for the Tricoma integration.from 4.9.78 - Verification: The inventory management system appends the key from “xoPort: AppKey Filter” as
?key=to the address, or it calls “xoPort: IP Filter” from an address. If your Internet address changes, the key is the more reliable method. Access the addresses only usinghttps://. - Do not clear the “xoPort: AppKey Filter” while the XML order export is running: The export accesses your shop’s interface using this key.
- “xoPort API: Authentication Required” remains displayed at
true. Atfalse, the XML interface responds to every request without verification, and the dashboard reports “xoPort data interface is unprotected.”
Under Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface, you’ll find the interface’s access, filter, and import settings; new stores start with the XML interface disabled. Click to enlarge.
Files and Addresses
The inventory management system places its files via FTP or SFTP in the folder xoport/xml/import/. The files are only imported when the corresponding address is called up. The filename must begin exactly as shown in the table—including uppercase and lowercase letters—and end with .xml, for example, Products_2026-10-04.xml.
| File name begins with | Address that triggers the import | Effect |
|---|---|---|
Products | /xpanel/xoport/import_products.php | Create and modify items |
Storage | /xpanel/xoport/update_products.php | Inventory, status, and product family of existing items, found via the item number |
Categories | /xpanel/xoport/import_categories.php | Categories |
Manufacturers | /xpanel/xoport/import_manufacturers.php | Manufacturer |
Customers | /xpanel/xoport/import_customers.php | Customers, found by the customer number in the inventory management system |
Orders | /xpanel/xoport/update_orders.php | Status, comments, and shipment numbers for existing orders |
ImportOrders | /xpanel/xoport/import_orders.php | Create orders from the inventory management system in the store |
Gutschein | /xpanel/xoport/import_vouchers.php | Gift Certificates |
The shop moves imported files to the subfolder archiv/. After “xoPort: Archiving time in days” (default 14), the product or order import deletes them from there.
It moves files that cannot be read to xoport/xml/import/error/ and specifies the line and reason in the response. It removes individual invalid control characters on its own and then imports the file.from 4.9.65
The Product XML
A product file contains one element per item: <product> under <products>. The store locates the item via model, the item number. The most important elements:
| Element | Field in the Store |
|---|---|
model | “Item Number,” required |
quantity | “Product Quantity (In Stock)” |
cost | “Purchase Price (Net)” |
evp | “Manufacturer’s MSRP (net / gross),” as a net value |
ean | “GTIN” |
products_eol | "Clearance (EOL)" |
categories/category | Category IDs, one per item |
groups/group with id, price, and prices/price | Price per customer group with tiered pricing |
groups/customers/customer with id or external and price | Customer price; external is the customer number in the merchandise management system |
features/feature with name, value, quantity, price, model, ean | attributes with values, inventory, and surcharges per value |
The import transfers prices unchanged into the store’s price fields; these fields display net prices. If a file contains attributes, the import replaces all of the item’s attributes with the ones provided. If it contains none, the existing attributes remain.from 4.9.21
You can specify which fields and nodes the import actually includes under Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface → xoPort: Product Import Settings; see Import Restrictions. If your inventory management system provides its own format, a shop-specific template (“xoPort: Custom XSL Template”) converts it into the shop’s format. This template is retained during updates.from 4.9.21
All elements—including those for categories, manufacturers, customers, and orders—are described in the API documentation.
Orders to the Inventory Management System (XML)
The XML interface makes new orders available as files. The inventory management system retrieves them and returns status updates and tracking numbers.
- The ERP system or a cron job calls
https://ihr-shop.example/xpanel/xoport/export_orders.php?key=<AppKey>. - For each order with a number higher than “xoPort: last exported order number,” the store writes a file named
order-<Bestellnummer>.xmlto the folderxoport/xml/export/. It then sets the value to the last order whose file was successfully processed. A failed order is processed again during the next run. - The inventory management system retrieves the files via FTP or SFTP. The order files are locked via the web. It typically moves retrieved files to
xoport/xml/export/archiv/. - It returns the status, comment, and tracking numbers via a
Orders…xml; see Files and Addresses.
In the archive, the store deletes files after “xoPort: Archiving period in days.” The value “ 0 ” means: never delete. Since the files contain customer data, be sure to set a time limit.from 4.9.116
Status Change and Re-export
The file ` order-<Nr>.xml ` is generated once. If you subsequently change the status in the shop, the file does not change. The current status of an order is provided by ` /xpanel/xoport/export/xml/order/<Bestellnummer> ` using the same key.
If you want the export to include orders again, set “xoPort: last exported order number” to the number preceding the first desired order. The next run will then regenerate all subsequent orders. The inventory management system must detect duplicates.
Three Address Blocks
Each order contains three addresses: customers_… for the customer, billing_… for the billing address, and delivery_… for the shipping address. Therefore, customers_firstname, billing_firstname, and delivery_firstname may differ. Payment details are located at payment_method, payment_class, and payment_module.
Confirmation with Status and Tracking Number
- The store identifies the status by its name, using the German designation. If it does not recognize the reported name, it creates a new order status with that name. Therefore, be sure to use the exact German status names from the store in your inventory management system.
- Whether the customer receives an email is determined by the “
customer_notified” field in the file: “1” means to notify. - The shop takes tracking numbers exactly as the file reports them: it creates new ones, leaves unchanged ones with their original dates, and removes those that are no longer reported. Shipping labels generated in the shop (print label, cancel) and return labels remain as is; the shop does not re-create a number that is already on a label.from 4.10
- If the shipping carrier is missing from the confirmation, the store identifies it by the link. It now also recognizes DHL by links from dhl.de and dhl.com; previously, these often read “DHL Paketshop” or “Other Carrier.”from 4.10
- If the inventory management system sends the same notification a second time without any other status having been reported in between, the store discards it. If you intentionally report a status multiple times for partial deliveries, enter its ID under Settings → General → Basic Settings → xoPort Status Import: Statuses that trigger a notification even when repeated.from 4.9.66
Porter Exports, Links, and Feeds
The CSV Porter also delivers files via a link, for example, for price comparison sites or an inventory management system that retrieves CSV files. For instructions on how to create and protect such exports, see the Import & Export (CSV) Guide.
Open or Protected
Exports for price portals can be accessed without a password as long as the Porter is enabled. Customer and order data are located in a protected area with a password and IP filter; see Protecting Exports.
Access Credentials in the Link
“Info and Links” places the username and password from Settings → General → Basic Settings → xoPort Protect Customer and Order Directories unchanged before the shop name: https://benutzer:passwort@ihr-shop.example/…. The password may contain # and %; in a URL, these characters break the link. Avoid using these characters in the password, or write %23 in the link for # and %25 for %.
Feed Files
In the “ xoport/xml/export/ ” folder, you’ll find order files as well as files such as pp_gmc_…xml, pp_gmc_local_…xml, and doofinder_…xml. These are the most recently generated product feeds for Google Merchant Center, local inventory, and Doofinder. The store regenerates them every time the feed is retrieved; see Feed Address.
Porter exports orders in two steps: one Porter for the order data and a second one for the line items. For information on how these two are related and how to re-export orders, see “Exporting Orders and Customers.”
JTL-Wawi
JTL-Wawi connects via your shop’s JTL Connector. It is located at https://ihr-shop.example/xoport/jtlconnector/ and requires the data interface to be enabled.
Setup
The settings are located under Settings → Interfaces → Inventory Management/ERPs/Accounting → JTL:
| Setting | Effect |
|---|---|
| “JTL Token” | A random password that you enter in JTL-Wawi as the connection password. Without a token, the connector will not respond. |
| “Minimum Order Number” | JTL-Wawi only imports orders starting from this number, for example, from the start of the connection. |
| “Transfer only customers with orders” | true: only customers who have placed orders; false: all customer accounts |
| “JTL Root Category ID” | Only necessary if JTL-Wawi uses its own root category; the shop will then display its subcategories at the top. |
| “JTL Weight Source” | shipping: Shipping weight, product: Item weight from JTL-Wawi |
What is synchronized
From JTL-Wawi to the store
- Items with names, descriptions, meta data, item numbers, GTINs, weight, minimum quantity, and quantity-based pricing
- Prices per customer group with tiers, special prices, purchase price, and MSRP
- Inventory, inventory management, status, and sales
- Variations as attributes, categories, manufacturers, images, and cross-selling
- Order statuses “shipped” and “canceled”: The store sets the initial status via Settings → General → Module Options → Order Status to “shipped” or “canceled, ” without sending an email to the customer. Only the main administrator can view this group.
From the store to JTL-Wawi
- Orders starting at the “minimum order number,” up to 100 per retrieval
- Customer accounts; guest orders do not have an account
- Payments for orders not paid via prepayment, direct debit, or invoice
- Items, categories, and manufacturers not yet recognized by JTL-Wawi, such as during the first synchronization
The connector does not import tracking numbers or booked incoming payments from JTL-Wawi. You must then manage shipment tracking in the store; see Shipment Tracking. The JTL connector does not evaluate import restrictions on items.
Two stores: A connector is associated with exactly one store installation, with its own address and its own “JTL token.” Two stores therefore require two connections. However, multiple domains within a single installation share the same database and connector.
Billbee
For Billbee, there are two options, depending on who manages the orders.
Shop Connector: Billbee retrieves orders from the shop
- In Billbee, create a shop connector with the address
https://ihr-shop.example/ext/modules/billbee/hidden_trigger.php. - Enter the same password under Settings → Interfaces → Inventory Management/ERPs/Accounting → BillBee → BillBee API: Password. If the field is empty, the shop connector is disabled and the shop responds to requests with a 403 error.from 4.9.131
- “BillBee API: Order Import X Days Retroactively” determines how far back BillBee reaches; the default is
P3Dfor three days. - With “BillBee API: SetOrderState” on
true, BillBee transfers status changes back to the store.
Billbee (Sync): The store retrieves orders from Billbee
- For orders created in Billbee, such as those on other sales channels. Requires the data interface to be enabled.
- Fill in “Billbee Sync: Active” as well as “Billbee Sync: API Key,” “Billbee Sync: API User (Email),” and “Billbee Sync: API Password” in the same group. Only then will Tools → Billbee (Sync) appear.
- There, you’ll find: “Test Connection,” “Retrieve Orders,” “Import Preview,” and “Import Orders.” The store assigns items based on the item number, followed by the GTIN. The page also displays the address for the cron job.from 4.9.130
- “Billbee Sync: Run xo_stock_change” deducts stock during import, starting from the factory. “Billbee Sync: Transfer Tracking” reports tracking numbers to Billbee and sets the order status there to “Shipped.”
- The store sets orders canceled in Billbee to “Canceled” as long as they are still open. If an order has already progressed further, you’ll receive a note and a bulk email.from 4.9.127
Afterbuy
The store transfers orders to Afterbuy. A synchronization retrieves the tracking number and marks the order as “shipped.”
Set Up and Send Orders
- Under Settings → Interfaces → Inventory Management/ERPs/Accounting → Afterbuy, set “Afterbuy Connection On/Off” to
trueand enter the “Afterbuy Partner ID,” “Afterbuy Partner Password,” “Afterbuy Username,” and “Afterbuy User Password” from your Afterbuy account. The user password is only needed for the return process. - Each order is sent to Afterbuy immediately after checkout is completed. With “Email on Error” set to
true, you’ll receive an email if the transfer fails. - To send manually, use the “Send Order to Afterbuy” button: in the order under the “Edit” tab, “Order Status” sub-tab, or for multiple orders via “Action for Selected Orders” → “Change Status.”
- To send the order without changing the status or sending an email to the customer, select “— Keep Status —,” leave the comment field blank, and toggle the switch on.from 4.10
- The result appears in the order under the payment details: “Afterbuy Status” with OK or Error, “Afterbuy UID” (until 4.9 “Afterbuy Order ID”), and “Afterbuy Error Message.” An order marked as OK is not sent to Afterbuy a second time.
- If the transferred amount differs from the order, an “Afterbuy Note” appears next to “OK.”from 4.10
- “Paid Status of the Checkout with Payment Receipt” on
true(default): When sent automatically after purchase, an order in Afterbuy is considered paid for PayPal Checkout, Amazon Pay, Klarna, and Stripe, and whenever payment is verified—for example, by a posted card payment. Onfalse, this applies only to these four payment methods, as it did up to 4.9. When sending manually, the receipt always takes precedence.from 4.10 - “Order number per item (AlternArtikelNr2)” assigns each item line the store’s order number, for example, for picking and labeling in Afterbuy.from 4.10
Shipping Number and Shipping Status Back to the Store
- A cron job handles the return process by calling
https://ihr-shop.example/xoport/secure/afterbuy_update_orders.php; we recommend running it hourly. We can set it up for you upon request. - Starting with Shop version 4.9.167, the request requires an approved IP address in “xoPort Customer & Order Directory IP Filter” or login credentials from “Protect xoPort Customer & Order Directory,” both found under Settings → General → Basic Settings. Otherwise, the shop will return a 403 error.
- For each run, the synchronization retrieves the 100 most recent orders that have been transferred to Afterbuy and are neither shipped nor canceled. It retrieves the tracking number from the transaction’s additional information, where the Afterbuy shipping integration writes it. The store generates the link from the tracking address provided by the shipping module.
- Only orders from the last 180 days, calculated from the order date, are queried. For an offer or a pre-order, this is the date of creation, even if it is accepted or shipped later. For older orders, enter the tracking number and shipping status manually.from 4.10
- Multiple numbers, numbers containing letters, and leading zeros are preserved. If the additional information also contains other text, the store will not retrieve a number from the additional information.from 4.10
- The shop also imports the numbers from the labels you print in Afterbuy, even if the additional info is empty. It does not import return numbers. If you have multiple packages, print all labels before the next synchronization: The shop will not import a label that is generated after the shipping status has been updated—including reprints. You’ll then need to enter the number manually.from 4.10
- Shipping labels and return labels created in the store remain in place, and a number that is already on such a label is not added a second time. A space at the end of the tracking address no longer disrupts the link, but an address without
https://will not generate a link.from 4.10 - If Afterbuy reports a tracking number or a shipping date, the store sets the first status from the “Order status shipped” setting (Settings → General → Module Options), without sending an email to the customer. Only the main administrator can view this group. Previously, the invoice was sufficient for the shipping status up to 4.9.from 4.10
- This also runs everything a status change in the backend triggers: payment method actions, such as a direct debit via Klarna, a credit to the account balance, the activation of bonus points, the release of downloads, and the notification to n8n, Billbee, and the marketplace for a marketplace order.from 4.10
- If the tracking number is received after the shipping status has been set, the synchronization will retrieve it for up to 14 days afterward. If an order has already been shipped once—for example, before a return—its status remains the same, but the store will still record the tracking number.from 4.10
Payment methods that process funds upon shipment: If your payment method collects funds upon the “Shipped” status or notifies the provider of shipment—such as Klarna, Datatrans without automatic billing, VR Payment for authorized payments only, Unzer invoice, payever, or PayPal with direct debit upon status change—from 4.10, this also happens when the synchronization sets the “Shipped” status. Up to 4.9, no payment action took place in this scenario.
You can configure access and transfer rules under Settings → Interfaces → Inventory Management/ERPs/Accounting → Afterbuy. Lines 7 and 12 are available starting with 4.10. Click to enlarge.
Clicking “Send Order to Afterbuy” manually sends an order to Afterbuy; this is shown here in the dialog for selected orders. Click to enlarge.
OpenXE and Other Inventory Management Systems
For some inventory management systems, there are dedicated integrations with their own configuration pages. We’d be happy to help you determine which one is right for your business.
OpenXE
The page Settings → Interfaces → Inventory Management Systems/ERPs/Accounting → OpenXE connects the store via the “OpenXE API Path” and “OpenXE API Token.” Without both, it will not import any data.from 4.9.106
- “Data Import” tab: “Products, Inventory Levels, and Categories,” “Inventory Levels,” “Customers and Representatives,” and “Tracking Data.” Each import runs in the background, and its progress is displayed below the line. You can close the page; the import will continue.
- “Data Export” tab: Orders with the “Order Status for Export to WaWi” are saved as a file named “Export Orders” in the “Export File Directory.” Afterward, you’ll see the “Order Status After Export.” To export again, set an order back to the export status.
- The category synchronization creates new categories and moves modified ones. It leaves the status, image, sorting, and “Category as Header Tab” settings of an existing category unchanged.from 4.9.135
- If the page displays the message “Background processes are not possible on this server,” the server is missing the required PHP function. We’ll resolve this with your hosting provider.
Additional Integrations
| Integration | Note |
|---|---|
| Tricoma | … → Inventory Management/ERPs/Accounting → Tricoma: User, Password, “Tricoma API: Order Status for Retrieval,” and “… after retrieval.” Requires the data interface and “xoPort: XML Interface Can Be Used” at true. To retrieve the data again, reset the order to the retrieval status. |
| SelectLine | works via the XML interface; separate templates are provided for exporting. |
| Additional inventory management systems and services | Under Settings → Interfaces → Inventory Management Systems/ERPs/Accounting, you’ll find additional integrations. We’ll work with you to determine whether and how they fit with your system. |
If your inventory management system is not listed, the REST API is usually the best option: Many programs and service providers access it via their own connection or a tool like n8n.
Accounting: DATEV and Lexware Office
Two integrations transfer your invoices to your accounting system: the DATEV Rechnungsdatenservice 1.0 in batches per accounting month—either on demand or once a day—and Lexware Office per order, automatically after the order is completed or on demand.
DATEV Rechnungsdatenservice 1.0
DATEV Rechnungsdatenservice 1.0 transfers your outgoing invoices, including the invoice image (PDF), bundled by accounting month to DATEV Unternehmen online (Belege online, Outgoing Invoice Ledger) for further processing by your tax accounting firm. In DATEV, the document records generate posting suggestions for DATEV Rechnungswesen. The shop does not transfer posting batches; DATEV’s Buchungsdatenservice (posting data service) is not part of this integration.
You can set it up under Settings → Interfaces → Inventory Management/ERPs/Accounting → DATEV Rechnungsdatenservice 1.0; until 4.9, the menu item was called “DATEV Online.” The page has three tabs: “DATEV Rechnungsdatenservice 1.0” for connection and settings, “Transfers,” and “Test transmission.”from 4.10
Prerequisite: The DATEV Rechnungsdatenservice 1.0 must be ordered from DATEV and set up before use. DATEV describes the process on the page “Set Up DATEV Data Services.”
Getting Started
At the top of the first tab, you’ll see the information box “Putting the DATEV Rechnungsdatenservice 1.0 into operation.” As long as the shop isn’t connected, the “Setup steps” section will be expanded. Follow these steps in this order:
- Order the data service: Order and set up the DATEV Rechnungsdatenservice 1.0 for your client with DATEV, usually in collaboration with your tax firm.
- Create an app: In the DATEV Developer Portal, create an app of the “Confidential” type; DATEV only issues a long-term connection for this type. For the app’s redirect URL, enter exactly the address shown in the “Connection” section under “Redirect URL for the DATEV Developer Portal”; click the “Copy” button to copy it. In production, DATEV only allows HTTPS addresses; localhost and IP addresses are not permitted. For live operation, DATEV will only activate the app after a technical review; please contact us regarding this.
- Enter access credentials: Enter the app’s “DATEV Client ID” and “Client secret.” If a secret is already stored, leave the field blank to retain it.
- Prepare clients in DATEV: In DATEV Belege online, set the processing mode for the client to “Advanced” and activate the outgoing invoice ledger for the fiscal year. If your outgoing invoice ledger is not named “Outgoing Invoices,” enter its name in the “Invoice ledger” field.
- Environment and Client: Set “Environment” to “Production (live)” and enter both numbers separated by a hyphen in the “Consultant and client number” field, for example,
5912403-1. Your tax firm will provide you with both numbers. Set “DATEV Rechnungsdatenservice 1.0 active” to “Yes” and click “Save” at the bottom of the tab.
After Step 5: Service enabled, Environment set to Production, Client ID and Advisor and Client Numbers entered. The shop will never display the Client Secret again after saving; the field will only show “Stored.” Click to enlarge.
- Connect: “Connect to DATEV” redirects you to the DATEV login page. After logging in with your DATEV credentials, the status indicator will show “Connected.”
- Reconcile Accounting: Reconcile accounts receivable, accounts, and BU keys with your tax advisor and save them; see Accounts Receivable, Accounts, and BU Keys.
- Transfer Month: In the “Transfers” tab, transfer the first month. If desired, you can then enable the daily run; see Transfer Invoices to DATEV.
As long as the store is not connected, the first tab displays the setup steps, including the status indicator, redirect URL, and “Connect to DATEV.” Click to enlarge.
The Connection to DATEV
- Status indicator: Green “Connected” means the connection is active and confirmed by DATEV. Yellow means logged in but not yet confirmed by DATEV. Red indicates “Not connected” or “Connection expired”: In this case, reconnect the store by clicking “Connect to DATEV.”
- Validity Period: The connection is valid for up to two years and is renewed with each use. The expiration date is listed under “Connection valid until,” along with “Issued by,” “Company,” and the “Consultant/client number” from the registration.
- Manage in DATEV: Under “Connected Applications” in DATEV, you can view the shop’s access permissions and revoke them at any time. The page provides a link there.
- Disconnect: “Disconnect” appears in the “Connection” section as long as the status indicator does not show “Not connected.” After a confirmation prompt, this button revokes the shop’s registration with DATEV. If DATEV does not confirm the revocation, the connection is only disconnected within the shop: A message will then prompt you to remove the authorization yourself under “Manage connected applications at DATEV.”
- Reconnect: After changing the environment or the consultant and client numbers, reconnect the store.
- Check access: “Test connection” queries DATEV to determine whether the shop is authorized to access your client’s data, without transmitting any data in the process. The shop also retrieves your client’s chart of accounts and general ledger account length during this process. The button is located in the “Connection” block when the traffic light is green or yellow, and at the bottom next to “Save.” If there is no connection, it displays the message “Connection error: …”.
Customers, Accounts, and Business Unit Codes
Under “Customers” and “Accounts,” you specify which accounts the invoices in DATEV should be posted to. Coordinate these settings with your tax firm before the first transfer. For accounts, the “Chart of accounts” and “G/L account length” pages show how DATEV reports them for your client. “Save” applies all settings on the tab. The page does not save an invalid value and lists it by the field name; it still saves the remaining settings.
| Setting | Effect |
|---|---|
| “Customer” | “Collective debtor for all invoices” (default) posts all invoices to a single customer account; “A separate debtor for each customer” creates the customer account based on the store’s customer ID. |
| “Collective debtor” | The collective customer’s account; default is 10000. It has one more digit than the general ledger accounts; with a general ledger account length of 4, this means 10000 through 69999. Guest orders are also posted to the collective customer account even when “A separate debtor for each customer” is selected. |
| “Debtor per customer: start value” | The customer account is the starting value plus the shop’s customer ID, not the customer number from the merchandise management system; default: 10000. If the result falls outside the customer range, the shop will not transfer the invoice and will report the issue. |
| “Invoice ledger” (by “Consultant and client number”) | Name of the outgoing invoice ledger in DATEV. If left blank, the shop uses “Outgoing Invoices.” |
| “OSS procedure” | Enable this if your company participates in the OSS procedure: Deliveries to private customers in other EU countries are then reported to DATEV as OSS sales, even if the tax rate is the same as in Germany. |
| The accounts, such as “Revenue 19 percent,” “Intra-Community supply,” “Export (third country),” “Cash discount 19 percent,” or “Discount 7 percent” | If left blank, the shop uses the default account from the chart of accounts reported by DATEV (SKR03 or SKR04); the field displays this as a placeholder. If DATEV reports a different chart of accounts or none at all, you must enter all accounts yourself; the page will prompt you to do so. As long as DATEV has not yet reported anything, the placeholders display the default accounts from SKR03. A custom account has as many digits as your general ledger accounts. |
| “BU code intra-Community supply,” “BU code OSS” | Posting keys for these transactions, pre-populated with 231 and 240 from the DATEV sample data. |
Coordinate the customer, accounts, and posting keys with your tax advisor; empty account fields use the default account from the reported chart of accounts, and “Test connection” retrieves it from DATEV. Click to enlarge.
Transferring Invoices to DATEV
Only orders with an invoice are transferred: If “Individual Invoice Number Range: Mode” is set to false, each order has its own invoice; for manuell and status, an invoice is generated only after an invoice number has been assigned (see “Create Invoice”). The month is determined by the invoice date; if there is no invoice date, it is determined by the order date. Canceled orders and quotes are excluded. When an order is completed, the store does not transfer anything to DATEV.
- SelectMonth with a Click: In the “Transfers” tab, select the month—the previous month is preselected—and click “Transfer month.” The store sends up to 100 invoices from that month that have not yet been transferred to DATEV in a single batch. If any invoices remain outstanding, the system displays their number, and another click transfers the rest. Invoices that cannot be transferred are listed by number, with the first 20 including the order number, invoice number, and reason.
- Daily Run: If “Transfer automatically every day” is set to “Yes,” the store transfers all invoices from the month specified under “Automatic transfer from month” that have not yet been transferred—bundled by month—once a day, and checks with DATEV for the status of jobs from the last 14 days. The switch alone does not start anything: “DATEV Rechnungsdatenservice 1.0 active” must be set to “Yes,” a client ID must be entered, and under Tools → Background Services, the task “Transmit DATEV invoices” must be set to “Automatic” mode.
- Single Invoice from an Order: If “DATEV Rechnungsdatenservice 1.0 active” is set to “Yes” and a Client ID has been entered, the “Transfer to DATEV” button appears on the right side of the order view header, provided the order contains an invoice that has not yet been transferred. The display does not check whether the shop is connected; without a connection, an error is only reported when you click the button. The button transfers only this invoice as a separate job for its posting month; it rejects a canceled order or a quote with a message. Afterward, the invoice is considered transferred, and the monthly transfer will not send it again.
“Automatic transfer from month” expects the month in the format JJJJ-MM. If you enable the daily run and the field is empty, the store will enter the current month when saving. If you clear the field while the run is enabled, it will also transfer invoices from older months. After updating to 4.10, the month of the update will be displayed there to prevent older invoices from being sent to DATEV without your consent; you can transfer older months using “Transfer month.” Administrators and anyone with editing permissions for the “DATEV Rechnungsdatenservice 1.0” page can modify the “Transmit DATEV invoices” task. The “Background Services” page is only accessible to users who also have read permissions for “Server Info & Health Check.”
If invoices remain unprocessed during the daily run—for example, due to an error—a warning email specifying the month and number of invoices is sent to the shop’s designated warning email recipients. The message displays the reasons when you resubmit the month in the “Transfers” tab using “Transfer month”: Clicking this button submits whatever can be submitted and lists the reason for up to 20 of the remaining invoices. If the run does not start at all—for example, due to a lack of connection to DATEV—no warning email is sent; the error is then displayed on the “Background Services” page. Jobs that DATEV has rejected or only partially processed do not trigger a warning email; their status is listed in the “Transfers” tab.
If the DATEV Rechnungsdatenservice 1.0 is switched on and a client ID has been entered, “Transfer to DATEV” appears in the header of every order with an invoice that has not yet been transferred. Click to enlarge.
If an order is canceled after it has been transferred, the invoice remains in DATEV. The line in the “Transfers” tab will then show “Cancelled after the transfer. Please correct this in DATEV.” The shop does not transfer invoice corrections.
The “Transfers” tab
The “Transfers” tab lists every transferred invoice along with the order, customer, invoice, month, job, “Transferred on,” and status, 50 per page. Use the “Month” and “Filter” fields to display only one posting month; “Transfers of this job” in the “Test transmission” tab displays only one job; “Reset filter” clears both. For each row, “Show protocol” displays the transferred posting data and the DATEV processing log; “Refresh status” checks the job’s status with DATEV. If the store has adjusted an invoice number for DATEV—for example, by replacing an invalid character with a hyphen—this is noted in the log under “Invoice number adjusted for DATEV.”
| Status | Display | Meaning and What to Do |
|---|---|---|
| 0 | “Open, not yet completed” | Created in DATEV but not yet completed. Only an open job can be deleted using “Delete job.” |
| 1 | “Processing” | DATEV is still processing the job. “Refresh status” checks the status; if the daily run is enabled, it automatically checks the status of jobs from the last 14 days. |
| 2 | “Processed successfully” | The document records are available in DATEV Belege online. |
| 3 | “Not processed, critical errors” | DATEV did not import anything. Fix the cause listed in the log, select “Delete locally,” and re-import the month. |
| 4 | “Partially processed, please check the errors” | Part of the data has been imported. Check the log for errors and correct them in DATEV; re-importing would result in duplicate documents. |
| 5 | “Cancelled” | The job has been canceled in DATEV; nothing has been imported. After clicking “Delete locally,” the invoice will be sent to DATEV again with the next transfer. |
| 6 | “Cancellation not possible” | DATEV was unable to cancel the job. Please check it in DATEV. |
| without a number | such as “transmitted” | DATEV has not yet reported a status; “Refresh status” prompts for it. |
- “Delete locally” is only available if DATEV hasn’t imported anything (statuses 3 and 5), and in the sandbox for any status except 0. After a confirmation prompt, it deletes only the link in the shop: The invoice is then considered not transferred and is sent to DATEV again with the next transfer. Nothing changes at DATEV; the log remains in the shop.
- “Delete job” is only available for an open job (Status 0). It deletes the job at DATEV and in the shop; its invoices are then considered not transferred.
- Help from DATEV: If DATEV reports an error, a link labeled “Help on this error” appears at the top of the page, leading to the corresponding help page on DATEV’s website.
The “Transfers” tab lists every transferred invoice along with its job and status; the legend below explains each status. Click to enlarge.
Test Transmission and Sandbox
In the “Test transmission” tab, you can check the login and process. If there is no connection, it will only display the message “No connection to DATEV. Please connect the shop in the settings.” and the “To the settings” button.
- “Create test job” creates an empty job in DATEV for the selected “Posting month,” without an invoice. This allows you to verify the login and permissions; you can then delete the open job using “Delete job.”
- “Jobs of this client” displays all jobs from tests and transfers, 20 per page. For each job, there are “Refresh status,” “Show protocol,” and “Transfers of this job” (opens the “Transfers” tab with this job as the filter); for an open job (Status 0), there is also “Delete job.” The log remains readable even after clicking “Delete locally.”
- “Transfer a single invoice as a test” transfers the invoice for an order number, just like the button in the order. The invoice is actually sent to DATEV in the configured environment and is then marked as transferred in the shop.
The sandbox only demonstrates the process. The “Sandbox (test)” environment at DATEV is a mockup with fixed responses for the test client 455148-1. For each job, it reports status 4, “Partially processed, please check the errors,” and always returns the same sample log with fictitious filenames and data; only the transferred posting data at the top of the log window is real. The sandbox does not indicate whether the format and postings are correct. It does not allow a test job to be deleted; it remains in the list.
“Debug mode (Sandbox only)” only works in the sandbox: The shop does not record transferred invoices in this mode; they do not appear under “Transfers” and are sent to DATEV again with every subsequent transfer. This toggle does not work in the Production environment.
Before switching to Production, remove the Sandbox transfers in the “Transfers” tab using “Delete locally”; otherwise, these invoices will be considered transferred and will never be sent to DATEV. After the switch, reconnect the store.
The “Test transmission” tab checks the login and process; the job list displays 20 jobs per page; in the Sandbox, DATEV reports each job with status 4. Click to enlarge.
Common Errors with DATEV
| Message | Cause | Solution |
|---|---|---|
| “Personal account … lies outside the debtor range …” | The starting value plus the customer ID or the collective customer does not match the general ledger account length for your client | Redefine the starting value or collective customer with the tax firm; the valid range is listed on the “Customers” page. For a general ledger account length of 5, the collective customer requires six digits. |
| “The invoice ledger … does not exist in DATEV …” | The outgoing invoice ledger in DATEV has a different name than “Outgoing Invoices” or the name entered under “Invoice ledger” | For “Invoice ledger,” enter one of the names listed in the message as available |
| “The outgoing invoice ledger is not activated in DATEV for this fiscal year,” “No matching fiscal year has been created in DATEV for month …” | Client not yet set up in DATEV Belege online | Work with your tax advisor to set up the fiscal year and activate the Outgoing Invoices Ledger |
| “The data set … does not exist in DATEV Belege online or is not set to the ‘Advanced’ processing mode.” | Client’s processing mode | Have the “Advanced” processing mode set in Belege online |
| Status indicator shows “Not connected” or “Connection expired”; in the “Test transmission” tab and in the message during transfer: “No connection to DATEV. Please connect the shop in the settings.” | Connection expired, disconnected, or revoked by DATEV | “Connect to DATEV” and log in again |
| “There are no (longer any) permissions in DATEV for data set ….” | The DATEV account used for login is not authorized to access this client, or the advisor and client numbers do not match | Verify the number and permissions with the tax firm, then reconnect |
| “The DATEV Rechnungsdatenservice 1.0 is switched off. …” when connecting, transferring, or “Test connection” | “DATEV Rechnungsdatenservice 1.0 active” is set to “No” or has not been saved | Set to “Yes,” click “Save,” then reconnect |
| “Invoice …: For intra-Community supplies and OSS, the shop’s VAT ID must be stored.” | The invoice includes an intra-Community supply or an OSS transaction, and no VAT ID number is listed under “Tax number of your company.” | Go to Settings → Design → Documents → Your Company’s Tax ID, enter your VAT ID, and resubmit the month |
| “For the chart of accounts …, the shop does not recognize any default accounts. Please enter the account … in the settings.” | DATEV reports a chart of accounts other than SKR03 or SKR04—or none at all—for your client | Enter the specified account under “Accounts”—it’s best to enter all accounts with the tax firm right away |
| “Order … is cancelled or an offer and will not be transferred.” | “Transfer to DATEV” or “Transfer invoice” does | Do nothing; canceled orders and quotes are not sent to DATEV |
| “There is no open order with an invoice number for this month.” | The invoices for the month have already been transferred, do not yet have an invoice number, or have been canceled | Check the “Transfers” tab and the invoice data for the orders |
| “A transfer is currently running for this month.” | The daily run or another click transfers the same month | Wait a moment and transfer again |
Lexware Office
- Under Settings → Interfaces → Inventory Management/ERPs/Accounting → Lexware Office, enter the “Lexware Office API Key” and set the “Lexware Office API Status” to “
true.” - “Automatic Transfer at Checkout” is set to “
true” by default. Orders that haven’t been transferred yet display the “Transfer to Lexware Office” button. “Transfer to Lexware Office Again” generates a second invoice; you can then cancel the first one in Lexware Office. - The store creates the contact or finds it using the email address, imports an EU VAT ID, and generates the invoice. “Lexware Office Print Layout ID” selects the PDF layout.
- For payment methods where the customer has already paid, a note replaces the payment terms: “Payment methods without payment terms on the invoice” and “Placement of the note on the invoice.”from 4.10
The guides “Statistics & Reports ” and “Processing Orders” describe how to export sales data as a CSV file and print invoices in batches.
Automation: n8n, Webhooks, and Slack
The store reports events to other services. These services then retrieve data via the REST API.
n8n
The Settings → Interfaces → Artificial Intelligence → n8n page has the tabs “Overview,” “Settings,” and “Events”:
- Enter the “n8n Instance URL,” “Instance Type” (n8n Cloud or self-hosted), and “n8n API Key,” then click “Test connection.”
- Create a webhook node in n8n and enter its address as the “Webhook URL.” A “Webhook Secret” signs each message in the header
X-Webhook-Signatureso that n8n can recognize legitimate messages. - Enable “Enable Webhooks” and, in the same “Settings” tab under “Event Configuration,” select the desired events, then click “Save.” By default, none are active. The “Events” tab then displays the status, an example payload, and the most recent webhook calls.
- “Send Test Event” checks the connection, and “Recent Webhook Calls” displays the results.
The signature only matches the unmodified body of the message. Therefore, in the Webhook node under “Options,” enable the “Raw Body” option and calculate the signature using a Code node or the Crypto node based on these exact bytes—not on the payload that has already been read. The store reports every event immediately and at most once: It typically waits a maximum of two seconds for n8n and does not repeat a message if n8n is currently unavailable.
You can configure the webhook URL, secret, and reported events in the “Settings” tab on the n8n page and save them by clicking “Save.” Click to enlarge.
| Event | is reported when … |
|---|---|
| "New Order" | an order is completed in the store |
| "Order Status Changed" | the status is changed in the backend |
| “New Customer” | a customer registers or is created in the backend |
| “Stock Changed” | an order affects inventory |
| “Newsletter Sign-up” | A subscriber confirms their subscription via double opt-in |
| “News Published” | A news article becomes active in the backend: newly created as active (including as a copy) or set from inactive to active, either in the article editor or using the toggle in the article list. Resaving an active article or imports via the REST API do not trigger a notification.from 4.9.168 |
The notification contains only a few details, such as order number, total, and payment method, or—for new customers—name and email address. The workflow retrieves additional data using its own access via the REST API; see REST API.
Webhook from a Marketing Event
The “Send Webhook (Generic / n8n / Zapier)” reaction sends customer or order data to an address of your choice, triggered by the conditions of an event. The “New Order to Webhook (n8n/Zapier)” template is a ready-to-use starting point; see Reactions.XONIC Premium: Marketing / Automatisierungen & Künstliche Intelligenz
Slack
Under Settings → Interfaces → Chat Tools → Slack, select “Enable Slack Notifications” and enter a webhook URL for each of the following: new orders, new tickets, and other notifications to send them to a Slack channel without needing a separate workflow.
Connecting a Fulfillment Service Provider
A service provider needs new orders and reports shipping status and tracking numbers back. There are three ways to do this.
REST API
A dedicated API endpoint with “Orders: Read” and “Write” permissions. The service provider retrieves new orders and reports status, comments, customer notifications, and tracking numbers via PUT. It reports inventory levels using “Products: Write.”
XML Files
The service provider retrieves the order files and returns Orders…xml for status and tracking numbers, as well as Storage…xml for inventory levels; see Order Export.
Via Billbee
If the service provider uses Billbee, Billbee retrieves the orders via the Shop Connector and reports the status back; see Billbee.
The simplest option without programming: an order export via Porter and the import of tracking numbers via CSV; see Exporting Orders and Customers.
Protect Fields from Synchronization
If an ERP system syncs regularly, it overwrites the data it provides. With these settings, individual fields retain the values you’ve entered in the shop.
On the product page: the data interface tab
Every saved product has a tab named after the interfaces that evaluate its locks, such as “xoPort Data Interface / xoPort CSV.” There, you specify which fields for this product may be overwritten during import. If a toggle is turned off, the import leaves the field unchanged. The number next to a group indicates how many of its fields are locked; the number on the tab indicates how many groups contain locked fields. The import always fully imports newly created items.
| Group | Toggle switches for the XML product import |
|---|---|
| Texts | “Update Name,” “Update Description”—selectable for each language |
| Prices | “Update Main Price,” “Update Tiered Prices,” “Update List Price,” “Update Discounts,” “Update Group Prices,” “Update Customer Prices,” “Update Special Prices” “Update MSRP”from 4.9.168 “Update Purchase Price”from 4.9.169 |
| Tax | “Update Tax Class” |
| Miscellaneous | “Update Bonus/Free Items,” “Update Product Images (Main and Additional Images),” “Update Product Status,” and “Update GTIN”; the last three from 4.9.168 |
With the plusH or winline integration, depending on their settings, additional tabs are added, such as “Update Base Price per Unit,” the “Inventory and Logistics” group (traffic light profile, stock level, minimum quantity, packaging unit), as well as category, brand, and label assignments. Without an XML interface, plusH, or winline, the tab is labeled “xoPort CSV” and contains only the name and description.from 4.9.155
An item with a fixed retail price: The main price, MSRP, and tax class remain unchanged during import; the ERP system continues to synchronize texts, images, and inventory. Click to enlarge.
- Forprice-regulated items such as books, lock them together using “Update Main Price” and “Update Tax Class.” Otherwise, a new tax class will change the gross price even if the net price is locked.from 4.9.26 If the inventory management system provides a MSRP, also lock “Update MSRP”: The store displays an MSRP higher than the selling price as a strikethrough price with a savings amount.from 4.9.168 “Update List Price” also protects the MSRP during XML import.
- The CSV Porter takes “Update Name” and “Update Description” into account; see “Protect Fields.”
- The REST API sets and removes the locks; see below. It writes whatever it sends itself despite the lock; only “Update Bonus/Free” also protects against it.from 4.9.169
- JTL-Connector, OpenXE/Xentral, and Bechlem do not process the locks.
Setting Locks via the REST API
Your ERP system or service provider can set the locks on an item using the “ import_blocks ” field. Starting with Shop 4.9.168, the API recognizes all the toggles on the tab, and the “ import_blocks_mode ” field determines what happens to locks that are not listed.from 4.9.168
| import_blocks_mode | Effect |
|---|---|
merge | Sets the specified locks additionally; does not remove any |
remove | removes exactly the specified locks |
replace | syncs the item with a complete list: Anything missing loses its lock, even if it was set on the tab. If the list contains an unknown entry, nothing changes. |
| No specification | As before: If a restriction for Name, Description, a price type, or the tax class is in the list, the list replaces these ten restrictions; those not listed are removed. It only adds other restrictions. An empty list removes all ten. |
Always have the program include a mode: merge to set restrictions, remove to remove them. The response for each item indicates whether each restriction was successfully applied. Field names and examples are listed in the API documentation.
Have blocks disappeared after an API sync? Up to Shop 4.9.167, a request containing a block that the shop did not yet recognize—such as uvp —could remove all blocks for the item’s name, description, prices, and tax class. The response would only report the warning “Unknown import block type.” Starting with version 4.9.168, such a list no longer removes blocks for fields it does not specify; the response lists the blocks that are retained.
If your program received this warning, check the affected items in the tab and reset any missing blocks. Programs that also serve stores running versions prior to 4.9.168 do not send a mode there and only send blocks for name, description, prices, and tax class—always including all blocks that are to remain in place.
After updating to 4.9.168: Older restrictions take effect
Starting with Shop 4.9.168, the XML product import takes into account restrictions that it previously skipped: MSRP, list price, discounts, product status, product images, and GTIN. Such restrictions may have been associated with the item for a long time, for example, from an earlier plusH integration. After the update, the import no longer updates these fields for locked items without reporting it. If the MSRP, an image, or the status no longer changes for individual items, check the tab first.
- Product Status with plusH and winline: A status lock now applies without exception. Even price checks (selling price below purchase price), hiding items the ERP no longer supplies, and deactivating main items will leave a locked item as is. Deleting items the ERP no longer supplies does not prevent the lock.
- winline deactivates main items without an active variant: Starting with version 4.9.168, they go offline at the end of the run; previously, they remained active. If such an item is to remain visible, activate a variant or disable “Update Product Status”; see Main items with winline.
- GTIN with winline: A locked GTIN remains active, and the order export reports the item with this number to the inventory management system. Lock the GTIN only if the inventory management system recognizes the item under that GTIN.
Main items with winline
With winline, a main item follows its variants: it remains active as long as at least one variant is active. The import sets the status at the end of the run, even if the “Produktstatus” toggle is turned off in the winline integration settings. A main item without an active variant will no longer go online briefly during the import, and a new one will remain offline until the end of the run.from 4.10
- Keep main items independent: If you manually deactivate a main item, it will become active again during the next import of its family, as long as a variant is active. If you want it to remain online or offline, lock it in the “Update Product Status” tab of the item. This lock is always available with plusH and winline, even if the “Produktstatus” toggle is turned off.from 4.10
- Variants you maintain in the store: If you maintain a variant of a family yourself in the store, the import will run through completely. Previously, it would abort at such a family: The following items would no longer be updated, and items the ERP no longer supplied would remain in the store.from 4.10
- Categories of main items: If the “plusH Kategorien” toggle is turned off in the winline integration settings, main items retain the categories you assign to them in the store. Previously, every import would remove them again.from 4.10
For all items: Product Import Settings
Under Settings → Interfaces → Inventory Management/ERPs/Accounting → xoPort Data Interface → xoPort: Product Import Settings, each product field is listed with its technical name, and each node in the file (node_…) has a Yes/No toggle. The XML product import does not apply anything set to “No” to any product. It always reads the product number and ID.
- If the merchandise management system provides a surcharge that you want to maintain in the shop, disable the corresponding field here—for example,
shipping_surcharge. - The import only creates new items if “
node_categories” and “node_languages” are enabled. They are enabled by default.
Categories
In the category screen, the “xoPort Data Interface” tab contains the buttons “Update Name,” “Update Description,” “Update SEO Fields,” and “Update Category Image.” These apply to the XML category import; when creating a new category, the system imports everything from the file.
The “xoPort Filter” field
The “xoport Filter” field is located on the “Miscellaneous” tab of the product. It does not protect anything, but rather assigns the product to exports: Enter one or more keywords, separated by semicolons. A porter with the same “Export Filter” will then export only products with that keyword, allowing product feeds to be restricted to specific products or to exclude certain products.
The Customer Number from the Inventory Management System
If your inventory management system uses its own customer numbers, this number is stored in the customer account. The store uses it for matching and on receipts.
- Where: in the customer profile, “Customer Data” tab, “Individual Customer Number (External)” field, up to 64 characters. The XML interface and the REST API populate this field during customer import; the XML customer import uses this number to identify accounts.
- On receipts: With Settings → Checkout → Customer Details → Use external customer number as own customer number set to “
true” (default), invoices and other receipts display this number instead of the customer ID. Whether the customer number appears on receipts at all is controlled by Settings → Design → Receipts → Customer Number. Guest orders do not include a customer number. - To change the assignment: Enter the new number in the customer account. When you save, the store checks to ensure no other account already has that number; otherwise, it displays the message “The customer … already has this customer number!” Receipts retrieve the number from the account when they are generated, so a newly created receipt will show the updated number.
For more information on customer IDs and unique numbers, see the “Managing Customers” guide.
Categories Reactivated After Synchronization
If you deactivate a category in the store and it becomes visible again after the next sync, the inventory management system determines its status.
| Integration | Behavior | Workaround |
|---|---|---|
| JTL-Wawi | Each category synchronization imports the active/inactive status and sorting from JTL-Wawi. | Deactivate the category in JTL-Wawi |
| XML Category Import | Imports status, sorting, “Category as Header Tab,” the sitemap entry, and the image from the file. If a value is missing, it sets the default value: active, sorting 0, no header tab, not in the sitemap, no image. If the short description, description, or SEO text for the language is missing, it clears these fields as well. | Include all values and texts in the file; lock the image using “Update Category Image.” There is no lock for status or texts. |
| OpenXE | Older versions reactivated every category on every run. | Update: Starting with 4.9.135, the status and settings of existing categories are preserved. Re-enter any lost settings once. |
Common Error Scenarios
Most issues are indicated by the interface’s response, a message in the dashboard, or a file that gets stuck.
| Observation | Cause | Solution |
|---|---|---|
REST API responds LICENSE_REQUIRED | Data interface not activated or disabled due to a missing license match | Report to us |
| REST API returns a 401 error | Token is missing or has expired; client is deactivated or secret needs to be renewed | Retrieve a new token; check the client and secret |
REST API responds INSUFFICIENT_PERMISSIONS | The account lacks permission for this area, or the program is still using a token from before the change | "Edit Permissions," then have the system retrieve a new token, or "Revoke Tokens" |
| The program is still accessing the system despite revoked permissions | A token that has already been issued remains valid for up to one hour with the old permissions | “Revoke Tokens,” see Revoking Tokens |
REST API responds with “ IP_NOT_ALLOWED,” and the dashboard shows “xoPort REST: Connection blocked” | Address is missing from the IP restriction | Enter the address specified in the response |
| REST API responds with 429 | Request limit reached | Bundle requests, reuse the token, and resend only after the time specified at Retry-After has elapsed |
| New item via REST API is missing | PUT Sent instead of POST, or the item number already exists | New items with POST, existing ones with PUT |
| XML file remains in the folder | File name starts differently (case-sensitive), does not end with .xml, is in the wrong folder, or no one is accessing the import address | Check the name and folder for " xoport/xml/import/ "; access the address via a cron job |
| XML call returns a 403 error; dashboard shows “xoPort: Access Denied” | XML interface is disabled, the key is incorrect, or the ERP system has a new IP address | “xoPort: XML Interface Can Be Used”—check AppKey and IP filter |
| Dashboard shows “xoPort interface is blocked” | Neither IP filter nor AppKey has been configured | Enter one of the two |
XML file ends up in error/ | File is unreadable, possibly due to incorrect character encoding | Save the file as UTF-8; check the line from the response |
| XML import does not create any new items | model Missing, or " node_categories " or " node_languages " are set to "No"; " Storage…xml " never creates new items | Check product import settings; use the product file |
| A value from the ERP system is not being received | Field is empty in the product import settings or there is an import lock on the item | Check the switch |
| XML import no longer changes an item’s MSRP, images, status, or GTIN after the update | An older lock on the item that the import respects starting with version 4.9.168 | Check the Data Interface tab and enable the toggle |
| Import locks are missing after a sync via the REST API | Up to Shop version 4.9.167, a call with an unknown lock would remove the remaining | Reset the locks; have the program send a request with ` import_blocks_mode ` |
| Shipping labels can no longer be printed or canceled after a confirmation | Up to Shop version 4.9, the confirmation via Orders…xml, the CSV action del, and the DFShop sync also deleted the shipping labels generated in the shop | Starting with version 4.10, they remain; the update does not restore labels that were previously deleted |
| DHL shipments are listed as “DHL Paketshop” or “Other Carrier”; the marketplace does not display DHL tracking information | Up to shop version 4.9, the confirmation via Orders…xml misidentified DHL links that came without a carrier | From 4.10, the shop recognizes DHL by the link; until then, have the inventory management system send the carrier |
| New, duplicate order statuses after the confirmation | The inventory management system reports a status name that the shop does not recognize | Standardize status names; delete redundant statuses |
| Afterbuy synchronization returns a 403 error | Starting with Shop version 4.9.167, xoport/secure/ only accepts requests from approved IP addresses or logged-in users | Enter the cron job’s IP address in “xoPort Customer & Order Directory IP Filter” or include the username and password in the address; see login credentials in the link |
| Afterbuy order remains open even though it has been shipped | Afterbuy reports neither a tracking number nor a shipping date; the additional info contains different text; the transfer to Afterbuy failed; the order is not among the 100 most recent open orders, or it is older than 180 days, for example an offer accepted late (from 4.10) | Check the Afterbuy status of the order, the additional info, and the shipping date in Afterbuy; otherwise, set the status manually—see Afterbuy |
| The tracking number from Afterbuy does not include leading zeros; DHL cannot find the shipment | Up to shop version 4.9, the synchronization read tracking numbers as numbers | Starting at 4.10, the zeros are retained; the update does not change saved numbers. A tracking address that adds the zeros with …piececode=00 should then be reset to …piececode= |
| Umlauts are incorrect in a CSV file | File character set | see “Preparing the File” |
After an update to the inventory management system, the cause is usually changed filenames, status names, fields, or a new web address. Check the dashboard messages, “View Usage” upon access, and the interface’s response. If it remains unclear, send us the timestamp and the response.
Frequently Asked Questions
Do I need a license for the xoPort API?
LICENSE_REQUIRED ”; see the overview.Where can I find the store’s API key?
What address and login credentials do I use for the REST API?
POST /xpanel/xoport/oauth/token; use /xpanel/xoport/export/json/<Bereich> for read operations and /xpanel/xoport/import/json/<Bereich> for write operations, each with Authorization: Bearer <Token>. All forms are listed under “Address and Login.”How do I retrieve all products page by page via the API?
?limit=250&offset=0, then offset=250, and so on, until has_more returns false in the response. The API does not return more than 250 records per page.Which fields can I write to via the API?
extra_fields` field, using either the field name or field ID. If you try to use them as a separate product field, the API will ignore them and return a warning.How do I access orders via the API?
GET /xpanel/xoport/export/json/orders; for a single order, use /xpanel/xoport/export/json/order/<Bestellnummer>. An access token with “Orders: Write” writes status, comment and tracking number back via PUT.How do I protect the xoPort interface by IP address, and which formats are supported?
203.0.113.0/24 are accepted only by the IP filter for protected Porter exports; see IP Restriction.How do I connect n8n to the shop?
What should the XML import file be named?
Products, Storage, or Orders —exactly as spelled here—and ends with .xml. It is located in the folder xoport/xml/import/; see Files and Addresses.Is the “quantity” field in the XML product import used for inventory?
quantity ” becomes the “Product Quantity (Inventory)” provided that “ products_quantity ” is enabled in the product import settings. Within features/feature, quantity represents the inventory level for the individual attribute value.How do I transfer the MSRP, purchase price, and attributes via XML?
evp, and the purchase price at cost; both are net amounts. Attributes are listed by value at features/feature, with name for the attribute and value for the value, along with stock, markup, item number, and GTIN. If the file contains attributes, they will replace all previous attributes for the item.How do I transfer group and customer prices via XML?
groups/group with the customer group ID, and customer prices at groups/customers/customer. A customer is assigned there via id or via external —the customer number from the inventory management system. Customer discounts are set by the REST API; see the API documentation.Is the order XML automatically updated when the status changes?
/xpanel/xoport/export/xml/order/<Bestellnummer>; see Order Export.How do I prepare an order for export again?
Why do the first name fields differ in the order XML?
customers_firstname for the customer, billing_firstname for the billing address, and delivery_firstname for the shipping address. If someone places an order on behalf of another person, these addresses will differ.Can two stores be connected via a shared JTL connector?
/xoport/jtlconnector/ with its own “JTL token.” Two online stores require two separate connections. Multiple domains within a single installation share one connector; see JTL-Wawi.What data does the JTL-Wawi connection synchronize?
When does the store mark an order from Afterbuy as “shipped”?
How do I resend an order to Afterbuy?
Can I integrate a fulfillment service provider via API or through Billbee?
How do I connect the store to DATEV?
Does the shop automatically transfer invoices to DATEV?
Why does the DATEV sandbox report every job with status 4?
How do I display the WaWi customer number instead of the shop ID on receipts?
Why do categories become active again after synchronization with the ERP system?
Why does a program still have access after a permission has been revoked?
How do I set or remove import locks via the REST API?
import_blocks ” field on the product and the “ import_blocks_mode ” mode: merge sets restrictions, remove removes them, and replace synchronizes with a complete list. This mode is available starting with Shop 4.9.168; see “Setting Restrictions via the REST API.”How does the xoPort toggle work for a product?
Why does the sync overwrite a value that I maintain in the store?
skip`.Do API credentials change when the site goes live?
How do I correctly enter login credentials in an export file?
https://benutzer:passwort@ihr-shop.example/…, just as “Info and Links” displays it. If the password contains # or %, enter %23 or %25, respectively; otherwise, the address will fail—see Porter exports.What are the feed files in the interface’s export folder for?
pp_gmc_…xml and doofinder_…xml in xoport/xml/export/ are the most recently generated product feeds for Google Merchant Center and Doofinder. The store regenerates them each time they are retrieved.How do I get external data access, for example, for analysis?
Further Guides
We’ll integrate your inventory management system with yours
We’ll work with you to determine the best approach, set up data imports and synchronization, and help you identify the cause if data isn’t coming through.
Contact Support Now