Product API response models
With response_format: "standard" (default), product endpoints return the types below. Canonical TypeScript: packages/shared/src/products.ts.
Endpoints: detail · search · image search · parse
Monetary units
| Scope | monetary_unit | amount meaning |
|---|---|---|
Catalog (detail, search, parse, …) | CNY_major (yuan) — documented convention; field not yet required on every response | List/display prices in yuan |
POST /v1/products/freight/estimate | CNY_minor on response envelope | Domestic freight in fen, same as order preview |
Response envelope
| Endpoint | Shape |
|---|---|
detail, parse | { product: StandardProductDetail, request_id } |
search, search-by-image | StandardProductList & { request_id } |
upload-image | { channel, image_id, request_id } |
StandardProductDetail
Full product snapshot for product pages and checkout. For preview, map product.id to lines[].id and the selected variants[].sku_id to lines[].spec_id. For Taobao create, use the resolved pair returned by preview.
Identity & channel
| Field | Type | Description |
|---|---|---|
id | string | Taobao = mi_id (pass to preview lines[].id; rotates periodically — do not cache long-term). 1688 = offerId. Weidian currently uses prod_weidian_{source_product_id} |
channel | string | 1688, taobao, or weidian |
source_product_id | string | 1688 = offerId; Taobao = original item_id |
source_url | string | Canonical product page URL |
Localized text (title, description)
| Field | Type | Description |
|---|---|---|
original | string | Marketplace text (typically Chinese) |
translated | string | null | Translation for requested language |
language | string | Locale of translated |
description | object | null | Long-form detail (often HTML) |
Pricing (price, price_tiers[])
All amounts CNY yuan (not fen). Prefer promotion_amount when set, else display_amount.
| Field | Type | Description |
|---|---|---|
price.original_amount | number | 1-piece list price (1688 retailPrice when set) |
price.display_amount | number | Buyer-facing 1-piece price (CNY) |
price.promotion_amount | number | null | Promotional unit price when applicable |
price.original_currency / display_currency | string | Always CNY |
variants[].price.wholesale_amount | number | null | 1688 SKU wholesale (≥2 pcs) when retailPrice exists |
price_tiers[] | array | 1688 wholesale breaks (new offers start at ≥2); empty on Taobao |
min_order_quantity | number | null | 1688 MOQ from upstream; Taobao defaults to 1 (retail) |
order_quantity_multiple | integer | Purchase quantity multiple; 1688 batchNumber. Missing/invalid values, Taobao and Weidian default to 1. |
distribution_min_quantity | number | null | 1688 dropship minimum |
Purchase quantity rules
product.order_quantity_multiple is a positive integer: purchase quantities must be multiples of this value. For 1688 it maps batchNumber (units per purchase lot); missing or invalid values default to 1. Taobao and Weidian return 1.
Meet the minimum quantity and the multiple separately. With min_order_quantity = 10 and order_quantity_multiple = 6, quantities start at 12, 18, 24…, subject to stock and other marketplace rules.
For product detail requests, response_format: "upstream" keeps the original batchNumber; this standard field does not rename the raw response or automatically adjust order quantities.
Media (images[], videos)
| Field | Type | Description |
|---|---|---|
images[].url | string | Image CDN URL |
images[].type | enum | main, gallery, or variant |
videos.main / videos.detail | string | null | 1688 videos; Taobao null |
Attributes vs variants
Only variants[] drives SKU selection and order lines.
| Field | Role |
|---|---|
attributes[] | CPV specs — display only, not for SKU resolution |
variants[] | Purchasable SKU matrix with price, stock, specs |
Variant object (variants[])
| Field | Type | Description |
|---|---|---|
sku_id | string | Selected SKU ID for preview spec_id; Taobao create uses the resolved preview pair |
upstream_sku_id | string | null | 1688 numeric skuId |
attributes[] | array | Spec dimensions (color, size, …) |
attributes[].name / value | string | Display labels (localized when language is set) |
attributes[].original_name / original_value | string | Stable Chinese keys for grouping / matching |
attributes[].prop_id | string | null | Upstream property id as string (Taobao prop_id; 1688 attributeId). Prefer this over name text when present |
attributes[].value_id | string | null | Upstream value id as string (Taobao value_id). 1688 has no value id → null |
attributes[].image | string | null | Spec swatch / option image |
price | object | SKU-level price in yuan |
stock | number | Available qty; 0 = out of stock |
image | string | null | SKU primary image |
shipping | object | null | 1688 SKU package dimensions (table below); Taobao null |
min_order_quantity | number | null | 1688 MOQ on each SKU; Taobao defaults to 1 |
distribution | object | null | 1688 dropship pricing |
Taobao per-SKU prices before purchase
For catalog display, use the selected variant’s price.promotion_amount ?? price.display_amount, in CNY yuan. Do not use the product-level price as the price of every SKU. Taobao SKU amounts prefer the upstream SKU promotional price when present, otherwise the SKU price; original_amount is not a guaranteed undiscounted procurement price. Catalog data is a snapshot, not a checkout quote.
For a current procurement quote, call POST /v1/orders/preview with the selected identifiers, quantity, and actual receiver, and require success === true. Read sellers[].lines[].unit_price.amount for the quoted SKU unit price and line_total.amount for its subtotal when returned. total.payment.amount is the order payable total, including domestic shipping; it is not a per-SKU price. Preview Money amounts are CNY fen (CNY_minor): 5580 means CNY 55.80. If a line price is absent, do not interpret it as zero.
The quote follows the App’s fulfillment mode. HIOBuy Fulfillment (warehouse) preview excludes marketplace promotions and uses undiscounted procurement prices; catalog promotions may therefore differ. Preview does not lock a price. Create amounts can also be estimates: query POST /v1/orders/detail after create to confirm the current order amount before payment.
SKU package dimensions (variants[].shipping)
Mapped from 1688 upstream productShippingInfo.skuShippingDetails (SkuShippingDetail). Taobao has no equivalent — always null. Empty or 0 size/weight values normalize to null; if a SKU has no dimension data at all, shipping itself is null.
| Field | Type | Description |
|---|---|---|
width_cm | number | null | Width, cm (merchant-declared) |
length_cm | number | null | Length, cm |
height_cm | number | null | Height, cm |
weight_kg | number | null | Weight, kg |
official_width_cm | number | null | Official measured width, cm |
official_length_cm | number | null | Official measured length, cm |
official_height_cm | number | null | Official measured height, cm |
official_weight_kg | number | null | Official measured weight, kg |
ai_weight_kg | number | null | AI-predicted weight, kg |
ai_weight_accuracy | string | null | AI weight accuracy for the product’s leaf category (e.g. 80%) |
source | string | null | Dimension source (e.g. 商家自填) |
For freight estimates, prefer official_*, then merchant-declared size/weight, then ai_weight_kg (with ai_weight_accuracy as a confidence hint).
Seller, shipping & metadata
| Field | Type | Description |
|---|---|---|
seller.id / seller.name | string | Shop id and display name |
seller.shop_url | string | null | Storefront link |
shipping.shipping_from | string | null | Domestic dispatch region |
shipping.domestic_shipping_fee | object | null | Estimated domestic fee in yuan |
metadata.raw_category | string | null | Upstream category |
metadata.brand | string | null | Declared brand |
metadata.updated_at | string | ISO 8601 last sync |
trade_score | string | null | 1688 quality score |
Example (truncated)
{
"product": {
"id": "554456348334",
"channel": "1688",
"source_product_id": "554456348334",
"min_order_quantity": 10,
"order_quantity_multiple": 6,
"title": {
"original": "...",
"translated": "...",
"language": "en"
},
"price": {
"display_amount": 29.9,
"promotion_amount": 24.9
},
"variants": [
{
"sku_id": "b266e0...",
"upstream_sku_id": "12123313",
"stock": 100,
"shipping": {
"width_cm": 10,
"length_cm": 10,
"height_cm": 10,
"weight_kg": 1.2,
"official_width_cm": 5,
"official_length_cm": 12,
"official_height_cm": 14,
"official_weight_kg": 0.001,
"ai_weight_kg": 0.001,
"ai_weight_accuracy": "80%",
"source": "商家自填"
}
}
]
},
"request_id": "req_..."
}Channel field availability
| Field | 1688 | Taobao | Weidian |
|---|---|---|---|
order_quantity_multiple | batchNumber / 1 | 1 | 1 |
videos, price_tiers, trade_score | ✓ | — | Varies |
variants[].shipping, distribution | ✓ | — | — |
variants[].attributes[].prop_id | ✓ (attributeId) | ✓ (prop_id) | — |
variants[].attributes[].value_id | — (null) | ✓ (value_id) | — |
Order lines[].id | id / offerId | id (mi_id) | Platform id |
StandardProductList
From search and image search. Each items[] entry is a summary — call detail for SKU matrix.
| Field | Type | Description |
|---|---|---|
channel | string | Marketplace queried |
keyword | string | Echo of keyword (empty for pure image search) |
page / page_size | number | Pagination applied |
total | number | Upstream total (may be approximate) |
items[] | array | StandardProductListItem objects |
pic_region_info | object | Image search: detected crop region |
StandardProductListItem
| Field | Type | Description |
|---|---|---|
id, channel, source_product_id, source_url | string | Use the search result id to fetch detail; Taobao source_product_id is the original item_id |
title | LocalizedTitle | Listing title |
price | ProductPrice | Summary price in CNY yuan |
image | string | Thumbnail URL |
seller.name | string | Shop name |
Upload-image response
| Field | Type | Description |
|---|---|---|
channel | string | Marketplace that stored the image |
image_id | string | Reuse in image search |
Variant selection
- Load detail → read
product.variants. - Group by
attributes[].original_namefor dimension pickers (or byprop_idwhen present). - Filter variants on each user choice; disable out-of-stock options.
- Pass the product
idand selectedvariants[].sku_idto order preview. For Taobao create, use the resolved preview pair.
Matching keys: prefer prop_id + value_id (Taobao) when both are set — they are stable CPV identities and avoid cross-SKU name collisions (e.g. many options sharing Color Classification). Fall back to original_name + original_value for UI grouping. Use name / value for display only. Do not infer semantic types from labels.
{
"prop_id": "1627207",
"value_id": "43553464153",
"name": "Color Classification",
"value": "[Special for Bicycle Maintenance] Professional 46-Piece Set",
"original_name": "颜色分类",
"original_value": "【自行车维修专用】专业46件套",
"image": "https://img.alicdn.com/..."
}On 1688 the same shape is used with prop_id from attributeId and value_id: null (upstream SkuAttribute has no value id).
1688 ratings: current-page filtering
items[].trade_score: 1688 keyword/seller standard search only: upstream tradeScore, numeric string or null when missing/invalid. Other channels and image search are unchanged.
page, page_size, and total retain their unfiltered upstream meaning (total falls back to the original page count if the upstream total is absent). rating_filter.source_count is the current page count before filtering; returned_count is the count after filtering. rating_filter.scope is always current_page. The metadata is present only when filtering is requested.
A response can have fewer items or even an empty items array while more pages exist. has_next, when available, uses unfiltered upstream pagination. If it is absent, pagination is unknown; do not infer the end from the filtered item count. Continue paging with a bounded client-side page limit.
rating_start: Optional 1688 current-page minimum trade_score; JSON number ≥ 0. Standard format only. See 1688 rating filtering for pagination, missing scores, and examples.
Get Support
Need integration help? Contact Developer Support at support@hiobuy.com · Response within 1–2 business days