Set up and Configuration
Overview
B2B Customer Sync connects XoroERP with Shopify to synchronize company information, identify customers when Shopify orders are imported into XoroERP, and apply customer-specific pricing through Shopify B2B Catalogs.
The configuration depends on the client's business requirements. For example, a client who only wants to import Shopify orders needs a different setup from a client who also wants to synchronize company locations and customer-specific prices.
This guide explains how to select the appropriate settings, map customer and item identifiers, configure pricing rules, and validate the integration.
1. Identify the Client's Requirements
Before configuring the integration, determine which functionalities the client needs.
Client Requirement
Configuration Area
Synchronize B2B company information from Shopify to XoroERP
Enable B2B Company Sync
Synchronize company information from XoroERP to Shopify
Enable B2B Customer Sync
Import Shopify orders and associate them with the correct XoroERP customer
B2B Customer Sync Type and Customer Identifier Field
Apply customer-specific pricing in Shopify
Sync B2B Prices and XoroERP Pricing Rules
Synchronize company locations for catalog pricing
Sync B2B Locations in Catalog
Map XoroERP items to Shopify product variants
B2B Price Sync Item Custom Field
Synchronize additional customer information
Sync Customer Metafields
A client may require one or more of these workflows. Configure only the settings relevant to the agreed requirements.
2. Understand the B2B Sync Settings
Navigate to the Sales Channel App configuration in XoroERP and open the B2B Sync section.
2.1. Enable B2B Sync
Enable Enable B2B Sync to activate the B2B synchronization workflows, including company synchronization and pricing rules.
2.2. Enable B2B Company Sync
Purpose: Synchronizes B2B company data from Shopify to XoroERP.
When enabled, the integration synchronizes company information, associated customers, and company locations from Shopify to XoroERP.
Synchronization direction: Shopify → XoroERP.
Enable this setting when the client's Shopify B2B company information needs to be available in XoroERP.
2.3. Enable B2B Customer Sync
Purpose: Synchronizes company-type customer information from XoroERP to Shopify.
When enabled, XoroERP can synchronize company information and create the corresponding B2B company, company location, and associated customer contact in Shopify.
Supported information includes:
Company details.
Associated customer/contact information.
Billing and shipping addresses.
Payment terms, where supported.
Supported tax exemptions.
Customer metafields, where configured.
Synchronization direction: XoroERP → Shopify.
The customer type created through the documented company synchronization workflow is always Company.
2.4. Example of Company Synchronization
Suppose the following company is created in XoroERP:
Field
Example Value
Company Name
ABC Supplies
First Name
John
Last Name
Smith
Billing Address
100 Market Street
Shipping Address
25 Warehouse Road
When the company is synchronized, Shopify creates the corresponding B2B company and associated location and contact records. John Smith is used for the associated customer contact, and supported address information is synchronized to the relevant location address fields.
Other supported information, such as payment terms, tax exemptions, and customer metafields, is synchronized according to the configured settings.
Important: Company synchronization and order customer identification are separate configuration requirements. Synchronizing a company does not eliminate the need to configure the correct identifier for incoming Shopify orders.
3. Configure Customer Identification for Incoming Shopify Orders
When a Shopify order is imported into XoroERP, the integration must identify which XoroERP customer should be associated with that order.
The identification method depends on whether the client manages customers at the company, customer/contact, or company location level.
3.1. Select the B2B Customer Sync Type
In the B2B Sync configuration, locate B2B Customer Sync Type.
The available options are:
B2B Customer Sync Type
Shopify Identifier Used
When to Use
Sync B2B Company as Customer
Company ID
When the company represents the relevant XoroERP customer.
Sync B2B Customer as Customer
Customer ID
When the customer/contact identifier is used to identify the XoroERP customer.
Sync B2B Location as Customer
Company Location ID
When individual company locations need to map to separate XoroERP customer records.
Choose the option that matches the client's customer structure in XoroERP.
Example:
ABC Supplies has one company in Shopify with two locations: Main Office and Warehouse.
If both locations should use one XoroERP customer record, company-level identification may be appropriate.
If each location needs to map to a separate XoroERP customer record, location-level identification may be appropriate.
If the integration identifies the customer using the Shopify customer/contact record, customer-level identification may be appropriate.
Confirm that the selected option matches the actual customer structure and supported integration behavior.
3.2. Configure B2B Customer Sync Customer Custom Field
Purpose: Specifies the XoroERP customer custom field used to store the Shopify identifier required by the configured synchronization workflow.
Configure this field according to the selected B2B Customer Sync Type.
Selected Synchronization Type
Identifier to Store in XoroERP
Sync B2B Company as Customer
Shopify Company ID
Sync B2B Customer as Customer
Shopify Customer ID
Sync B2B Location as Customer
Shopify Company Location ID
Configuration Steps
Identify the XoroERP customer custom field intended to store the Shopify identifier.
Open the Sales Channel App configuration.
Navigate to B2B Sync.
Locate B2B Customer Sync Customer Custom Field.
Select the appropriate customer custom field.
Confirm that the field is consistent with the selected B2B Customer Sync Type.
Save the configuration.
3.3. Match the Customer Identifier Field
The customer custom field selected for the B2B customer mapping must match the Customer Identifier Field used in the relevant order synchronization configuration.
This ensures that the incoming Shopify order can be matched against the intended XoroERP customer.
For example:
If the order is identified using a Shopify Company ID, the configured mapping must use the company identifier.
If the order is identified using a Shopify Customer ID, the mapping must use the customer identifier.
If the order is identified using a Shopify Company Location ID, the mapping must use the location identifier.
Important: Do not store a Company ID in a field expected to contain a Company Location ID. The identifier type must match the selected synchronization method.
3.4. Validate Incoming Order Synchronization
After configuring the identifier mapping:
Verify the Shopify identifier associated with the relevant company, customer, or location.
Confirm that the corresponding XoroERP customer custom field contains the correct identifier.
Verify the Customer Identifier Field used for order synchronization.
Import a test Shopify order using the supported synchronization process.
Open the resulting order in XoroERP.
Confirm that the order is associated with the intended customer.
If the order is assigned to the wrong customer, first check the identifier type and custom field mapping.
4. Configure B2B Price Sync
Use B2B Price Sync when the client needs customer-specific pricing in Shopify.
XoroERP Pricing Rules determine which customers and items are eligible for a price adjustment. The resulting pricing information is synchronized to Shopify B2B Catalogs and mapped to the relevant company locations and products.
The process involves three main steps:
Map XoroERP customers to Shopify company locations.
Map XoroERP items to Shopify product variants.
Create Pricing Rules and synchronize the resulting prices.
4.1. Enable Sync B2B Prices
Purpose: Enables the synchronization of B2B catalog pricing from XoroERP to Shopify.
When enabled, XoroERP Pricing Rules are used to determine the pricing applied in Shopify, according to the configured mapping.
Enable this setting when the client needs B2B pricing to be maintained through XoroERP and synchronized to Shopify Catalogs.
4.2. Configure B2B Price Sync Type
The B2B Sync configuration displays Price Sync Custom Field Map as the B2B Price Sync Type.
Select the supported price synchronization type according to the integration configuration. Confirm the intended behavior of any additional available options before using them.
4.3. Enable Sync B2B Locations in Catalog
Purpose: Enables the synchronization of B2B catalog locations from XoroERP to Shopify.
When enabled, the integration maps the applicable pricing information to the corresponding Shopify company locations.
Enable this setting when the client needs catalog pricing associated with specific company locations.
5. Map XoroERP Customers to Shopify Company Locations
5.1. Configure B2B Price Sync Customer Custom Field
Purpose: Identifies the XoroERP customer custom field containing the Shopify Company Location ID.
This identifier links the relevant XoroERP customer record to the appropriate Shopify company location for catalog pricing.
This setting is different from B2B Customer Sync Customer Custom Field, which is used for the customer identification workflow.
Configuration Steps
Identify the XoroERP customer custom field that stores the Shopify Company Location ID.
Open the Sales Channel App configuration.
Navigate to B2B Sync.
Locate B2B Price Sync Customer Custom Field.
Select the appropriate customer custom field.
Confirm that the relevant XoroERP customer records contain the correct Shopify Company Location IDs.
Enable Sync B2B Locations in Catalog if required.
Save the configuration.
5.2. How Company Locations Are Used in Catalogs
Shopify Catalogs can be associated with company locations. XoroERP uses the configured location mapping to associate pricing with the relevant Shopify company locations.
For example, if a Pricing Rule applies to a group of wholesale customers, the corresponding mapped company locations can be included as catalog recipients according to the configured synchronization.
After synchronization, verify that the correct company locations are associated with the intended Shopify Catalog.
6. Map XoroERP Items to Shopify Product Variants
6.1. Configure B2B Price Sync Item Custom Field
Purpose: Identifies the XoroERP item custom field containing the Shopify Variant ID used to map items to Shopify products and variants for catalog pricing.
The field selected in B2B Price Sync Item Custom Field must be the same item-level custom field in which the relevant Shopify Variant ID is stored.
Configuration Steps
Identify the XoroERP item custom field intended to store the Shopify Variant ID.
Confirm that the relevant Shopify Variant IDs are populated for the XoroERP items.
Open the Sales Channel App configuration.
Navigate to B2B Sync.
Locate B2B Price Sync Item Custom Field.
Select the appropriate item custom field.
Save the configuration.
Synchronize the relevant pricing information.
Verify that the intended products and prices appear in the Shopify Catalog.
6.2. Handling New Shopify Variants
When a new product variant is created in Shopify, Shopify generates a Variant ID.
The corresponding identifier must be stored in the designated XoroERP item custom field used for B2B Price Sync.
The field selected in B2B Price Sync Item Custom Field must match the field in which the Shopify Variant ID is stored.
Confirm whether the Variant ID is populated automatically or through another supported process before production implementation.
6.3. Items Without a Shopify Variant ID
The configured mapping uses the Shopify Variant ID stored in the selected XoroERP item custom field.
Items with the required identifier populated are eligible for mapping through this configuration. Confirm the exact behavior for missing, invalid, or duplicate identifiers with the integration team.
7. Create Pricing Rules in XoroERP
Pricing Rules determine the customer scope, item scope, and price adjustment used for B2B catalog pricing.
7.1. Define the Customer Scope
The customer scope determines which customers the rule applies to.
Option
Purpose
Customer Group
Applies the rule to customers belonging to the selected group.
Any
Applies the rule to all customers within the rule's supported scope.
For example, a wholesale pricing rule can be assigned to a Wholesale Customer Group rather than applying to every customer.
7.2. Define the Item Scope
The item scope determines which items are eligible for the rule.
Option
Purpose
Any
Applies the rule to all items within the rule's supported scope.
Season
Applies the rule to items associated with the selected season in Item Centre.
If the rule uses Season, ensure that the relevant items have the appropriate season assigned in XoroERP.
7.3. Configure Pricing Rule Criteria
Configure the following fields:
Field
Purpose
Price Adjustment Type
Select Markup or Markdown.
Value
Specifies the adjustment value according to the supported configuration.
Cost Price
Selects the item-level price field used as the calculation basis.
The selected cost-price field determines the price used as the basis for the adjustment.
Confirm whether the Value field represents a percentage or a fixed amount in the applicable configuration before calculating expected prices.
7.4. Example Pricing Rule
Suppose a client wants special pricing for wholesale customers purchasing items from a particular season.
Configuration
Example
Rule Name
Wholesale Seasonal Pricing
Customer Group
Wholesale Customers
Item Scope
Season
Price Adjustment Type
Markup
Value
10% (illustrative)
Cost Price
A supported item-level cost field
Shopify Catalog Title
Wholesale Seasonal Pricing
To configure this rule:
Select the Wholesale Customers group.
Select the relevant season.
Choose Markup as the adjustment type.
Enter the required adjustment value.
Select the appropriate cost-price field.
Save the Pricing Rule.
Ensure the required customer location and item identifiers are populated.
Synchronize the pricing information to Shopify.
Verify the resulting Catalog.
7.5. Match the Pricing Rule Name to the Shopify Catalog Title
The Pricing Rule name in XoroERP should match the corresponding Shopify Catalog title.
For example:
XoroERP Pricing Rule: Wholesale Seasonal Pricing
Shopify Catalog: Wholesale Seasonal Pricing
The matching names help align the rule with the intended catalog synchronization workflow.
7.6. Validate Catalog Pricing in Shopify
After synchronization, open the relevant Catalog in Shopify and verify:
Catalog Section
What to Check
Title
Matches the XoroERP Pricing Rule name.
Company Locations
Contains the intended recipient locations.
Products
Contains the intended products or variants.
Price
Reflects the applicable synchronized pricing.
Price Adjustment
Reflects the configured adjustment when price adjustments are sent.
Compare-at Price
Shows the original price when configured and not suppressed by other settings.
If a location is missing, review the customer location mapping. If a product is missing, review the item Variant ID mapping and the item's eligibility under the Pricing Rule.
8. Configure Additional Pricing Settings
The following settings provide additional control over price synchronization.
8.1. Do Not Send Price Adjustment
Purpose: Prevents price adjustments from being sent with Shopify B2B catalog price lists.
When enabled, XoroERP does not send price adjustments as part of the catalog price lists.
When disabled, price adjustments can be sent according to the configured Pricing Rules.
Enable this option when Shopify Catalogs should not receive price adjustment information.
8.2. Do Not Send Compare At Price in Catalog
Purpose: Prevents compare-at prices from being sent with Shopify B2B catalog fixed prices.
When enabled, compare-at prices are excluded from the fixed prices sent to Shopify.
When disabled, compare-at prices can be sent according to the applicable configuration and pricing logic.
Enable this option when compare-at prices should not be sent to Shopify Catalogs.
8.3. Fetch Price Catalog on a Recurring Basis
Purpose: Automatically fetches available price catalogs at recurring intervals.
When configured, the system periodically fetches available price catalogs according to the configured interval.
Use this setting when catalog information needs to be refreshed regularly. Confirm the available interval options and exact fetch behavior from the configuration interface.
8.4. Round Up Calculated Price
Purpose: Rounds the calculated B2B catalog price upward to two decimal places before sending it to Shopify.
Example:
Calculated price: 125.341
Price after upward rounding: 125.35
Enable this setting when calculated catalog prices must be rounded upward to two decimal places.
8.5. Send Compare At Price
Purpose: Sends the original XoroERP price, before markup or markdown calculations, to Shopify as the compare-at price.
Example:
Price Field
Example Value
Original XoroERP Price
100.00
Calculated Catalog Price
110.00
Compare-at Price
100.00
When enabled, the original XoroERP price can be sent as the compare-at price while the calculated price is used as the applicable catalog price, subject to the other pricing settings.
Important: Review Send Compare At Price and Do Not Send Compare At Price in Catalog together. Validate the effective behavior when both controls are configured.
9. Synchronize Customer Metafields
Use Sync Customer Metafields when the client needs supported XoroERP customer properties to be synchronized to Shopify as customer metafields.
For example, a supported sales representative property may be mapped to a Shopify customer metafield.
Configuration Steps
Identify the XoroERP customer property that needs to be synchronized.
Identify the corresponding supported Shopify customer metafield.
Configure the mapping using the available integration settings.
Synchronize a test customer using the supported process.
Verify the value in Shopify.
Important: Customer metafields and customer identifier custom fields serve different purposes.
Customer identifier custom fields are used for record identification and mapping.
Customer metafields are used to transfer supported additional customer information.
Confirm the supported source fields, destination metafields, and data types before configuring production mappings.
10. End-to-End Implementation Checklist
Use this checklist before handing over the integration.
Company Synchronization
Enable B2B Sync is configured.
The required direction-specific setting is enabled.
The company appears in the expected system.
Associated contact and location records are correct.
Supported addresses, payment terms, tax exemptions, and metafields are validated where applicable.
Incoming Shopify Orders
The correct B2B Customer Sync Type is selected.
The customer custom field contains the appropriate Shopify identifier.
The Customer Identifier Field used for order synchronization matches the intended identifier mapping.
A test order has been imported.
The imported order is associated with the correct XoroERP customer.
B2B Price Synchronization
Sync B2B Prices is enabled.
The B2B Price Sync Type is configured appropriately.
B2B Price Sync Customer Custom Field contains the Shopify Company Location ID.
B2B Price Sync Item Custom Field contains the Shopify Variant ID.
Sync B2B Locations in Catalog is enabled if required.
Pricing Rules have the correct customer and item scope.
The price adjustment type, value, and cost-price field are correct.
The Pricing Rule name matches the Shopify Catalog title.
The intended company locations, products, and prices appear in the Catalog.
Compare-at pricing and rounding settings have been validated.
Customer Metafields
The required source customer properties have been identified.
The supported Shopify metafield mappings have been configured.
A test customer has been synchronized.
The expected values have been verified in Shopify.
11. Troubleshooting
Issue
What to Check
Recommended Action
Company does not synchronize
Check Enable B2B Sync and the relevant direction-specific setting.
Verify the configuration and review the synchronization result or logs.
Shopify order is assigned to the wrong XoroERP customer
Check B2B Customer Sync Type and Customer Identifier Field alignment.
Correct the identifier mapping and retest.
Catalog is assigned to the wrong company locations
Check B2B Price Sync Customer Custom Field and stored Company Location IDs.
Correct the location mapping and retest.
Product is missing from the Catalog
Check B2B Price Sync Item Custom Field and the stored Variant ID.
Verify the identifier and confirm that the item is eligible for synchronization.
Catalog price is incorrect
Check the Pricing Rule's customer group, item scope, adjustment type, value, and cost-price field.
Correct the rule and validate the resulting price.
Compare-at price is missing
Check Send Compare At Price and Do Not Send Compare At Price in Catalog.
Confirm the effective settings and retest.
Customer metafield is missing
Check the configured source field and supported destination metafield.
Correct the mapping and validate the result.
Newly created Shopify variant is not mapped
Check whether the Variant ID is stored in the configured XoroERP item custom field.
Populate or synchronize the identifier through the supported process.
If the configuration appears correct but the behavior is still unexpected, review the available synchronization logs and confirm the implementation details with the integration team.
12. Important Implementation Considerations
Before production rollout, confirm the following details with the integration development team wherever they are not already documented:
How missing, invalid, or duplicate customer and item identifiers are handled.
Whether Shopify Variant IDs are populated automatically in XoroERP.
How existing records are updated when source data changes.
How the integration behaves when multiple synchronization settings are enabled.
Which customer metafield types and mappings are supported.
How the Pricing Rule adjustment value is interpreted.
How compare-at price controls interact.
The recurring catalog fetch interval and error-recovery behavior.
Summary
The correct B2B configuration depends on what the client wants to achieve.
For company synchronization: Enable the appropriate company synchronization setting for the required direction.
For incoming Shopify orders: Select the correct B2B Customer Sync Type and align the customer identifier fields.
For B2B catalog pricing: Configure customer location mapping, item Variant ID mapping, and XoroERP Pricing Rules.
For additional customer information: Configure supported customer metafield mappings.
Before go-live: Test each required workflow and validate the resulting records in the destination system.
The most important implementation principle is to use the correct identifier in the correct custom field. Customer identification for incoming orders, company location mapping for catalog pricing, and item Variant ID mapping are separate requirements and must be configured accordingly.
Last updated
Was this helpful?