Taobao APIs require an active paid subscription. The 7-day free trial includes 1688 and Weidian only. Calls without the required subscription return HTTP 403 with PAID_SUBSCRIPTION_REQUIRED. Upgrade in the developer center and continue using the same API key.

Create procurement order API

Procurement order preview and creation cost 0 API Units, including the 1688/Taobao channel shortcuts, in both Self Fulfillment and HIOBuy Fulfillment. They do not consume subscription quota or traffic packs and remain available when API Unit balance is exhausted. API key, scope, subscription/channel access, procurement eligibility and rate limits still apply. Order charges and procurement fees still apply.

Product reads retrieve real data. Order preview and shipping quotes estimate costs without creating or paying an order. Procurement creation creates a real business order; procurement payment and shipment payment can spend real funds. Inbound notices create warehouse records, and shipment creation requests warehouse processing. Confirm production activation, the intended order, amount and account before each business mutation. Persist business identifiers and use Idempotency-Key where documented; query the existing result after an uncertain response instead of submitting a new payment.

One Channel, One Seller, One Order

Each purchase order can contain multiple products or SKUs, but all items must belong to the same channel and seller.

If your customer purchases products from different sellers or channels, your application must split them into separate purchase orders before calling the HIOBuy Order API.

HIOBuy does not automatically split purchase orders and does not expose a Batch Order API for this workflow.

Identify the channel and seller

  • Use the order-level channel; shortcut paths must agree with any body or line channel. Do not mix channels in lines[] or items[].
  • Reuse genuine Product API seller.id for client grouping when available: 1688 derives it from sellerOpenId; Taobao detail derives it from shop_id. A generated seller_1688_* / seller_taobao_* fallback, missing ID, product title or shop name is not reliable seller evidence. Do not compare Taobao shop IDs with render seller IDs; they are different identifier namespaces.
  • No new mandatory seller field is added to the standard create request. In self mode the Gateway verifies 1688 ownership from original product details, and Taobao ownership from render_item_list[].seller_id plus complete product/SKU coverage before official creation. Missing or ambiguous evidence is rejected.
  • In Warehouse procurement mode, including Manual Order, the warehouse owns seller validation before creating any order, starting procurement, debiting a wallet or returning partial success. Gateway checks raw channel conflicts and propagates the warehouse’s validation errors without performing duplicate marketplace lookups. Warehouse acceptance is required; Gateway does not establish that an external warehouse already implements this check.
  • For Manual Order, channel=manual selects the route; all items must also share one source_platform. seller_name is a display declaration only. Warehouse must resolve trusted platform seller ownership for every item. When it cannot, it must reject with SELLER_ID_UNAVAILABLE; a caller-supplied name or ID is not a substitute. Do not enable Manual creation before this contract is accepted.

Errors and recovery

All three errors use HTTP 400, category VALIDATION_ERROR:

CodeWhat to do
MULTIPLE_CHANNELS_NOT_ALLOWEDSplit items by channel; ensure the path, body and line channels agree.
MULTIPLE_SELLERS_NOT_ALLOWEDSplit each channel’s items by genuine seller identity, then create separately.
SELLER_ID_UNAVAILABLEObtain valid product/SKU identities or a trusted Warehouse seller resolver. Do not retry unchanged inputs or guess from names.

Mixed-order message: “A purchase order must contain products from the same channel and seller. Please split the items into separate orders by channel and seller.”

A seller-scope rejection must produce no purchase order, procurement task, wallet debit or partially successful order. Existing idempotency rules remain in force. Each intentionally separate purchase needs its own business reference/key; retry an unchanged purchase with its original key.

Procurement versus consolidated shipping

Purchase orders are domestic purchases from individual sellers. Products from separate purchase orders can later be received as separate warehouse packages and, subject to warehouse/shipping eligibility, consolidated into one international shipment. Consolidation does not merge the original procurement order numbers, domestic freight, payment, cancellation or refund states.

Correct: two SKUs from the same seller

Illustrative identities: both selected SKUs belong to product 554456348334 and the same verified seller. Use real IDs returned by product detail and the same valid warehouse receiver.

{
  "channel": "1688",
  "receiver": {
    "name": "Buyer",
    "mobile": "13800138000",
    "province": "浙江省",
    "city": "杭州市",
    "district": "滨江区",
    "address": "Warehouse road"
  },
  "lines": [
    {
      "id": "554456348334",
      "spec_id": "spec-A",
      "quantity": 1
    },
    {
      "id": "554456348334",
      "spec_id": "spec-B",
      "quantity": 2
    }
  ],
  "external_order_id": "MY-SELLER-A-001"
}

Incorrect: two sellers in one purchase

Assume product 111111111111 belongs to Seller A and 222222222222 to Seller B. This request must be rejected with MULTIPLE_SELLERS_NOT_ALLOWED before procurement; create two separate orders instead.

{
  "channel": "1688",
  "receiver": {
    "name": "Buyer",
    "mobile": "13800138000",
    "province": "浙江省",
    "city": "杭州市",
    "district": "滨江区",
    "address": "Warehouse road"
  },
  "lines": [
    {
      "id": "111111111111",
      "spec_id": "shoe-SKU",
      "quantity": 1
    },
    {
      "id": "222222222222",
      "spec_id": "shirt-SKU",
      "quantity": 1
    }
  ]
}

A line declaring channel: "taobao" inside a channel: "1688" order is also rejected, with MULTIPLE_CHANNELS_NOT_ALLOWED.

Taobao order identifiers

Persist every order_list[].order_id and line sub_order_id. Top-level order_id remains the first order ID for compatibility; it is not a batch or aggregate identifier. A legacy/multiple-order response must not cause later IDs to be discarded. Query/pay/cancel each returned purchase order independently.

Validation latency

Self Taobao unified creation reuses its existing render response: this validation adds no render request. Legacy mpId/mpSkuId creation adds one read-only render. Self 1688 adds one detail lookup per distinct product, deduplicated across SKUs with at most four concurrent lookups. Warehouse mode adds no Gateway marketplace lookup. These are request-count guarantees, not measured production latency claims.

Manual procurement API — channel=manual · jd / pinduoduo / poizon / goofish

POST /v1/orders/create uses the receiver + lines structure from preview, plus create-only fields. The field names stay the same; Taobao identifier values can change during preview.

Related: Order preview · Response model

Order line identifiers

For 1688, retain the detail identifiers. For Taobao, use the successful preview’s returned product/SKU pair as shown below; both fields must come from the same returned line.

channellines[].idlines[].spec_id
1688product.idproduct.variants[].sku_id
taobaopreview.sellers[].lines[].offer_id (mpId)preview.sellers[].lines[].spec_id (mpSkuId)

Taobao: detail SKU, preview, and create

spec_id is the order request field name. For preview, copy product.id (mi_id) into lines[].id and the selected product.variants[].sku_id into lines[].spec_id. Do not use Taobao source_product_id (the original item_id). Gateway resolves the pair through batch-check before render; a separate client batch-check call is not required.

After a successful standard preview, copy each returned sellers[].lines[].offer_id to create lines[].id and that same line’s spec_id to create lines[].spec_id. For Taobao these are the resolved mpId + mpSkuId. Keep the pair together and preserve quantity and receiver. The self unified-create path also resolves the original detail pair; HIOBuy Fulfillment (warehouse) create forwards the identifiers to the warehouse without another Gateway batch-check. Use the resolved preview pair for this flow.

For the resolved create line: Send one product-ID field per line. If both id and offer_id are present, offer_id takes precedence. Do not retain a stale alias or mix a detail product ID with a procurement SKU ID. A numeric product ID is treated as an already-resolved mpId; an arbitrary Taobao URL item_id is not a substitute.

const createLine = {
  id: previewLine.offer_id,
  spec_id: previewLine.spec_id,
  quantity: previewLine.quantity,
};

For catalog-vs-quote prices, fulfillment-mode rules, and yuan/fen conversion, see Taobao SKU prices.

Additional fields

  • external_order_id — your idempotency key
  • buyer_message — note to seller
  • Taobao: outer_purchase_id auto-generated if omitted

For direct 1688 creation, use_red_envelope defaults to "n" and the Gateway explicitly sends useRedEnvelope=n to alibaba.trade.createCrossOrder, in both standard and upstream response formats. Set "y" only to opt in to red envelopes. The default does not trigger a red-envelope fallback retry. Disabling red envelopes does not guarantee KJB payment eligibility and does not change existing orders. Resolve upstream creation errors before retrying; do not assume an automatic retry.

1688 create example

POST /v1/orders/create
{
  "channel": "1688",
  "flow": "general",
  "receiver": {
    "name": "张三",
    "mobile": "15251667788",
    "province": "浙江省",
    "city": "杭州市",
    "district": "滨江区",
    "address": "网商路699号"
  },
  "lines": [
    {
      "id": "554456348334",
      "spec_id": "b266e0726506185beaf205cbae88530d",
      "quantity": 5
    }
  ],
  "external_order_id": "MY-ORDER-20260101",
  "buyer_message": "请尽快发货",
  "trade_type": "assureTrade"
}

Taobao create example

The following Taobao IDs illustrate a resolved pair from standard preview. Replace both with the values returned for your selection; the preview request used detail mi_id + traffic sku_id.

POST /v1/orders/create
{
  "channel": "taobao",
  "receiver": {
    "name": "张三",
    "mobile": "15251667788",
    "province": "浙江省",
    "city": "杭州市",
    "district": "滨江区",
    "address": "网商路699号"
  },
  "lines": [
    {
      "id": "4097395883635948",
      "spec_id": "44219489626348",
      "quantity": 5
    }
  ],
  "external_order_id": "MY-TB-ORDER-001",
  "buyer_message": "请尽快发货"
}

Response

StandardOrderCreateResult. On success, persist order_id for pay, detail, and trace.

See order response models.

HIOBuy Fulfillment order identifiers

In HIOBuy Fulfillment (warehouse) mode, a successful standard create response that has only order_sn also returns order_id with the same value. The original order_sn is retained. An existing non-empty order_id is preserved. Use order_id when referencing the order or passing its identifier to subsequent APIs. This applies to unified create and the 1688/Taobao create shortcuts; upstream-format payloads are unchanged.

Response excerpt:

{
  "success": true,
  "order_id": "DG1234",
  "order_sn": "DG1234"
}

Get Support

Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days

Email support