How to Manage Dropshipping Order Cancellations and Returns
Learn IHASHOP Dropshipping cancellations, partial returns, stock reservations and controlled order recreation.
Customer and supplier cancellation
IHASHOP Dropshipping manages customer orders separately from supplier intents. This guide follows reviewed b817b5d9. Customer cancellation does not automatically cancel an order placed at the supplier. Cancelling a supplier intent does not write to orders. Automatic supplier balance refunds and automatic supplier return requests are not implemented in this flow.
Verify external orders and financial movements separately.
Order state transitions
SiparisIletimServisi::niyetUret locks selected supplier records in pending_approval, pending and placed. Customer orders are locked in ascending ID order. status=cancelled or payment_status=refunded/failed means closed. Open intents become cancelled, placed becomes needs_attention; siparis_iptal is recorded.
With an open customer order, any placed allocation with restored_qty greater than zero triggers needs_attention and iade event. Normal scan does not change sending. needs_attention and cancelled are not scanned again. Missing core order is skipped by scan, but musteriSiparisiKapali treats it as closed. Form, approval and normal placement check open order at action time.
Closed orders are rejected and intent closed.
Full and partial return stock calculation
TahsisTarayici reads core stock events and writes only ds_order_allocations. Deductions at or after cutoff enter deducted_qty. Eligible orders.stock_restored_at contributes full item quantity. Return item quantities with order_returns.stock_restored_at at or after cutoff are added. This sum is restored_qty. Financial refund alone is not stock restoration.
Net D = deducted_qty − restored_qty. Unforwarded allocation is pending when deduction and net are positive; otherwise cancelled. forwarded remains even after full return. Ledger sum can be negative. Pre-cutoff sale restored later may enter ledger. No cap against double restoration. Unchanged repeat scan creates no duplicate; order_item_id is unique.
Intent state and allocation state are different.
Cancellation in administration
Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing) and select supplier. Not fulfilled by supplier appears for pending_approval, pending and eligible needs_attention. Open financial reconciliation hides it. belirsizMi requires needs_attention, API channel, nonnull sent_at and null reference.
Cancellation of uncertain intent with open customer order is rejected with SORGU_GEREKLI. For closed customer order, administrator must investigate supplier panel; do not use POST query that can create another order. Open financial record yields MUTABAKAT_ACIK. iptal checks Seller gate and locks intent in transaction.
It changes state and cancellation event only, not allocation link, stock or payment amount. placed and sending cannot be directly cancelled. Confirmation does not cancel remote order.
Recreation conditions
Recreate applies only to cancelled intent. SiparisIletimServisi::yenidenOlustur checks old intent, open reconciliation, customer order and eligible allocations in transaction. Customer order must exist and remain open. No other pending_approval, pending, sending, placed or needs_attention intent for same order and supplier may exist. Old intent needs positive net pending allocation.
Generation equals existing intent count plus one; SHA-256(order_id|supplier_id|generation) is new key. New pending intent records approved_at and approved_by. Only eligible allocations move. Both intents record yeniden_olusturuldu. Concurrent unique violation is rejected as ZATEN_ACIK. UI uses same eligibility rule and asks to verify previous order was not placed.
Existing linked allocations do not automatically generate a new intent; new unlinked allocations may be evaluated separately.
Financial reconciliation and reserve
DbStokOkuyucu::defterVeRezerv includes positive pending net and unverified forwarded net in reserve. Verified forwarded remains reserved if forwarded during same run. Local intent cancellation does not modify allocations, so does not release reserve alone. Actual stock restoration may reduce net reserve. Full restoration gives zero net even if financial issue remains open.
MutabakatServisi::tara scans eligible API intents with closed customer orders. It does not reopen intents with reconciliation history; a new late acceptance can be a separate financial fact. Open aktif_anahtar blocks cancellation, recreation and stock reconciliation approval. Closing financial record does not automatically confirm stock.
Partial return causing needs_attention does not guarantee a financial case was also created. Verify supplier return and cancellation evidence separately.
GiyimDepom and Luxstoree examples
Illustrative GiyimDepom: one of three pending units is restored in core. deducted_qty=3, restored_qty=1, net 2, allocation remains pending. Restoring all three gives zero reserve; cancelled customer order closes intent next scan. Cancelling only supplier intent while customer order stays open preserves positive reserve.
After verifying no prior supplier placement, eligible two units may move to new generation. Luxstoree: one of two placed units is restored. Allocation stays forwarded, unverified net reserve is 1 and intent becomes needs_attention. Supplier return or balance claim is evaluated manually. Unknown-reference Luxstoree order requires panel investigation; no new POST resolution.
Examples are not actual transactions.
GiyimDepomLuxstoree3 − 1 = 22 − 1 = 1pendingforwardedcancelled → pending (yeniden_olusturuldu)placed → needs_attentionTests and safety limits
SiparisIletimTest 171–204 covers cancellation and return lifecycle; 211–235 action-time closure and retained links; 236–284 recreation and duplicate rejection; 285–345 UI eligibility; 346–366 failed payment and partial return of placed order. StokDefteriTest 191–223 covers net cancellation and partial return.
MutabakatF4fTest 317–356 covers open-case cancellation block and closure conditions; 645–667 separates financial closure from stock confirmation. Tests were not rerun. Cancellation service does not separately check selected supplier ownership. Intent cancellation is not net reserve release. List shows latest 200 intents; absence from list is not proof of absence.
No real order, cancellation, return or financial action performed.
Related guides
- How to Manage Uncertain and Failed Dropshipping API Orders
- How to Send Dropshipping Orders to Suppliers via API
- How to Manually Forward Dropshipping Orders to Suppliers
- How to Create Dropshipping Supplier Orders
- How Does Dropshipping Order Management Work?
- How Do Dropshipping Order Stock Reservations Work?
- How Does the Dropshipping Stock Ledger Work?
- How to Integrate GiyimDepom Dropshipping with IHASHOP
- How to Integrate Luxstoree Dropshipping with IHASHOP
- IHASHOP Dropshipping
Frequently asked questions
Does customer cancellation automatically cancel supplier order?
No; supplier action is managed separately.
How does partial return affect reserve?
Restored quantity may reduce net reserve.
Does Not fulfilled by supplier release reserve?
No; it does not change allocation quantities.
Can a cancelled intent be recreated?
Yes, with open customer order, eligible allocation and duplicate/reconciliation checks.
Can an intent be cancelled during open financial reconciliation?
No; MUTABAKAT_ACIK blocks it.