Order API response models

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.

See purchase creation and manual procurement for seller identity, correct/incorrect examples, error codes, and Warehouse responsibilities. Procurement orders remain separate when their packages are later consolidated into one shipment. Persist every returned order_list[].order_id; top-level order_id is only the first ID.

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

Types in packages/shared/src/ (order-preview-result.ts, order-create-result.ts, trade.ts, logistics-trace.ts).

Standard responses on preview, create, and detail include top-level monetary_unit: "CNY_minor" — all { amount, currency } values are CNY fen (1 yuan = 100 fen). POST /v1/products/freight/estimate uses the same convention. Product catalog prices use yuan (CNY_major); see Product response models. Upstream format omits monetary_unit.

StandardOrderPreviewResult

From order preview.

FieldTypeDescription
successbooleantrue only when the payable total, seller groups, requested lines, availability, and applicable trade mode pass validation
total.merchandiseMoney | nullMerchandise subtotal; null only when genuinely unknown
total.paymentMoneyTotal payable
total.shippingMoney | nullDomestic shipping portion; known free shipping is Money with amount: 0
sellers[]arrayGrouped by seller with lines[], fees
unavailable_lines[]arrayFailed validation or stock
trade_types[]array1688 only
promotionsobject1688 promotions when present
code / messagestringOptional business status, including LINE_UNAVAILABLE, UNSUPPORTED_TRADE_MODE, or PREVIEW_INCOMPLETE
monetary_unitstringAlways CNY_minor in standard preview responses
request_idstringRequest correlation id

A parseable but incomplete standard preview is HTTP 200 with success:false. Existing 1688 upstream SKU, stock, MOQ, and marketplace business errors retain the legacy HTTP 502 CHANNEL_UPSTREAM_ERROR behavior for compatibility. In response_format:"upstream", HTTP 200 can contain an upstream business failure; inspect the raw upstream.success, code, message, and nested equivalents.

StandardOrderCreateResult

FieldTypeDescription
order_idstringUse for pay, detail, trace
total.paymentMoneyAmount to pay
order_list[]arraySub-orders / seller splits
failed_offers[]arrayPartial create possible with success: true
outer_purchase_idstringTaobao idempotency key
payment_urlstringTaobao optional payment URL

StandardOrderPayResult

FieldDescription
successChannel payment result. Taobao self standard mode: true only after order query confirms payment
pending / payment_statusOptional Taobao self confirmation fields. Pending/unknown is not a confirmed failure; do not submit a new payment
order_status / order_status_rawLatest normalized/official order status used for Taobao confirmation
upstream_request_idOfficial payment API request id, when supplied
payment_submission_statusOptional Taobao self evidence: submitted, rejected, unknown; not settlement status
payment_recoveryOptional action, reason, elapsed_seconds; see payment recovery. Manual review is not automatic retry permission; elapsed time is from the original keyed attempt
pay_channel1688 payment method
error_code / error_messageExplicit payment rejection; may be absent for pending/unknown

StandardOrderDetail

FieldDescription
statuse.g. wait_payment, wait_shipment, shipped
refund_statusRead-only; refund APIs not public
amountstotal, product_total, shipping_fee, refund (fen)
line_items[]Product rows with sku_specs, status
timescreated_at, paid_at, shipped_at, …
domestic_parcels[]Warehouse mode → fulfillment

UnifiedLogisticsTrace

From domestic trace.

FieldDescription
packages[]tracking_number, carrier, steps[]
cross_border_packages[]1688 cross-border nodes — not international fulfillment

StandardOrderCancelResult

FieldDescription
successCancel accepted (may still process)
pendingTaobao async cancel
sub_order_idsPartial cancel affected ids

Get Support

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

Email support