Connect Retool to the AliExpress Open Platform API by creating a REST API Resource with your app key and generated access token. Use the AliExpress API to build a dropshipping operations dashboard — search supplier products, track order status, monitor shipping times from Chinese suppliers, and manage your dropshipping product catalog from a centralized Retool admin panel.
| Fact | Value |
|---|---|
| Tool | AliExpress API |
| Category | E-commerce |
| Method | REST API Resource |
| Difficulty | Intermediate |
| Time required | 35 minutes |
| Last updated | April 2026 |
Build an AliExpress Dropshipping Operations Dashboard in Retool
Dropshippers sourcing products from AliExpress manage a complex operational workflow: finding reliable suppliers, tracking orders from Chinese warehouses, monitoring shipping times across multiple carriers, and ensuring product listings stay synchronized with supplier inventory. Managing all of this through AliExpress's consumer UI is inefficient at scale. Retool allows you to build a tailored operations dashboard that surfaces exactly the data your team needs — order status by supplier, average shipping times by product category, and product sourcing analytics — in a single configurable panel.
With a Retool-AliExpress integration, dropshipping operations teams can search AliExpress products with price, rating, and order count filters to qualify new suppliers; track all placed orders with real-time status updates from AliExpress's logistics API; calculate average shipping times per carrier and route to inform customer delivery estimates; and compare supplier pricing and reliability metrics to make sourcing decisions based on data rather than intuition.
AliExpress Open Platform uses a signature-based authentication mechanism: each API request includes your app key, a timestamp, and an HMAC-MD5 signature computed from your request parameters and app secret. While the signature computation requires a JavaScript helper function in Retool's JavaScript query, the base authentication is configured as a REST API Resource. Note that AliExpress API access is available through the Open Platform portal and requires application approval for certain endpoint categories.
Integration method
AliExpress connects to Retool through a REST API Resource using an app key and access token obtained via AliExpress Open Platform's OAuth flow. The API uses a signature-based authentication mechanism where requests are signed with your app secret and submitted to the AliExpress gateway. Retool proxies all requests server-side, keeping your app credentials secure and handling the request routing to AliExpress's API gateway.
Prerequisites
- An AliExpress Open Platform developer account registered at https://developers.aliexpress.com with an approved application
- Your AliExpress app key (App Key) and app secret (App Secret) from the Open Platform developer console
- An access token obtained via AliExpress's OAuth 2.0 flow if you need order management access (product search can use app-level auth in some cases)
- A Retool account with permission to create Resources and write JavaScript queries
- Familiarity with Retool's query editor, JavaScript query type, and Table component
Step-by-step guide
Register on AliExpress Open Platform and obtain credentials
Before creating the Retool resource, you need to register your application on the AliExpress Open Platform. Navigate to https://developers.aliexpress.com and sign in with your AliExpress or Alibaba account. Create a new application in the developer console and select the API categories you need: Product (for product search), Order (for order management), and Logistics (for shipping tracking). After your application is approved (approval can take 1-3 business days for some categories), locate your App Key and App Secret in the application detail page. These are your API credentials — the App Key is public and included in every request, while the App Secret is private and used only for request signing on the server side. For APIs that require user authorization (such as order management APIs that access a specific seller's orders), you will need to complete an OAuth flow to obtain a user-level access token. AliExpress's OAuth flow follows a standard pattern: redirect the seller to the authorization URL with your app key and redirect URI, receive an authorization code, and exchange it for an access token via a POST request. Once you have your credentials (App Key, App Secret, and access token if needed), store them as configuration variables in Retool: Settings → Configuration Variables → create ALIEXPRESS_APP_KEY, ALIEXPRESS_APP_SECRET, and ALIEXPRESS_ACCESS_TOKEN, all marked as Secret.
Pro tip: AliExpress Open Platform API categories have separate approval requirements. Product search APIs typically have faster approval than order management APIs. Apply for order management access early in your integration timeline since approval can take several business days.
Expected result: You have registered an AliExpress Open Platform application, obtained App Key, App Secret, and (if needed) an access token, and stored them as Secret configuration variables in Retool.
Create an AliExpress REST API Resource and authentication helper
Navigate to the Resources tab in Retool and click Add Resource. Select REST API. Name it 'AliExpress API'. In the Base URL field, enter https://api-sg.aliexpress.com/rest. This is AliExpress's global API gateway endpoint — for EU-based businesses, you may use https://api-eu.aliexpress.com/rest instead. AliExpress uses a signature-based authentication where each request must include: app_key, session (access token), timestamp, method (the API method name), format (json), v (2.0), sign_method (hmac-md5), and sign (HMAC-MD5 signature). Because the signature must be computed dynamically for each request, you cannot configure it as a static resource header. Instead, create all AliExpress queries as JavaScript query types in Retool, which allow you to compute the signature before making the request. For the REST API Resource, configure only the base URL without authentication — the JavaScript queries will handle authentication by computing the signature and passing all required parameters. Alternatively, if you use a simpler affiliate API endpoint (such as product search via the Affiliate API), the authentication is simpler: just pass app_key and api_sig as URL parameters. Click Save Changes. The AliExpress resource is set up with just the base URL; authentication details are handled per-query in JavaScript.
1// JavaScript helper — compute AliExpress request signature2// Include this at the top of AliExpress JavaScript queries3function computeAliExpressSign(appSecret, params) {4 // Sort params alphabetically by key5 const sortedKeys = Object.keys(params).sort();6 // Concatenate: secret + key1value1 + key2value2 ... + secret7 let signString = appSecret;8 for (const key of sortedKeys) {9 signString += key + params[key];10 }11 signString += appSecret;12 // HMAC-MD5 is not natively available in Retool JS — use MD5 library or13 // call a backend signing endpoint. For simpler affiliate APIs, use SHA256.14 // This is a placeholder — replace with your signing implementation.15 return signString; // Replace with actual HMAC-MD5 computation16}Pro tip: AliExpress's HMAC-MD5 signature requirement is the most complex part of this integration. For teams that want a simpler approach, consider using the AliExpress Affiliate API for product search (which has simpler auth) and a third-party order management tool for order tracking, then combining data in Retool via separate resources.
Expected result: The AliExpress API REST resource is created with the base URL configured. The JavaScript signature helper function is documented and ready to be included in API query code blocks.
Query AliExpress product search for supplier qualification
Create a JavaScript query to search AliExpress products. Because AliExpress requires request signing, use Retool's JavaScript query type rather than a standard REST query. In the Code panel, click the + button and select JavaScript query. Name it searchProducts. In the JavaScript query body, build the request parameters object, add all required AliExpress authentication fields, compute the signature, and use the fetch API or Retool's built-in RESTapi.query() to call the endpoint. For the AliExpress Affiliate Product Query API (aliexpress.affiliate.product.query), construct the parameters including: app_key, method, session, timestamp, format, v, sign_method, keywords, page_no, page_size, and sort. Alternatively, if you have access to a simpler product search endpoint via the Open Platform, create a standard REST query with the AliExpress API resource, set Method to POST, and configure the body as form-encoded parameters including all required auth fields. The product search response includes items with: product_id, product_title, sale_price, original_price, product_main_image_url, product_detail_url, evaluate_rate (rating), 30-day order count, and shipping_lead_days. Add a Text Input component named textInput_keywords for the search term, and a Dropdown for sort order (price ascending, orders descending, rating descending). Bind the Table to the search results using a transformer that flattens the nested response structure.
1// JavaScript transformer — format AliExpress product search results2const items = (data.aliexpress_affiliate_product_query_response?.resp_result?.result?.products?.product || []);3return items.map(product => {4 return {5 product_id: product.product_id,6 title: (product.product_title || '').substring(0, 80),7 sale_price: product.target_sale_price8 ? `${product.target_sale_price} ${product.target_sale_price_currency || 'USD'}`9 : 'N/A',10 original_price: product.original_price11 ? `${product.original_price} ${product.original_price_currency || 'USD'}`12 : 'N/A',13 discount: product.target_sale_price && product.original_price14 ? `${Math.round((1 - parseFloat(product.target_sale_price) / parseFloat(product.original_price)) * 100)}% off`15 : 'N/A',16 rating: product.evaluate_rate ? `${product.evaluate_rate}%` : 'N/A',17 orders_30d: product.lastest_volume || 0,18 shipping_days: product.ship_to_days || 'N/A',19 store_name: product.shop_url || 'N/A',20 detail_url: product.product_detail_url || ''21 };22});Pro tip: Use the orders_30d field (lastest_volume in the API response) as your primary supplier qualification signal. Suppliers with fewer than 100 orders in the last 30 days for a product you are considering may have unproven reliability. Combine this with the evaluate_rate (buyer satisfaction rate) to quickly filter high-volume, high-rated products.
Expected result: The product search panel displays AliExpress products matching the keyword with price, rating, 30-day order count, and estimated shipping time. Sorting by orders descending surfaces the most popular products from proven suppliers.
Build order tracking queries and the fulfillment status dashboard
Create queries to fetch and display order data from your AliExpress account. Order management requires user-level access token authentication. Create a JavaScript query named getOrders targeting the aliexpress.trade.order.get or aliexpress.solution.order.fulfillment.list API method. Construct the request parameters including the required auth fields (app_key, session, timestamp, sign) plus order-specific parameters: page_size (up to 50), page_no, create_date_start, create_date_end, and order_status filters. The order response includes: order_id, gmt_create (order date), order_status, payment_status, total_settle_amount (total cost), logistics_info (carrier, tracking number, status), and product details for each line item. Create a second query named getOrderLogistics for fetching detailed tracking information for a selected order. Use the aliexpress.logistics.express.reachable or aliexpress.logistics.order.track method with the order_id as the parameter. Bind the orders Table to getOrders results using a transformer. When a row is selected in the orders table, trigger getOrderLogistics to populate a logistics detail panel showing tracking events in chronological order. Add date range picker components for filtering orders by creation date, and a Dropdown for order status filtering (PLACE, IN_CANCEL, WAIT_SELLER_SEND_GOODS, SELLER_PART_SEND_GOODS, WAIT_BUYER_ACCEPT_GOODS, IN_ISSUE, IN_FROZEN, WAIT_SELLER_EXAMINE_MONEY, FINISH, IN_PROBLEM, etc.).
1// JavaScript transformer — format AliExpress orders for the Table component2const orders = (data.aliexpress_trade_order_get_response?.result?.order || []);3return orders.map(order => {4 const logistics = order.logistics_info_list?.aliexpress_order_logistics_info?.[0] || {};5 return {6 order_id: order.order_id,7 created_date: order.gmt_create8 ? new Date(order.gmt_create).toLocaleDateString()9 : 'N/A',10 order_status: order.order_status || 'N/A',11 payment_status: order.fund_status || 'N/A',12 total_cost: order.order_amount13 ? `${order.order_amount} ${order.order_currency || 'USD'}`14 : 'N/A',15 carrier: logistics.logistics_service_name || 'N/A',16 tracking_number: logistics.tracking_no || 'Not assigned',17 logistics_status: logistics.logistics_status || 'N/A',18 estimated_delivery: logistics.estimated_delivery_time || 'N/A',19 product_count: order.child_order_list?.aliexpress_trade_order_and_tax_item?.length || 020 };21});Pro tip: AliExpress order status codes use uppercase strings (e.g., FINISH, WAIT_BUYER_ACCEPT_GOODS). Add a color-coding mapping in your JavaScript transformer to convert these to human-readable labels and use Retool's Table cell background color feature to highlight orders in problematic statuses (IN_ISSUE, IN_PROBLEM) in red for easy identification.
Expected result: The order tracking table shows all orders with status, carrier, tracking number, and estimated delivery date. Selecting an order row loads the detailed logistics tracking event timeline in the detail panel below.
Common use cases
Build a product sourcing and supplier qualification panel
Create a Retool app where your sourcing team can search AliExpress products by keyword, category, and price range. Display supplier ratings, order counts, shipping times, and product prices side by side to quickly compare sourcing options. Add a 'Track Supplier' button that saves qualified suppliers to your database for ongoing monitoring.
Build a product sourcing panel with a keyword search input, price range sliders, and a results Table showing product title, supplier rating, minimum order quantity, price, and estimated shipping days from AliExpress product search API — sortable by order count descending to prioritize proven suppliers.
Copy this prompt to try it in Retool
Order tracking and fulfillment status dashboard
Build a Retool operations panel that shows all AliExpress orders associated with your account, with real-time status updates from AliExpress's logistics tracking API. Display order status, carrier information, tracking numbers, shipping origin and destination, and estimated delivery dates in a unified table with filter controls by status and date range.
Create an order tracking dashboard that queries all orders from the AliExpress order list API, displays a Table with order ID, product name, order status, logistics status, tracking number, and expected delivery date, with filters for pending/shipped/delivered status and a date range picker.
Copy this prompt to try it in Retool
Shipping performance analytics dashboard
Build a Retool analytics panel that aggregates shipping performance data from your AliExpress orders — average shipping time by carrier, on-time delivery rate by supplier country, and delivery exception rates. Use Chart components to visualize trends and identify logistics partners or shipping routes that are causing customer satisfaction issues.
Create a shipping analytics panel that pulls historical order and logistics data, uses a JavaScript transformer to calculate average days from order placement to delivery by carrier, shows a bar chart of average shipping time per carrier, and displays a table ranking suppliers by on-time delivery rate.
Copy this prompt to try it in Retool
Troubleshooting
API returns 'Invalid signature' or 'sign check failure' error
Cause: The HMAC-MD5 request signature is computed incorrectly. AliExpress requires parameters to be sorted alphabetically by key before concatenation, and the app secret must be prepended and appended to the parameter string. Any deviation — extra spaces, wrong parameter order, URL encoding differences — causes signature failure.
Solution: Verify your signature computation follows the exact AliExpress specification: (1) sort all parameter keys alphabetically, (2) concatenate as AppSecret+key1+value1+key2+value2+AppSecret (no separators), (3) compute HMAC-MD5 of this string using the App Secret as the key, and (4) convert to uppercase hex. Use AliExpress's signature testing tool in the developer console to validate your implementation before integrating with Retool.
Product search returns empty results despite valid keywords
Cause: The AliExpress Affiliate API requires a valid affiliate tracking ID (tracking_id) parameter for some product search methods. Missing this parameter returns an empty result set even when the search keyword is valid.
Solution: Add the tracking_id parameter (your AliExpress affiliate ID) to the product search request parameters. If you do not have an affiliate account, apply for one through AliExpress's affiliate program portal. Alternatively, use the AliExpress Open Platform's non-affiliate product search method if your application is approved for that access level.
Order queries return 'session required' or 'access denied' error
Cause: Order management APIs require a user-level OAuth access token (the 'session' parameter), not just app-level authentication. The access token must be obtained through AliExpress's OAuth authorization flow for the specific AliExpress seller account whose orders you are querying.
Solution: Complete the AliExpress OAuth authorization flow for your seller account: direct the account to the authorization URL (https://auth.aliexpress.com/oauth/authorize?response_type=code&client_id=YOUR_APP_KEY&redirect_uri=YOUR_REDIRECT_URI), receive the authorization code, and exchange it for an access token via POST to https://api-sg.aliexpress.com/rest. Store the token as a configuration variable and include it as the 'session' parameter in all order API requests.
API returns correct product data but images fail to load in Retool
Cause: AliExpress product image URLs use CDN domains that may require specific referrer headers. Retool's Table component renders image URLs in an img tag, but some AliExpress CDN endpoints block requests without proper referrer context.
Solution: Display the product image URL as a clickable link rather than an inline image, or use Retool's custom column renderer to show a thumbnail with the original URL. If images must appear inline, use a Retool Custom Component that wraps the image in an iframe with the AliExpress domain as the src, which bypasses the referrer restriction.
Best practices
- Store your AliExpress App Key, App Secret, and access tokens as Secret configuration variables in Retool — never include the App Secret in client-side code or expose it in query URLs.
- Cache AliExpress product search results in Retool Database using a scheduled Workflow — product data changes infrequently, and caching reduces API call volume and eliminates signature computation overhead for repeated searches.
- Implement supplier qualification scoring in a JavaScript transformer that combines rating, order volume, and shipping days into a single score, allowing your team to sort and filter supplier options by overall quality rather than individual metrics.
- Use AliExpress order status as a trigger for Retool Workflow notifications — set up a daily Workflow that identifies orders stuck in problematic statuses (IN_ISSUE, IN_PROBLEM) for more than 48 hours and sends Slack alerts to your operations team.
- Track shipping time performance by storing order placement dates and delivery dates in your own database, then calculate actual vs. estimated shipping time in Retool rather than relying on AliExpress's estimates alone.
- For high-volume dropshipping operations, implement pagination in all order and product queries using the page_no and page_size parameters — AliExpress returns a maximum of 50 items per page, so large catalogs require sequential page loading.
- Build a supplier comparison table that aggregates data across multiple AliExpress product searches to compare suppliers offering the same product, making sourcing decisions based on head-to-head data comparison.
Alternatives
eBay API connects Retool to a peer-to-peer marketplace focused on individual and business seller listings in Western markets, while AliExpress specializes in wholesale and dropshipping from Chinese manufacturers with lower per-unit pricing.
Spocket provides access to pre-vetted US and EU-based dropshipping suppliers with faster shipping times and simpler API authentication, while AliExpress offers a much larger product catalog primarily from Chinese manufacturers with longer shipping windows.
Oberlo was discontinued in 2022 and replaced by DSers for AliExpress-Shopify dropshipping workflows, while AliExpress's Open Platform API provides direct platform-level access for building custom operations tools in Retool.
Frequently asked questions
Does AliExpress have a native connector in Retool?
No, AliExpress does not have a native connector in Retool. You connect it using Retool's generic REST API Resource type combined with JavaScript queries that handle AliExpress's signature-based authentication. The signature computation — which requires HMAC-MD5 signing of request parameters — is the most technically complex part of this integration compared to simpler Bearer token APIs.
What is the AliExpress Open Platform and how do I get API access?
AliExpress Open Platform (https://developers.aliexpress.com) is Alibaba's developer portal for AliExpress API access. Register with your Alibaba or AliExpress account, create an application, and apply for the API categories you need. Affiliate product search APIs are typically approved quickly, while order management and seller APIs require more documentation and review. Approval timelines range from a few hours to several business days.
Can I use the AliExpress API without being an affiliate?
Yes, but access varies by API category. AliExpress offers both affiliate program APIs (for promoting products and earning commissions) and seller/merchant APIs (for managing your AliExpress store or orders). If you are building a dropshipping operations tool to manage orders from your AliExpress seller account, you need merchant API access. If you are building a product discovery tool for your Shopify store, you likely need affiliate API access. Apply for the appropriate access category in your Open Platform application.
How do I track AliExpress shipments in real time through Retool?
Use AliExpress's logistics tracking API (aliexpress.logistics.order.track) with the order_id as the parameter to retrieve tracking events. Store tracking numbers in your own database as orders are fulfilled, and use Retool Workflows on a schedule to poll tracking status for orders in transit, updating your database and sending alerts when deliveries are confirmed or exceptions are detected.
Talk to an Expert
Our team has built 600+ apps. Get personalized help with your project.
Book a free consultation