Setup
Configurations
This guide walks you through the complete setup of the SQL X-Store App — from creating a company to syncing data from E-commerce platforms and SQL Account.
Step 1: Create Company
-
Click Create Company on the Company List page

-
Enter the Company Name, Email, and Phone Number
-
Click Create Company

-
Select the newly created company

-
The system will navigate to the Company Profile page

Step 2: Link Store
Connect E-commerce stores to sync store, product, order, and payment data.
-
Click Stores in the sidebar

-
Click Link Store

📌 For detailed instructions on linking a store, navigate to Integration > XStore > Stores
Auto-Sync Behavior
- After linking, the system automatically syncs the past 3 days of product, order, and payment data.
Step 3: Configure SQL Account Settings
-
Click Settings > Company in the sidebar

-
Click Edit

-
Copy the Access Key and Secret Key from SQL Account and paste them into the respective fields to enable SQL sync. Then, click Test Connection

-
Click Save

Step 4: Code Mapping
Sync Stock, Customer, Location, and Payment codes from SQL Account to map code types (Location, Project, Voucher, Discount, Shipping, Transaction, Payment, and Customer) required for posting invoices to SQL Account.
-
Click Stores in the sidebar

-
Click the icon of any store

-
A dialog will open:
-
Select the code type from the dropdown menu
-
Click Map Codes

-
To post orders to SQL Account, a default code must be configured. Without it, orders that include unmapped products cannot be posted

-
Select No Default Code to clear the previously selected default code.

-
-
Click the Refresh icon to get the latest code data

Step 5: Sync Stock Items from SQL Account
Sync stock items from SQL Account for product mapping and quantity control.
If an item has been mapped in the SQL Account E-Commerce module (using an Alternative Code), the mapping information will be used to automatically match the corresponding SKU in X-Store. You do not need to perform the mapping action again in Stock.
Ensure your store is mapped to the correct stock item location; otherwise, mapped items will not appear in Stock Detail.
-
Click Inventory > Stocks in the sidebar

-
Click Sync Stock

-
A dialog will open:

- Use the header checkbox to select all items, or select the checkboxes for the items you want to sync
- Click Sync Selected
-
The Synced count will increase after the items are synced successfully

-
Synced stock items will appear in the Data Table

Failed items can be retried individually. Learn more in Retry Sync.
Manual Sync
You can manually sync product, order, and payment data using the steps below.
Sync Product Data
-
Click Inventory > Products in the sidebar

-
Click the Sync icon

-
A dialog will open:

- Select the checkboxes to choose stores
- Click Sync Selected
-
A success message is displayed when the sync is completed. Then, click Next Sync to sync the next store.

Sync Order / Payment Data
Order and Payment data are synced together using the same Sync Dialog. The dialog is accessible from both modules.
-
Click Orders or Payments in the sidebar

-
Click the Sync icon

-
A dialog will open:

- Select a Sync Mode:
- Sync by Created Date: sync the orders based on the order creation date
- Sync by Updated Date: sync the orders based on the order's latest updated date
- Set the Date Range for the data you want to sync. Use Quick Select to auto-fill common ranges
- Select the checkboxes to choose stores
- Click Sync Selected to start the sync
- Select a Sync Mode:
Retry Sync

If any sync operation fails, you can retry it by:
- Select the rows that you would like to retry
- Click Retry Selected
Sync results are retained for 3 hours after syncing and will be automatically deleted afterward.