Skip to main content
RapidDev - Software Development Agency
lovable-integrationsEdge Function Integration

How to Integrate Lovable with Oberlo / DSers

Oberlo was sunset in June 2022 and replaced by DSers as the official Shopify AliExpress dropshipping tool. Integrate DSers with your Lovable app using a Supabase Edge Function that calls the DSers API for product sourcing and order management. Store your DSers API credentials in Cloud → Secrets and build product sourcing dashboards that connect your Lovable Shopify storefront to AliExpress suppliers through DSers.

What you'll learn

  • The Oberlo-to-DSers migration context and what changed in the Shopify dropshipping ecosystem
  • How to set up DSers and connect it to your Shopify store for AliExpress product sourcing
  • How to store DSers API credentials securely in Lovable's Cloud → Secrets
  • How to build a Deno Edge Function that proxies DSers product and order API requests
  • How to create a product sourcing and order management dashboard in Lovable that works with DSers
Book a free consultation
4.9Clutch rating
600+Happy partners
17+Countries served
190+Team members
Intermediate14 min read50 minutesE-commerceMarch 2026RapidDev Engineering Team
TL;DR

Oberlo was sunset in June 2022 and replaced by DSers as the official Shopify AliExpress dropshipping tool. Integrate DSers with your Lovable app using a Supabase Edge Function that calls the DSers API for product sourcing and order management. Store your DSers API credentials in Cloud → Secrets and build product sourcing dashboards that connect your Lovable Shopify storefront to AliExpress suppliers through DSers.

Build a DSers-powered Shopify dropshipping dashboard in Lovable

If you have been searching for how to use Oberlo with Lovable, here is the important context: Shopify sunset Oberlo on June 15, 2022, and officially migrated all Oberlo users to DSers. DSers is now the recommended AliExpress dropshipping solution for Shopify stores, and all Oberlo-equivalent functionality — product importing, bulk AliExpress ordering, supplier management, and automated fulfillment — now lives in DSers. If you are starting fresh, you are building on DSers from the beginning.

DSers sits between your Shopify store and AliExpress suppliers. A customer orders a product on your Shopify store, DSers receives the order, you (or automated rules) confirm it, and DSers places the order on AliExpress and captures the AliExpress order number for tracking. The entire logistics chain is: Lovable frontend → Shopify (orders, product catalog) → DSers (order routing) → AliExpress supplier (fulfillment). Your Lovable app can interact with both Shopify (using its native connector) and DSers (via an Edge Function) to build a custom management dashboard that covers the full workflow.

This guide covers setting up DSers, connecting it to Shopify, building the Edge Function proxy for DSers API calls, and creating a dashboard in Lovable that shows pending orders, product mapping status, and fulfillment tracking. Because DSers is tightly coupled to Shopify, you will get the most value from this integration if you are also using Lovable's Shopify connector for your storefront.

Integration method

Edge Function Integration

DSers API uses token-based authentication for accessing product sourcing and order data. A Supabase Edge Function in your Lovable project proxies authenticated DSers API calls while your React frontend handles product display and order management UI. Since DSers integrates deeply with Shopify, this integration often works alongside Lovable's native Shopify connector to create a complete dropshipping workflow.

Prerequisites

  • A Lovable account with an active project using Shopify's native connector
  • A Shopify store connected to Lovable (the DSers integration works on top of an existing Shopify setup)
  • A DSers account at dsers.com — the free plan covers basic dropshipping, paid plans add bulk ordering and automation
  • DSers connected to your Shopify store (done through the DSers onboarding flow, not via Lovable)
  • DSers API access — available from your DSers account settings, may require a paid DSers plan

Step-by-step guide

1

Understand the Oberlo-to-DSers migration and set up DSers

If you have an existing Oberlo setup or are starting fresh with Shopify dropshipping, DSers is the tool to use. Go to dsers.com and click 'Get Started.' You will be prompted to log in with your Shopify store — DSers connects via Shopify's OAuth app installation flow. In Shopify admin, navigate to Apps → Visit App Store, search for 'DSers,' and install it. After installation, DSers walks you through connecting your AliExpress account (you need an AliExpress account to place supplier orders) and importing any existing products if migrating from Oberlo. For new users, the setup takes about 10 minutes and ends with your Shopify store connected to DSers and AliExpress ready for order processing. DSers organizes your workflow into three sections: Products (Shopify products with mapped AliExpress sources), Orders (Shopify orders ready for AliExpress fulfillment), and Tracking (AliExpress order numbers and status updates). Your Lovable dashboard will mirror this three-section structure to give you a single interface instead of switching between apps.

Pro tip: DSers's free plan limits you to 3,000 products. If you have a large catalog, check the plan limits before importing all your Shopify products into DSers. The Advanced plan at $19.90/month lifts this to 20,000 products.

Expected result: DSers is installed in your Shopify store, connected to AliExpress, and your Shopify products are visible in the DSers dashboard.

2

Obtain DSers API credentials

DSers provides API access for developers who want to integrate their custom tools with the DSers platform. Log in to your DSers account and navigate to your account settings — look for a 'Developer' or 'API' section. DSers uses token-based authentication for its API. Generate an API token from the developer settings page. Keep this token secure — it provides full access to your DSers store data and order management capabilities. Note the DSers API base URL, which is typically https://sellercentral.dsers.com/api for the production API. Like all e-commerce APIs with account access, this token must be stored server-side in Lovable's Secrets panel. If DSers requires separate partner program registration to access the API, navigate to their developer documentation at developer.dsers.com for the application process. Some DSers API endpoints are available on all paid plans while others require the DSers Business or Enterprise plan — check the documentation for the endpoints you need.

Pro tip: DSers API documentation is available at developer.dsers.com. Review the available endpoints for your use case before building — the order and product endpoints are most commonly used for dropshipping dashboards.

Expected result: You have a DSers API token copied and ready to store as a Lovable secret.

3

Store DSers credentials in Cloud → Secrets

In Lovable, open the Cloud tab by clicking the '+' icon next to the Preview panel and navigate to Secrets. Add a new secret named DSERS_API_TOKEN with your DSers API token as the value. If DSers uses a separate store ID or account ID that must be included in API requests, add DSERS_STORE_ID as a second secret. These values will be read by your Edge Function using Deno.env.get('DSERS_API_TOKEN') — never embedding the actual token in code. Since DSers manages your AliExpress ordering pipeline, an exposed API token could allow unauthorized parties to place orders through your AliExpress account. Lovable's encrypted Secrets store and its automated system that blocks approximately 1,200 hardcoded keys per day ensure your credentials are properly protected.

Pro tip: DSers tokens may be tied to your AliExpress account session. If you see authentication errors after a period of inactivity, you may need to regenerate the token from DSers settings and update the secret in Lovable.

Expected result: DSERS_API_TOKEN appears in Cloud → Secrets. The secret shows as configured but the value is masked.

4

Deploy the DSers proxy Edge Function

Generate the DSers proxy Edge Function through Lovable's chat interface. This function accepts POST requests from your frontend containing the DSers endpoint path, HTTP method, and optional request body. It retrieves your DSers API token from Deno environment variables, constructs the full DSers API URL, and makes the authenticated request with the API token in the Authorization header. The function returns the DSers response to your frontend. Since your Lovable app likely also uses Shopify's native connector, the DSers Edge Function specifically handles the DSers-side operations (order routing, supplier mapping, AliExpress order status) while the Shopify connector handles the Shopify-side operations (products, customer orders, inventory). The two work together to give you a complete dropshipping workflow view.

Lovable Prompt

Create a Supabase Edge Function at supabase/functions/dsers-proxy/index.ts. It should: 1) Read DSERS_API_TOKEN from Deno environment. 2) Accept POST requests with JSON body containing 'endpoint' (path like '/api/v1/orders'), 'method' (GET/POST/PUT, defaults to GET), and optional 'body'. 3) Make requests to 'https://sellercentral.dsers.com' + endpoint with Authorization: Bearer token header and Content-Type: application/json. 4) Return the DSers response JSON with CORS headers. Handle errors with descriptive messages.

Paste this in Lovable chat

supabase/functions/dsers-proxy/index.ts
1import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
2
3const corsHeaders = {
4 "Access-Control-Allow-Origin": "*",
5 "Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type",
6};
7
8serve(async (req) => {
9 if (req.method === "OPTIONS") {
10 return new Response("ok", { headers: corsHeaders });
11 }
12
13 try {
14 const apiToken = Deno.env.get("DSERS_API_TOKEN");
15 if (!apiToken) throw new Error("DSERS_API_TOKEN not configured in Secrets");
16
17 const { endpoint, method = "GET", body } = await req.json();
18 if (!endpoint) throw new Error("'endpoint' is required in request body");
19
20 const url = `https://sellercentral.dsers.com${endpoint}`;
21
22 const fetchOptions: RequestInit = {
23 method,
24 headers: {
25 Authorization: `Bearer ${apiToken}`,
26 "Content-Type": "application/json",
27 Accept: "application/json",
28 },
29 };
30
31 if (body && method !== "GET") {
32 fetchOptions.body = JSON.stringify(body);
33 }
34
35 const response = await fetch(url, fetchOptions);
36 const data = await response.json();
37
38 return new Response(JSON.stringify(data), {
39 headers: { ...corsHeaders, "Content-Type": "application/json" },
40 status: response.ok ? 200 : response.status,
41 });
42 } catch (error) {
43 return new Response(
44 JSON.stringify({ error: error.message }),
45 { headers: { ...corsHeaders, "Content-Type": "application/json" }, status: 500 }
46 );
47 }
48});

Pro tip: DSers and Shopify have separate order IDs for the same customer purchase — DSers generates its own order ID when it receives the Shopify order. When building your dashboard, store both the Shopify order ID and the DSers order ID in your Supabase database to create a lookup table that links them for display purposes.

Expected result: The dsers-proxy Edge Function is deployed. Your app can call /functions/v1/dsers-proxy to reach DSers API endpoints.

5

Build the order management and product sourcing dashboard

With the DSers proxy deployed and Shopify connected, build the dashboard that unifies order management and product sourcing. The most valuable view for a dropshipping operator is the pending orders queue — Shopify orders that have been paid but not yet submitted to AliExpress suppliers through DSers. This view shows how many orders need attention, which products need supplier mapping before they can be fulfilled, and which orders are already being processed by AliExpress. Lovable can generate this dashboard by prompting it to combine data from both the Shopify connector and the DSers proxy Edge Function. For complex setups with many suppliers or large order volumes, RapidDev's team can help configure batch order submission workflows and supplier optimization logic that automatically selects the best supplier based on price and shipping time.

Lovable Prompt

Build a dropshipping operations dashboard with two tabs: Orders and Products. Orders tab: Call the Shopify connector to get orders with status='any' and financial_status='paid'. For each order, check DSers status via /functions/v1/dsers-proxy endpoint '/api/v1/orders?shopify_order_id={id}'. Show a color-coded table: green for DSers-fulfilled orders, yellow for pending DSers submission, red for orders with supplier mapping issues. Add a 'Submit All Pending to DSers' batch button. Products tab: Call /functions/v1/dsers-proxy with '/api/v1/products?mapping_status=all' to show all products. Color-code: green for mapped products, red for unmapped. Show supplier AliExpress URL and cost price for mapped products.

Paste this in Lovable chat

Pro tip: DSers bulk order submission is one of its most time-saving features — you can submit dozens of AliExpress orders with a single action rather than placing each one individually. Look for the bulk order API endpoint in DSers documentation to implement this in your dashboard's batch submission button.

Expected result: The dashboard shows Shopify orders with their DSers fulfillment status, and the products page shows which items have active AliExpress supplier mappings.

Common use cases

Order fulfillment dashboard for Shopify + DSers dropshipping

Build an admin dashboard in Lovable that shows all pending Shopify orders alongside their DSers status, lets you batch-submit orders to AliExpress suppliers through DSers, and tracks fulfillment progress in one view — eliminating the need to switch between Shopify admin and DSers separately.

Lovable Prompt

Build an order fulfillment dashboard. Fetch pending Shopify orders using the Shopify connector. For each order, call /functions/v1/dsers-proxy with endpoint '/api/v1/orders?status=pending' to get DSers order status. Display orders in a table with: Shopify order number, customer name, items, total, DSers status (pending/processing/fulfilled), and AliExpress order number when available. Add a 'Submit to Supplier' button for pending orders that calls the DSers API to trigger AliExpress order placement.

Copy this prompt to try it in Lovable

Product sourcing and supplier mapping interface

Create a product management view that shows your Shopify products alongside their mapped AliExpress suppliers in DSers, lets you see which products have supplier mappings and which do not, and allows you to search for new AliExpress suppliers to map to products.

Lovable Prompt

Build a product sourcing page that calls /functions/v1/dsers-proxy with endpoint '/api/v1/products' to list all products currently in DSers with their supplier mapping status. Show each product with its Shopify product name, current AliExpress supplier URL, supplier price, and whether the mapping is active. Highlight products with no supplier mapping in red. Add a 'Find Supplier' button that opens an AliExpress search in a new tab for unmapped products.

Copy this prompt to try it in Lovable

Dropshipping profit and performance tracker

Build a performance analytics view that combines Shopify order revenue with DSers supplier costs to calculate actual profit margins per product, showing which items are your most profitable and which have eroded margins due to AliExpress price increases.

Lovable Prompt

Create a profit tracking dashboard that fetches fulfilled orders from both Shopify (revenue) and DSers (supplier cost). For each product, calculate gross profit as Shopify selling price minus DSers supplier cost minus Shopify fees. Display a table sorted by total profit with columns: product name, units sold, average selling price, average supplier cost, gross margin percentage, and total profit. Add a date range filter for the last 7, 30, and 90 days.

Copy this prompt to try it in Lovable

Troubleshooting

DSers API returns 401 or 'Unauthorized' for all requests

Cause: The DSers API token has expired or been invalidated. DSers tokens may expire after a period of time or when you log out of the DSers web interface.

Solution: Log in to your DSers account and navigate to the API or Developer settings section to regenerate your API token. Update the DSERS_API_TOKEN secret in Lovable's Cloud → Secrets with the new token. The Edge Function picks up the new token value immediately without needing redeployment.

Orders visible in Shopify do not appear in the DSers order list

Cause: DSers only shows orders for products that have been mapped to AliExpress suppliers in DSers. If a product in the Shopify order does not have a DSers supplier mapping, DSers does not display that order.

Solution: In your DSers dashboard, navigate to the Products section and find the unmapped products (shown in red or with a warning indicator). Map each product to an AliExpress supplier by clicking 'Find Supplier' and selecting the appropriate AliExpress listing. Once all products in an order are mapped, the order appears in DSers's order management section. This is a DSers design decision — orders with unmapped products require manual supplier selection before fulfillment can proceed.

AliExpress order placement fails with 'Account not authorized' error

Cause: Your DSers account is not properly connected to an active AliExpress account, or your AliExpress account session has expired in DSers.

Solution: Navigate to your DSers dashboard Settings → AliExpress account section and re-authorize the connection to your AliExpress account. This requires logging in to AliExpress through DSers's authorization flow. AliExpress sessions in DSers can expire, especially if you have been inactive or if AliExpress detected unusual activity. After reconnecting, retry the order placement.

Product images show 'Access Denied' when loading AliExpress product images

Cause: AliExpress CDN images have hotlinking protection — you cannot load AliExpress images directly on a non-AliExpress domain.

Solution: When importing products to your Supabase database, download the product images and re-host them in Lovable Cloud Storage. Use an Edge Function to fetch the AliExpress image on the server side and upload it to Supabase Storage, returning your own CDN URL. This approach also protects you from images disappearing if the AliExpress listing changes.

Best practices

  • Always map new Shopify products to AliExpress suppliers in DSers before making them available on your storefront — unmapped products cannot be fulfilled and will create stuck orders.
  • Use DSers's supplier optimizer feature to find backup suppliers for your best-selling products, so if a primary supplier goes out of stock or raises prices you can switch without manually re-mapping.
  • Track both Shopify order IDs and DSers order IDs in your Supabase database from the moment an order is created, making it easy to correlate order data across both systems in your Lovable dashboard.
  • Set up DSers automated order rules where possible — for example, automatically routing orders to the cheapest supplier or fastest shipper — to reduce manual order management work.
  • Monitor AliExpress supplier prices weekly since they can change without notice. A price increase that exceeds your retail price means you would lose money on every sale until you update your Shopify pricing.
  • Configure order fulfillment automation carefully — auto-submitting to AliExpress before verifying orders can result in duplicate orders or fulfillment of fraudulent orders before payment disputes are resolved.
  • Download tracking numbers from DSers and sync them back to Shopify orders so customers see tracking information in their Shopify order confirmation emails without manual data entry.
  • Test your DSers-to-AliExpress connection by placing a small test order on your own Shopify store and verifying the complete chain from Shopify order → DSers pickup → AliExpress placement before going live.

Alternatives

Frequently asked questions

Oberlo is gone — do I need to migrate my store?

If you had an Oberlo account, Shopify automatically migrated your data to DSers in June 2022. Your products, supplier mappings, and order history were transferred. However, you do need to log in to DSers and verify that your supplier mappings are intact and that your AliExpress account is properly reconnected, as some accounts experienced issues during the migration that require manual reconnection.

Do I need both Shopify and DSers, or can I use DSers independently?

DSers is designed to work as a Shopify app — it requires a connected Shopify store to function. DSers receives orders from Shopify, routes them to AliExpress, and syncs tracking numbers back to Shopify. You cannot use DSers without Shopify as the underlying e-commerce platform. If you want a non-Shopify dropshipping setup, Spocket or a direct AliExpress API integration are better alternatives.

How long does AliExpress dropshipping shipping take compared to Spocket?

Standard AliExpress shipping (ePacket or AliExpress Standard Shipping) to the US typically takes 12-30 days. AliExpress Premium Shipping can reduce this to 7-15 days. In contrast, Spocket's US and EU suppliers ship in 2-5 days. The significant difference in shipping time is a major competitive disadvantage for AliExpress-based dropshipping stores selling in the US and EU markets, which is why Spocket was created as an alternative.

Can I build a fully automated fulfillment system that requires no manual steps?

DSers supports automatic order fulfillment where orders are submitted to AliExpress as soon as they appear in DSers from Shopify, without manual review. This can be configured in DSers Settings → Automatic Orders. However, be cautious about full automation — you may want to review unusual orders, address corrections, or potential fraud cases before they are automatically shipped. A semi-automated flow where you batch-confirm orders once daily is often a good middle ground.

What happens if an AliExpress supplier is out of stock after a customer places an order?

DSers will flag the order with a supplier availability error. You then need to either find an alternative supplier for that product in DSers and remap it, or cancel the order and refund the customer. To minimize this scenario, configure multiple backup suppliers per product in DSers's supplier mapping settings, and enable DSers's inventory sync to automatically check supplier stock levels. A good practice is to hide products on your Shopify store when DSers flags them as out of stock.

RapidDev

Talk to an Expert

Our team has built 600+ apps. Get personalized help with your project.

Book a free consultation

Need help with your project?

Our experts have built 600+ apps and can accelerate your development. Book a free consultation — no strings attached.

Book a free consultation

We put the rapid in RapidDev

Need a dedicated strategic tech and growth partner? Discover what RapidDev can do for your business! Book a call with our team to schedule a free, no-obligation consultation. We'll discuss your project and provide a custom quote at no cost.