Back to Documentation
Dropshipping Module

How to Send Dropshipping Orders to Suppliers via API

Learn IHASHOP Dropshipping API order sending, legal approval, license checks, fencing and uncertain responses.

What is API order sending?

IHASHOP Dropshipping sends eligible supplier order intents through an administrator action. This guide follows reviewed b817b5d9. Synchronization creates intents but does not automatically send API orders. Customer and supplier orders remain separate. Verify supplier account, contract and financial conditions before sending.

Enable the API channel

Open Marketplace > Dropshipping Suppliers (/secure/dropshipping/tedarikciler), Order API. Default channel is manual. Save API connection takes host and key. New order_api connection disables previous order API connections. The key is encrypted and not shown again. Luxstoree requires the adapter's fixed host. Save legal approval records user and date.

Verify legal basis and supplier agreement for transferring buyer name, phone and address. The record alone does not establish privacy compliance. API activation and legal approval in the UI require Super Admin. Revocation returns to manual. SiparisKanali requires supported adapter, siparis_kanali=api, approval and active or error-state order_api connection.

Enabled channel is not proof of working access.

License and reconciliation gates

SiparisGonderimServisi checks SaticiKapisi and DsLisansYenileyici::maliGerekli. Financial authorization freshness limit is 300 seconds. Stale entitlement needs live validation; fallback is insufficient. Final financial check repeats immediately before network access. Read-only GET is not financial sending.

MutabakatServisi::saglikliMi requires successful scan timestamp no older than 900 seconds and not in the future. Unhealthy scan rejects new sends with TARAMA_SAGLIKSIZ. Enabling API may restore missing Cron Center task ds:mutabakat-tara; it does not enable a user-disabled task. UI displays scan health and open reconciliation count.

Preparation and fencing

Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing) and use Send to supplier for eligible pending intent. gonderimeHazirla locks intent and customer order, checks open order and nonempty net items.

SiparisTalebi carries buyer data in memory, hides it in debug and refuses serialization. send_attempts increments; sent_at and sent_by are saved, channel api and state sending. gonderiliyor event shares transaction. Network request runs outside transaction.

Customer order is checked immediately before network access. gonderimSonucuYaz applies result only when state is sending and send_attempts matches fencing token. Old response cannot overwrite current state; gecYanit forwards it to reconciliation. Local fencing does not guarantee remote exactly-once placement.

GiyimDepom API contract

GiyimDepom uses POST /api/dealer-api/orders and X-Api-Key. items contains barcode and quantity, customer name and phone, shipping city, district and address. Required fields cannot be blank. Address limit is 600 characters. Barcode and positive quantity are required. idempotency_key becomes external_ref, maximum 80 characters; normal 64-character key fits.

HTTP 201 with ok=true and order.order_no is accepted. HTTP 200 with duplicate=true and valid order number is also accepted. HTTP 402, 422, 401 and 429 are definitive rejection. Other unexpected replies are uncertain. Same external_ref protection relies on supplier contract; live guarantee was not measured.

Luxstoree API contract

Luxstoree uses POST /api/user/order/create and ApiKey. order.paymentType is fixed to 38; other payment types cannot be selected in this adapter. delivery requires name, lastname, phone, address, city and district. products contains code, quantity and attr1/attr2/attr3 options. Product code and barcode must exist; external variant identity must match calculated identity.

Options must be nonempty and use allowed fields. Missing mapping yields VARYANT_ESLEME_EKSIK before network. HTTP 200 or 201 with code=success and valid order code inside result is accepted. Code is 1–120 characters using letters, digits, dot, underscore or hyphen. Other replies yield LUX_GONDERIM_BELIRSIZ. No external_ref is sent; remote idempotency guarantee is unverified.

Responses and safe queries

GonderimSonucu acceptance requires nonempty reference up to 120 characters. Acceptance becomes placed and linked pending allocations forwarded; reserve remains. Definitive rejection becomes pending, uncertainty needs_attention. No automatic resend. Query status for GiyimDepom uses GET with known reference, or POST with same external_ref when unknown.

The latter can create a real order and requires financial license, healthy scan and open customer order. Luxstoree only uses GET /api/user/order/detail?code=... with valid known code; no unknown-reference POST. Local query rejection does not prove absence and preserves uncertainty. GET acceptance with mismatched reference yields REF_UYUSMUYOR.

Distinguish definitive pre-network failure from uncertain network result. A narrow cancellation race remains between final check and HTTP; acceptance after closure may require reconciliation.

Examples and test coverage

Illustrative GiyimDepom item uses barcode GD-B1 and quantity 2. HTTP 201 with GD-ORDER-01 gives placed. Timeout remains needs_attention; administrator evaluates same-reference POST risk. Luxstoree example uses LX-P1, verified barcode and attr1=M, quantity 1. Valid code LX-ORDER-01 gives placed. Without reference, do not resend; investigate supplier panel. These are not real orders.

SiparisApiGonderimTest covers acceptance, rejection, uncertainty, closed order, duplicate send rejection and 300/301-second license boundary. SiparisKanaliAyariTest covers channel, encrypted key and Super Admin; GiyimDepomSiparisApiTest covers contract and same reference. LuxstoreeSiparisAdaptoruTest is in Unit directory; not rerun for publication.

No real API order or financial action performed. Verify supplier reference, reserve and reconciliation separately.

GiyimDepomLuxstoreeGD-B1 · 2 · external_refLX-P1 · 1 · attr1=MX-Api-KeyApiKeyGD-ORDER-01LX-ORDER-01

Related guides

Frequently asked questions

Does API send automatically?

No; administrator action is required.

Is legal approval sufficient?

No; connection, license, scan health and order checks also apply.

Are uncertain replies retried?

No automatic resend; use supplier-specific query.

Is GiyimDepom query always GET?

No; unknown reference can trigger POST with same external_ref.

Does Luxstoree guarantee duplicate prevention?

Not verified; unknown-reference POST is not supported.

How to Manage Uncertain and Failed Dropshipping API Orders

Frequently asked about this

No; administrator action is required.