How to Create Dropshipping Supplier Orders
Learn IHASHOP Dropshipping supplier order creation, payment approval, grouping and duplicate scan protection.
What is a supplier order intent?
IHASHOP Dropshipping creates local supplier order intents from customer orders. This guide follows reviewed b817b5d9. An intent does not mean an order was sent. Core orders are not written. ds_supplier_orders stores headers, ds_order_allocations links items, ds_supplier_order_events records history. There is no separate supplier order line table.
Allocation and scan eligibility
TahsisTarayici scans stock events for active variant links in real mode. Deductions from cutoff onward enter deducted_qty, restorations restored_qty. Positive net deduction becomes pending, otherwise cancelled. Existing forwarded state remains. SiparisIletimServisi::niyetUret selects web pending allocations with null supplier_order_id for the supplier.
Customer order must exist and remain open. SenkronKosuServisi scans after real Apply stock stage. Shadow and Preview do not execute this automatic stage. Scan orders processes existing allocations. tara checks Seller gate without an additional real-mode requirement. It creates no allocations and makes no network call.
Payment and approval
payment_status paid creates pending. Other open payment states with payment_method cod create pending_approval. Unpaid bank and card orders wait; later payment allows intent at next scan. Cancelled orders and refunded or failed payments are excluded. Marketplace allocations may enter ledger but not intents.
Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing), select supplier, Scan orders. Report counts new, awaiting approval, cancelled and attention. Approve on COD waiting row calls onayla. approved_at and approved_by are saved, state becomes pending and onaylandi event is recorded. Intent and customer order are locked at action time.
Closed order is cancelled and approval rejected. Approval does not collect payment. An existing approval-waiting intent is not automatically promoted when payment arrives.
Grouping and generation key
Each scan processes one supplier and groups by order_id. Existing pending or pending_approval intent receives new eligible items without changing its state. Otherwise generation = count of all intents for order_id and supplier_id + 1. idempotency_key = SHA-256(order_id|supplier_id|generation), 64 characters. Migration defines unique ds_sord_idem_uq. order_id alone is not unique.
New intent records olusturuldu. One customer order can create multiple supplier intents. New unlinked allocations after placed or cancelled intent can create another generation. No global one-intent guarantee across generations.
Transactions and duplicate protection
niyetUret uses one DB transaction with three attempts parameter. Existing open/placed intents are locked in ascending ID, then customer orders in ascending ID. New candidate orders are locked before items. Allocation join uses FOR UPDATE. Concurrent same-key insert violation triggers locked lookup of existing intent; if absent, items wait for next scan.
Local protection is not remote supplier API idempotency. DS foreign keys use RESTRICT; no FK to core orders. Deleted core orders are excluded from candidate join and skipped during lifecycle scan. Do not delete customer orders to clean allocations.
Cancellation and recreation
Lifecycle scan cancels open intents when customer order is cancelled or payment refunded/failed. placed becomes needs_attention; restored return also triggers attention. sending is untouched. Cancelled intents retain linked allocations, so scanning those again creates no intent.
Administrator recreation requires cancelled old intent, open customer order, no financial reconciliation block and positive net pending allocation. No open, sending, placed or needs_attention intent may exist for same pair. New generation is pending with approval metadata. Eligible items move; both intents record yeniden_olusturuldu. Customer order and payment are unchanged.
GiyimDepom and Luxstoree examples
Illustrative paid order 1001 has two GiyimDepom items (supplier 11) and one Luxstoree item (supplier 22). Scanning both creates two pending intents. Key inputs 1001|11|1 and 1001|22|1 differ. Repeating scan of same allocations creates none. Later eligible GiyimDepom item joins its open intent.
Unpaid COD order 1002 may create two pending_approval intents; GiyimDepom approval does not approve Luxstoree. Bank order 1003 has no intent until payment becomes paid and eligible allocations are scanned. IDs are fictional.
GiyimDepomLuxstoree1001|11|11001|22|12 · pending1 · pending1002 · pending_approval1002 · pending_approvalTests and operational checks
SiparisIletimTest 92–127 covers payment, marketplace exclusion, repeat scans, later items, bank payment and approval event. 236–284 covers no automatic recreation after cancellation, administrator recreation and ZATEN_ACIK rejection. 367–388 covers TR/EN UI. Tests were not rerun. Existing approval intent is not automatically promoted on payment.
New intent query relies on pending allocation rather than separate net quantity filter. Scan counters measure changes this scan, not all open orders. Inspect stats.siparis.hata=SIPARIS_HATASI if present. Verify actual supplier placement separately.
Related guides
- How Does Dropshipping Order Management Work?
- How Do Dropshipping Order Stock Reservations Work?
- How Does the Dropshipping Stock Ledger Work?
- How to Use Shadow Stock and Real Stock Modes
- How Does Dropshipping Stock Management Work?
- How Does Dropshipping Product Synchronization Work?
- How to Integrate GiyimDepom Dropshipping with IHASHOP
- How to Integrate Luxstoree Dropshipping with IHASHOP
- IHASHOP Dropshipping
Frequently asked questions
Does scan send supplier orders?
No; it creates local intents.
How is COD approved?
Approve changes pending_approval to pending.
Can one order split across suppliers?
Yes; each supplier is grouped separately.
Does repeat scan create duplicates?
Same linked allocations do not create new intents; new allocations are evaluated separately.
Is cancelled intent recreated automatically?
Not for linked allocations; eligible administrator recreation is required.