Back to Documentation
Dropshipping Module

How Does Dropshipping Product Synchronization Work?

Understand IHASHOP product synchronization, secure XML and JSON feed processing, catalog differences, safety thresholds and controlled updates.

Product synchronization in IHASHOP Dropshipping 1.0.0 securely reads supplier catalogs and converts them into a common product model. Preview and Apply are separate runs. This guide follows reviewed source code and existing tests.

1. Start synchronization

With valid entitlement and Seller role, open Marketplace > Dropshipping Sync (/secure/dropshipping/senkron), choose a connection and confirm preview or Apply. Both send real feed requests. The admin screen provides manual triggering; do not assume automatic scheduling. A run record is opened and a queue job executes it.

2. Run lifecycle

SenkronKosuServisi opens a running record. Reusing an idempotency key does not open a second run. Another fresh apply for the same supplier prevents a new apply; the returned record may be the previous run. Dry_run is independent of this restriction. A heartbeat older than the default 30 minutes can fail with BAYAT_ZAMAN_ASIMI. Heartbeats update at stage boundaries and during processing at default 30-second or 50-product checkpoints, not a continuous timing guarantee. Temporary download failures may retry before the last attempt. Final states are completed, failed or aborted.

3. Secure feed access

GuvenliTedarikciErisimi checks entitlement, connection state and request limits. Encrypted credentials are resolved; HTTPS 443, allowed host, DNS/IP pinning and redirect checks apply. Raw response size is limited. A SHA-256 source digest may be recorded; raw content and credentials are not included in statistics. Connection failures use fixed codes. Empty or unreadable feeds are stopped safely.

4. Normalize and protect identities

Saved field mapping takes precedence over built-in adapter normalization and checks compatibility with existing identities. NormalizasyonKontrolu checks empty or duplicate product IDs, missing or duplicate variant keys, negative stock, invalid costs and field limits. Supplier-wide duplicate variants are checked separately. Invalid products are skipped; observed IDs do not count as lost. A malformed variant collection is not a valid empty collection.

5. Plan categories and calculate differences

KategoriPlanlayici computes a plan from external category ID and normalized path hash without writes. Conflicting products are skipped with KATEGORI_CAKISMA. Source categories are separate from store categories. SenkronFarki hashes canonical sorted product and variant content with SHA-256 and counts new, changed, unchanged and lost products. On an empty prior baseline the loss ratio is zero. Only variants with previous and current costs enter cost comparison.

6. Understand protection thresholds

Defaults are 20% invalid products, 20% lost products and 15% variants with changed costs. Supplier settings override valid thresholds; invalid values fall back to defaults. Strictly exceeding a threshold aborts before catalog writes. The cost threshold measures the proportion of comparable variants whose cost changed, not the percentage increase. For example, 16 changed out of 100 comparable variants exceeds 15%. Change only supported settings and verify unexpected source changes.

7. Compare GiyimDepom and Luxstoree

Built-in GiyimDepom JSON reads ProductId, ProductCombinationId and StockQuantity; cost and currency default to null. Saved JSON mapping can use Price and @TRY. Luxstoree XML uses id, productCode, the lx: variant key derived from product code and barcode, quantity, price and currency. VAT inclusion initially remains unknown for both. In the illustrative table a stock change changes the product hash; cost changes are counted separately. Examples are not live supplier data.

FieldGiyimDepom JSONLuxstoree XMLProduct IDProductIdidVariant IDProductCombinationIdlx:…Stock change (example)StockQuantity: 7 → 5quantity: 5 → 0CostUnknown in built-in adapterprice

8. Preview versus Apply

Dry_run fetches the real feed and performs validation, category planning, difference and threshold analysis without writing source or store catalogs. Operational run records and connection error status may still be written. Apply fetches again and cannot guarantee identical content to the prior preview. It writes source categories, products, variants and first-observation/change snapshots. Missing cost or currency may prevent price snapshots. Lost records are not physically deleted.

9. Partial writes and sales safeguards

KaynakKalicilikServisi writes each product and variants in a short transaction. If entitlement closes or the run is no longer running, subsequent writes stop; earlier commits may remain. Missing marking follows completed source persistence. Later scan or stock stages may fail, so failed does not always mean zero writes. New products become staged or requires_mapping; ready and active are preserved and archived untouched. Price and VAT/missing checks can affect sale links. Real stock mode writes core stock; shadow mode reports only. Real stock mode may generate order intentions without sending supplier orders over the network. Synchronization does not write selling prices; product creation and price application are separate.

10. Review the result

Inspect run history for state, received/written products, errors, review and available stock or shadow report. Completed does not mean every product was valid. For failed or aborted runs, inspect fixed error codes and partial-write information. Existing tests cover duplicate runs, empty feeds, thresholds, skipped IDs, preview catalog non-writing and timeout behavior.

Related guides

Frequently asked questions

Does preview send a real request?

Yes. It does not write source or store catalogs, but operational records may be written.

Is the cost threshold a price increase percentage?

No. It is the proportion of comparable variants with changed costs.

Does an empty feed delete products?

No. The run fails when no processable products exist.

Does a failed apply roll back everything?

No. Earlier per-product commits may remain.

Does sync change selling prices?

No. Price checks can affect sale links; applying prices is separate.

Synchronization Preview vs Apply: What Is the Difference?

Frequently asked about this

Yes. It does not write source or store catalogs, but operational records may be written.