Model phản hồi Product API

Với response_format: "standard" (mặc định), endpoint sản phẩm trả về các kiểu dưới đây. TypeScript chính thức: packages/shared/src/products.ts.

Endpoints: detail · search · image search · parse

Envelope phản hồi {#envelope}

EndpointShape
detail, parse{ product: StandardProductDetail, request_id }
search, search-by-imageStandardProductList & { request_id }
upload-image{ channel, image_id, request_id }

StandardProductDetail {#standard-product-detail}

Snapshot sản phẩm đầy đủ cho trang sản phẩm và checkout. Map sang đơn hàng: search/detail idlines[].id (offer_id / Taobao mi_id still accepted), variants[].sku_idspec_id (Procurement orders).

Danh tính & kênh

FieldTypeDescription
idstringTaobao = mi_id (lines[].id đơn hàng; thay đổi định kỳ — không cache lâu). 1688 = offerId. Weidian hiện dùng prod_weidian_{source_product_id}
channelstring1688, taobao, hoặc weidian
source_product_idstring1688 = offerId (same as id); Taobao = original item_id
source_urlstringURL trang sản phẩm chính tắc

Văn bản bản địa hóa (title, description)

FieldTypeDescription
originalstringVăn bản marketplace (thường là tiếng Trung)
translatedstring | nullBản dịch cho language được yêu cầu
languagestringLocale của translated
descriptionobject | nullChi tiết dài (thường là HTML)

Giá (price, price_tiers[])

Tất cả số tiền là CNY yuan (không phải fen). Ưu tiên promotion_amount khi có, nếu không dùng display_amount.

FieldTypeDescription
price.original_amountnumberGiá niêm yết trước khuyến mãi
price.display_amountnumberGiá hiển thị cho người mua (CNY)
price.promotion_amountnumber | nullĐơn giá khuyến mãi khi áp dụng
price.original_currency / display_currencystringLuôn là CNY
price_tiers[]arrayBậc giá sỉ 1688 (offer mới bắt đầu ≥2); rỗng trên Taobao
min_order_quantitynumber | nullMOQ 1688
distribution_min_quantitynumber | nullSố lượng tối thiểu dropship 1688

Media (images[], videos)

FieldTypeDescription
images[].urlstringURL CDN ảnh
images[].typeenummain, gallery, hoặc variant
videos.main / videos.detailstring | nullVideo 1688; Taobao null

Attributes so với variants

Chỉ variants[] điều khiển việc chọn SKU và order lines.

FieldVai trò
attributes[]CPV specs — chỉ hiển thị, không dùng để resolve SKU
variants[]Ma trận SKU có thể mua, gồm giá, tồn kho, specs

Object variant (variants[])

FieldTypeDescription
sku_idstringTruyền làm spec_id khi order create
upstream_sku_idstring | nullskuId số của 1688
attributes[]arrayChiều spec (màu, size, …)
attributes[].name / valuestringNhãn hiển thị (đã dịch theo language)
attributes[].original_name / original_valuestringKhóa tiếng Trung ổn định để nhóm / khớp
attributes[].prop_idstring | nullID thuộc tính upstream dạng string (Taobao prop_id; 1688 attributeId). Ưu tiên hơn tên văn bản
attributes[].value_idstring | nullID giá trị upstream dạng string (Taobao value_id). 1688 không có valueId → null
attributes[].imagestring | nullẢnh tùy chọn / mẫu màu
priceobjectGiá cấp SKU theo yuan
stocknumberSố lượng khả dụng; 0 = hết hàng
imagestring | nullẢnh chính của SKU
shippingobject | nullKích thước kiện SKU 1688 (bảng bên dưới); Taobao là null
min_order_quantitynumber | nullMOQ 1688 (giá trị cấp sản phẩm trên mỗi SKU)
distributionobject | nullGiá dropship 1688

Kích thước kiện SKU (variants[].shipping)

Ánh xạ từ upstream 1688 productShippingInfo.skuShippingDetails (SkuShippingDetail). Taobao không có tương đương — luôn null. Giá trị rỗng hoặc 0 được chuẩn hóa thành null; nếu SKU không có dữ liệu, shippingnull.

TrườngKiểuMô tả
width_cmnumber | nullRộng, cm (người bán khai báo)
length_cmnumber | nullDài, cm
height_cmnumber | nullCao, cm
weight_kgnumber | nullNặng, kg
official_width_cmnumber | nullChiều rộng đo chính thức, cm
official_length_cmnumber | nullChiều dài đo chính thức, cm
official_height_cmnumber | nullChiều cao đo chính thức, cm
official_weight_kgnumber | nullTrọng lượng đo chính thức, kg
ai_weight_kgnumber | nullTrọng lượng dự đoán AI, kg
ai_weight_accuracystring | nullĐộ chính xác trọng lượng AI theo danh mục lá (vd. 80%)
sourcestring | nullNguồn kích thước (vd. 商家自填)

Khi ước tính cước, ưu tiên official_*, rồi kích thước/trọng lượng người bán, rồi ai_weight_kg (dùng ai_weight_accuracy làm gợi ý độ tin cậy).

Người bán, vận chuyển & metadata

FieldTypeDescription
seller.id / seller.namestringShop id và tên hiển thị
seller.shop_urlstring | nullLink storefront
shipping.shipping_fromstring | nullKhu vực gửi hàng nội địa
shipping.domestic_shipping_feeobject | nullPhí nội địa ước tính theo yuan
metadata.raw_categorystring | nullDanh mục upstream
metadata.brandstring | nullThương hiệu khai báo
metadata.updated_atstringLần đồng bộ cuối ISO 8601
trade_scorestring | nullĐiểm chất lượng 1688

Ví dụ (đã rút gọn)

{
  "product": {
    "id": "554456348334",
    "channel": "1688",
    "source_product_id": "554456348334",
    "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_..."
}

Khả dụng field theo kênh

Field1688TaobaoWeidian
videos, price_tiers, trade_scoreTùy trường hợp
variants[].shipping, distribution
variants[].attributes[].prop_id✓ (attributeId)✓ (prop_id)
variants[].attributes[].value_id— (null)✓ (value_id)
source_product_id cho ordersofferIdmi_idPlatform id

StandardProductList {#standard-product-list}

Từ searchimage search. Mỗi mục items[] là tóm tắt — gọi detail để lấy ma trận SKU.

FieldTypeDescription
channelstringMarketplace được truy vấn
keywordstringEcho của keyword (rỗng khi chỉ tìm bằng ảnh)
page / page_sizenumberPhân trang đã áp dụng
totalnumberTổng upstream (có thể xấp xỉ)
items[]arrayObject StandardProductListItem
pic_region_infoobjectTìm bằng ảnh: vùng crop được phát hiện

StandardProductListItem

FieldTypeDescription
id, channel, source_product_id, source_urlstringDùng source_product_id để fetch detail
titleLocalizedTitleTiêu đề listing
priceProductPriceGiá tóm tắt bằng CNY yuan
imagestringURL thumbnail
seller.namestringTên shop

Phản hồi upload-image {#upload-image-response}

FieldTypeDescription
channelstringMarketplace đã lưu ảnh
image_idstringTái sử dụng trong image search

Chọn variant {#variant-selection}

  1. Load detail → đọc product.variants.
  2. Nhóm theo attributes[].original_name cho bộ chọn chiều (hoặc theo prop_id nếu có).
  3. Lọc variant theo từng lựa chọn của người dùng; disable tùy chọn hết hàng.
  4. Truyền sku_idsource_product_id khớp sang order preview.

Khóa khớp: với Taobao, ưu tiên prop_id + value_id khi có (định danh CPV ổn định; tránh nhầm khi nhiều SKU dùng cùng tên thuộc tính). Nhóm UI dùng original_name + original_value. name / value chỉ để hiển thị. Không suy luận kiểu ngữ nghĩa từ nhãn.

{
  "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/..."
}

1688 dùng cùng cấu trúc: prop_idattributeIdvalue_id: null (SkuAttribute upstream không có valueId).

Get Support

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

Email support