This module enables sending order information from Aliexpress marketplace orders to the website admin panel in the Shopy-Script application. Plugin requests order data at a set frequency and updates it in the Shopy-Script application if any changes occur. This allows convenient control over inventory levels and order stages by status.
In the order list, a marketplace icon and order number are displayed. Inside each order, there is an information block with additional useful details - order number, shipping and delivery date.

No, plugin does not send products to the Marketplace; you should use another solution for that.
FBS Cainiao, other FBS providers, or self-fulfillment.
This functionality is not available, and there are no development plans in this direction.
The plugin is installed as usual via the installer. To configure it, you will need access to your Aliexpress seller account. All settings are available within the plugin under the section Plugins -> "Integration with AliExpress".

To work with multiple stores, plugin includes a profile feature. For each store, you can set individual conditions. Add a new profile by clicking the green plus sign.

You will be prompted to enter a profile name and select a working model:

Don't forget to check the box next to "Active profile" to ensure orders are delivered to the admin panel.

In this field, you can enter the name of the sales channel that will be displayed in the order list. It will be different for each profile. In the future, it will be convenient to filter orders by this value.

In this section, you must select what exactly you have in the product's SKU ID (SKU CODE) field on AliExpress to match this value with products in the store (to find products in the store). It could be: product ID / SKU ID / "Article code" / SKU ID + s + SKU ID.

More information about them:
Product ID and SKU ID are system values in Shopy-Script application. They are generated when a product is created and never change.
Displayed on the product edit page:

Displayed when editing SKUs:

This is an arbitrary value that can be entered during product editing:

This format is used when exporting products via plugins Yandex.Market. In this case, the offerID for SKUs is used, for example: 1234s4567. If the product has no SKUs, only the product ID is used - 1234.
The selected values must match those already uploaded to AliExpress.
This setting allows you to specify the internal shipping and payment methods that will be selected when creating an order in the admin panel. This may be necessary for integration with other systems. If this field is left empty in the order, it may cause errors during synchronization with those platforms. This step is not mandatory; empty fields are not critical for most stores.

When this option is enabled, the AliExpress marketplace order number will be added to the order comment. This may be useful for forwarding to other systems or for printing.

If this option is enabled, the shipping date will be added to the order comment. This can be useful when transferring data to other systems or for printing purposes.


To obtain access keys for your AliExpress seller account, you need to register your "API application", which will give you an individual limit of 1 million requests per day, and your access token will remain valid for 1 year.
To register your "API application", please refer to this guide.
Authorization is required to access your store data on AliExpress. To do this, click this link in a new tab and log in to your AliExpress seller account:

After entering your username and password, you will see an English message authorizing the "Integration with AliExpress" plugin:

Click the "Authorize" button. This will redirect you to a page displaying the "Authorization Code":

Copy it by clicking the appropriate icon. Return to your plugins settings, paste the code into the "Authorization Code" field, and click "Obtain Token":

If the code is correct, the token code and its validity period will appear below:

Note! According to AliExpress API rules, the token remains valid for 1 year if you are using the "self-developer" application.
From this date onward, all orders placed on that day and later will be sent to the site's admin panel. By default, this is the application installation date. You can select any other date.

The way the Aliexpress API works does not involve sending any data to the store. Shop must constantly check Aliexpress for any changes in orders.
You can perform this check using a one-time script launched via the "Receive orders" button, or configure regular automatic execution of commands using a CRON schedule in the "Client Center" of Web Systems Pro.
Copy the CRON command from the application settings:

Add the task to your website's CRON schedule. Read more about how to add a CRON command here.

In this section, you can set up regular sending of current product availability to AliExpress.
In this section, you can select the group of products whose availability will be determined for this store. These can be categories / lists / product types. If AliExpress requests availability for a product not among the selected items, no stock information will be sent for it. Only the selected product list will be considered when sending outgoing stock updates.

In this section, you can select the warehouses that will be used to determine product availability for this store.

When the option "Upon order creation, deduct from the same warehouses" is enabled, products will be deducted exactly from the warehouses selected in this section when an order is created.
In this section, you can specify any custom "in stock" value instead of real availability. When sending stock levels via the API to AliExpress, the actual availability will be replaced with the specified values. For example, instead of 5 you can send 0. Or, if a product's availability is "unlimited" but you know you cannot sell more than 30 units, set inf = 30.

This settings section is responsible for independent stock sending to AliExpress.
Two methods are possible:

Note: due to AliExpress API limitations, the stock update rate is 60-100 items per minute. Subsequent runs are slightly faster. Running too frequently is not recommended.
The date of the last run is displayed below.
The "Reset all linked products" button removes from the database all previously found linked IDs in the store = Product ID of the product in AliExpress. This button may be needed in case of significant changes in marketplace inventory or in case of any issues.
You can configure certain order actions in your store to be performed when the status changes on AliExpress (this is optional):

Example: you want the order status in your store to change to "Completed" when the customer receives the product. Select the action in the settings that sets the order status to "Completed", for example like this:

If your business model is "Third-party FBS services or independently", this section allows you to select an internal action that will send information to AliExpress that the order has been shipped:

Unfortunately, there are currently no API methods available for processing orders according to the most popular business model, so you must handle such orders in your personal AliExpress account. The information in the admin panel is purely informational and received passively.
Once an order is received, it is marked with, among other things, a marketplace icon:

An information block is present inside the order:

AliExpress statuses are displayed according to your personal account, and the maximum delivery date appears after the order is shipped.
The links "View order" and "Transfer sheets" provide quick access to your AliExpress account.
When operating under the "Third-party FBS services or independently" model, you have the ability to process the order directly within the website's admin panel.
To do this, follow these steps:
1) In the dropdown field of the information block, select a shipping method from the available options:

2) Enter the shipment tracking number using the appropriate button:

3) Click the "Send" button or perform the action defined in the settings. AliExpress will receive information that the order has been handed over for delivery.
