Back to Documentation
Dropshipping Module

How Do Dropshipping Order Stock Reservations Work?

Learn IHASHOP Dropshipping order reservations, cancellations, returns, supplier verification and stock reconciliation.

What are order stock reservations?

IHASHOP Dropshipping 1.0.0 subtracts net order reservations from source stock in real mode. Target S = max(0, K − T − R): K stored source stock, T safety buffer, R reserve. Shadow excludes reservations (R_YOK). A reservation does not guarantee physical inventory held by the supplier. This guide follows reviewed b817b5d9.

How allocations arise

TahsisTarayici reads core order items for active variant links during real Apply. Web uses orders.stock_deducted_at; marketplace uses marketplace_order_id and created_at when deduction timestamp is absent. Payment status is not a direct filter. Ordinary web orders without deduction create no reserve. ds_order_allocations has unique order_item_id. Transaction locks existing allocations FOR UPDATE.

Initial record stores order, variant link, source, quantity, deducted_qty, restored_qty, cost and currency. Cost is stored cost at scanning, not guaranteed verified order-time price. Repeated scan with unchanged quantities and state creates no new record. Core orders remain untouched.

Cutoff and stock ledger

Activation cutoff is stok_yazim_baslangic. Deduction at or after cutoff sets deducted_qty to item quantity. Earlier sales are not deducted again. orders.stock_restored_at and order_returns.stock_restored_at at or after cutoff contribute restored_qty. Items without stock events are skipped. Ledger D = sum(deducted_qty − restored_qty), potentially negative.

Earlier two-unit sale cancelled after cutoff can produce deduction 0, restoration 2, cancelled and D=-2, reserve zero. Expected core stock = last written stock − (current ledger − ledger at write). Mode switching preserves existing allocations; ledger query has no cutoff filter.

Reserve retention and release

DbStokOkuyucu::defterVeRezerv groups by variant link. Positive net pending quantity stays reserved. Positive net forwarded quantity remains if supplier_verified_at is null OR forwarded_at is at or after run start. Verified items sent before run start leave reserve. cancelled contributes no reserve. Supplier stock reduction or 30 days passing is not automatic verification.

Example source 10, three units forwarded, source drops to 7: R=3 and target 4. After administrator verification, an eligible later run may calculate R=0 and target 7. Confirmation does not write stock directly.

Cancellations and returns

Before forwarding, positive net deduction remains pending; otherwise cancelled. Two-unit sale and one restocked return leaves R=1. Full restocked return or cancellation yields R=0. Scanner preserves forwarded state; customer return does not automatically cancel supplier order. Restored quantity sums cancellation quantity and return items with restocking timestamps. No cap or double-restoration protection is present in this calculation.

Overlapping events can yield negative ledger; check core event integrity. Reserve includes positive net quantities only.

Administrator and financial reconciliation

Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing), Items awaiting reconciliation. At most 200 positive net unverified forwarded allocations appear in forwarding time and ID order. Verify actual processing in supplier panel. Confirm reconciliation writes supplier_verified_at and reconciled_by. Service checks Seller gate and locks allocation row.

Unknown allocation yields TAHSIS_YOK; pending or duplicate approval yields TAHSIS_DURUMU_GECERSIZ. Active financial reconciliation for linked supplier order replaces button with warning and service rejects FINANSAL_MUTABAKAT_ACIK. Closing financial record is not stock approval; separate eligible confirmation is required. Service does not independently check positive net quantity, unlike list filter.

Approve only genuinely processed orders.

GiyimDepom and Luxstoree examples

Illustrative GiyimDepom: K=20 T=2. Three-unit sale R=3, target 15. Cancellation before forwarding with three units restored gives R=0, target 18. New two-unit sale and one restocked return gives R=1, target 17. Luxstoree: K=10 T=0, three units forwarded R=3, target 7. Source falls to 7, R=3 remains, target 4. Verify supplier panel and approve only without open financial case. Next eligible run R=0, target 7. Not live orders or inventory.

Actual write depends on conflict, freshness and sales links.

GiyimDepomLuxstoree20 − 2 − 3 = 1510 − 0 − 3 = 720 − 2 − 0 = 187 − 0 − 3 = 420 − 2 − 1 = 177 − 0 − 0 = 7

Tests and safe checks

StokDefteriTest lines 191–223 cover web sale, cancellation and partial return; 308–355 cutoff, later cancellation, marketplace and repeat scan; 356–403 forwarding and run timing; 421–502 30 days, stock reduction, administrator approval, duplicate rejection and TR/EN UI. MutabakatF4fTest lines 643–667 cover financial block and separate approval after closure. Tests were not rerun.

Review stats.stok.sayilar.rezerv_toplam and mutabakat_bekleyen, open orders and actual storefront inventory.

Related guides

Frequently asked questions

Does forwarding automatically release reserve?

No; positive reserve requires verification and run timing conditions.

How do cancellation and partial returns affect reserve?

Restocked quantities reduce net reserve.

Does shadow calculate reservations?

No; R_YOK is reported.

Can stock verification occur during financial reconciliation?

No; FINANSAL_MUTABAKAT_ACIK rejects it.

Does approval immediately change stock?

No; an eligible later real sync is required.

How Does the Dropshipping Stock Ledger Work?

Frequently asked about this

No; positive reserve requires verification and run timing conditions.