· 7 min read · Mert Tati
WooCommerce integration with Trendyol and Hepsiburada: a complete guide
Integrating WooCommerce with Trendyol and Hepsiburada: stock and order sync, XML feeds, iyzico/PayTR, shipping, e-invoicing and preventing overselling.
Selling on your own WooCommerce site and on marketplaces like Trendyol and Hepsiburada (Turkey's largest online marketplaces) at the same time is one of the fastest ways to grow. But as channels multiply, so does operational complexity: the same product's stock shows up in several places, orders land in different dashboards, and invoices and shipping labels are prepared separately. In this guide we explain how to set up WooCommerce marketplace integration, which methods are available, and how to protect yourself from the costliest mistake of all: overselling.

What does marketplace integration cover?
When people hear “integration,” most think only of pushing products to the marketplace. A healthy integration, however, covers a product's entire lifecycle.
- Product sync: title, description, images, variations, barcode, and mapping to marketplace categories and attributes.
- Stock sync: a sale on one channel instantly reduces stock on every other channel.
- Price management: channel-specific pricing rules based on marketplace commissions.
- Order import: collecting marketplace orders in a single dashboard.
- Shipping and invoicing: automating labels, tracking numbers and the e-Fatura/e-Arşiv process (Turkey's electronic invoicing systems).
- Returns and cancellations: marketplace cancellations and returns flow back into stock.
Methods: API, XML and integration services
There are several ways to connect WooCommerce with marketplaces, and each comes with a different cost and reliability profile.
- Marketplace XML feed: your site publishes product and stock data as an XML feed, and the marketplace or a middleman reads it at set intervals. Setup is relatively simple, but because updates are periodic, fast-selling products can suffer from stock lag.
- Direct API integration: product, stock and order data are exchanged in both directions via Trendyol's and Hepsiburada's seller APIs. It's faster and more controlled, and is set up with WooCommerce plugins or custom development.
- Integration services: third-party services that let you manage multiple marketplaces and your own site from one dashboard. They're a practical solution when you have many channels; they usually charge a monthly fee, and part of your data flows through their service.
The right method depends on your product count, sales velocity, number of channels and technical resources. For a small number of slow-moving products, XML may be enough; if you sell fast-turning stock across multiple channels, you need an API or integration-service solution.
Overselling: the real test of marketplace stock integration

Overselling means selling a product you don't actually have. When a single item sells on two channels at almost the same moment and stock sync isn't fast enough, the second order can't be fulfilled. The result: cancellations, unhappy customers and a lower seller rating on the marketplaces. Marketplaces are generally strict about orders that can't be fulfilled, so overselling isn't a minor hiccup; it's a serious business risk.
- Choose a single source of truth for stock: the “real” stock value should live in one place (usually WooCommerce or your ERP), and every other channel should be fed from it.
- Keep safety stock: for fast-selling products, showing only part of your real stock on marketplaces gives you a buffer during sync delays.
- Check stock at cart and checkout: stock must be re-validated before payment is completed.
- Watch variations and bundles: variations or sets that share the same physical product should draw from a shared stock pool.
- Restore returns automatically: if cancellations and returns don't flow back into stock, you'll show sellable products as sold out for no reason.
At Tati Creative we ran into synced stock and overselling problems firsthand on the West Riders Custom project, and built a solution that makes group-based reservations at checkout for products sharing the same physical stock. We later carried that experience into the synced stock module of our own WooCommerce plugin, ShopOps All in One.
Channel pricing and brand balance
Marketplaces bring ready-made traffic, but they take a commission on every sale and the customer relationship largely stays on the platform. Your own site gives you customer data and control of the brand experience, but you have to bring in the traffic yourself. These two channels should be treated as complementary, not as rivals.
In practice, many brands apply a pricing rule on marketplaces that covers the commission, while on their own site they try to pull customers directly with perks they can't offer on the marketplace, such as a loyalty program, exclusive promotions, bundles or fast delivery. When setting a price-difference strategy, read the marketplaces' current pricing and seller policies; the rules can change over time.
Promotion management is part of this balance too. When you set up promotions like “free gift over a certain amount” or “buy two, pay for one” on your own site, remember that the same product sells at a different price on the marketplace and that the stock is shared. Testing promotion rules and stock sync together prevents surprises on busy days.
Setting up iyzico and PayTR on WooCommerce
On marketplaces, payment is collected by the marketplace, but your own site needs a payment gateway. iyzico and PayTR are widely used Turkish payment providers that offer official WooCommerce plugins. Setup broadly follows these steps: apply to the payment provider and get approved, obtain your API keys from their dashboard, install the WooCommerce plugin and enter the keys, place test orders in sandbox mode first, then switch to live mode.
Things to watch: the 3D Secure flow should work smoothly, installment options should display correctly, refunds should be tested from the dashboard, and the post-order thank-you page and notification emails should work properly. Make sure your site's outgoing email works; otherwise the payment goes through but the customer never receives a confirmation email.
Shipping and e-invoicing integration
In multichannel selling, the warehouse and accounting are where the most time gets lost. Shipping integration creates a shipment record when an order comes in, prints the label and automatically sends the tracking number to the customer. For marketplace orders, shipping usually runs through the marketplace's contracted flow; for orders on your own site, you use the carrier's API or a shipping integration service.
On the e-Fatura and e-Arşiv side, the goal is to pass WooCommerce and marketplace orders to an integrator or accounting software so invoices are issued automatically. Consult your accountant on invoicing rules, tax rates and which document type to issue in which situation; the technical setup should follow those rules.
Setup steps and common mistakes
- Clean up your product data: reliable matching is impossible without a unique barcode and SKU for every variation.
- Map categories and attributes carefully: the wrong category can keep a product from showing on the marketplace or get it rejected.
- Set channel-specific pricing rules: prices that ignore commission and shipping costs can mean losing money on every sale.
- Start with a small product group: instead of opening your entire catalog at once, test the flow on a few products.
- Monitor sync errors: assign someone to check the integration's error logs regularly.
- Watch for plugin conflicts: multiple plugins acting on stock, price and orders can overwrite each other.
Frequently asked questions
How do you integrate WooCommerce with Trendyol? You get your API credentials from the Trendyol seller panel, then map products, stock and orders using a WooCommerce integration plugin, an integration service or custom development. Correct barcodes and category mappings are a prerequisite for the integration to run smoothly.
Marketplace XML integration or API integration? XML is simpler to set up but updates periodically; it may be enough for a small number of slow-moving products. API integration is faster and two-way, and is the preferred choice for reducing overselling risk with multichannel, fast-turning stock.
How do you prevent overselling? Choosing a single source of truth for stock, keeping safety stock on fast sellers, re-validating stock at checkout and making sure cancellations and returns flow back into stock automatically will greatly reduce overselling risk.
Can I connect both Hepsiburada and Trendyol to the same WooCommerce site? Yes. With a plugin or integration service that supports multiple marketplaces, every channel can be fed from the same WooCommerce stock; what matters is managing stock from a single source.
Can e-invoices be issued automatically for marketplace orders? Yes. With a setup that passes orders to an e-invoicing integrator or accounting software, invoices can be generated automatically. Confirm with your accountant which document type and which tax rules apply.
Bottom line: marketplace integration isn't just pushing products; it's managing stock, pricing, orders, shipping, invoicing and returns together. Choose XML, API or an integration service based on your sales velocity; manage stock from a single source, validate it at checkout, and design overselling out from the start.
Related services