Produkt-API-Antwortmodelle

Mit response_format: "standard" (Standard) geben Produkt-Endpoints die folgenden Typen zurück. Kanonisches TypeScript: packages/shared/src/products.ts.

Endpoints: Detail · Suche · Bildsuche · Parse

Response-Envelope {#envelope}

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

StandardProductDetail {#standard-product-detail}

Vollständiger Produktsnapshot für Produktseiten und Checkout. Mapping auf Bestellungen: source_product_idoffer_id, variants[].sku_idspec_id (Beschaffungsbestellungen).

Identität & Channel

FeldTypBeschreibung
idstringHIOBuy-Kompositschlüssel: {channel}_{source_product_id}
channelstring1688, taobao oder weidian
source_product_idstring1688 = offerId; Taobao = mi_id (für Order-APIs erforderlich)
source_urlstringKanonische Produktseiten-URL

Lokalisierter Text (title, description)

FeldTypBeschreibung
originalstringMarketplace-Text (typischerweise Chinesisch)
translatedstring | nullÜbersetzung für angefragtes language
languagestringLocale von translated
descriptionobject | nullAusführliches Detail (oft HTML)

Preise (price, price_tiers[])

Alle Beträge CNY Yuan (nicht Fen). Bevorzugen Sie promotion_amount, wenn gesetzt, sonst display_amount.

FeldTypBeschreibung
price.original_amountnumberListenpreis vor Aktionen
price.display_amountnumberKäuferseitiger Preis (CNY)
price.promotion_amountnumber | nullAktions-Stückpreis, falls zutreffend
price.original_currency / display_currencystringImmer CNY
price_tiers[]array1688-Großhandelsstaffeln; leer bei Taobao
min_order_quantitynumber | null1688 MOQ
distribution_min_quantitynumber | null1688-Dropship-Mindestmenge

Medien (images[], videos)

FeldTypBeschreibung
images[].urlstringBild-CDN-URL
images[].typeenummain, gallery oder variant
videos.main / videos.detailstring | null1688-Videos; Taobao null

Attribute vs. Varianten

Nur variants[] steuert SKU-Auswahl und Bestellpositionen.

FeldRolle
attributes[]CPV-Spezifikationen - nur Anzeige, nicht für SKU-Auflösung
variants[]Kaufbare SKU-Matrix mit Preis, Bestand und Spezifikationen

Variantenobjekt (variants[])

FeldTypBeschreibung
sku_idstringBei Order Create als spec_id übergeben
upstream_sku_idstring | nullNumerische 1688-skuId
attributes[]arraySpezifikationsdimensionen (Farbe, Größe, …)
priceobjectSKU-Preis in Yuan
stocknumberVerfügbare Menge; 0 = nicht vorrätig
imagestring | nullSKU-Hauptbild
shippingobject | null1688-Paketabmessungen für Fracht
distributionobject | null1688-Dropship-Preise

Verkäufer, Versand & Metadaten

FeldTypBeschreibung
seller.id / seller.namestringShop-ID und Anzeigename
seller.shop_urlstring | nullStorefront-Link
shipping.shipping_fromstring | nullInländische Versandregion
shipping.domestic_shipping_feeobject | nullGeschätzte Inlandgebühr in Yuan
metadata.raw_categorystring | nullUpstream-Kategorie
metadata.brandstring | nullAngegebene Marke
metadata.updated_atstringLetzte Synchronisierung nach ISO 8601
trade_scorestring | null1688-Qualitätsscore

Beispiel (gekürzt)

{
  "product": {
    "id": "1688_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...",
        "stock": 100
      }
    ]
  },
  "request_id": "req_..."
}

Feldverfügbarkeit nach Channel

Feld1688TaobaoWeidian
videos, price_tiers, trade_scoreVariiert
variants[].shipping, distribution
source_product_id für BestellungenofferIdmi_idPlattform-ID

StandardProductList {#standard-product-list}

Aus Suche und Bildsuche. Jeder items[]-Eintrag ist eine Zusammenfassung - Detail aufrufen für SKU-Matrix.

FeldTypBeschreibung
channelstringAbgefragter Marketplace
keywordstringEcho des Keywords (leer bei reiner Bildsuche)
page / page_sizenumberAngewendete Paginierung
totalnumberUpstream-Gesamtzahl (kann ungefähr sein)
items[]arrayStandardProductListItem-Objekte
pic_region_infoobjectBildsuche: erkannte Crop-Region

StandardProductListItem

FeldTypBeschreibung
id, channel, source_product_id, source_urlstringsource_product_id verwenden, um Detail abzurufen
titleLocalizedTitleListing-Titel
priceProductPriceSummary-Preis in CNY Yuan
imagestringThumbnail-URL
seller.namestringShop-Name

Upload-image-Antwort {#upload-image-response}

FeldTypBeschreibung
channelstringMarketplace, der das Bild gespeichert hat
image_idstringIn Bildsuche wiederverwenden

Variantenauswahl {#variant-selection}

  1. Detail laden → product.variants lesen.
  2. Nach attributes[].original_name für Dimensionsauswahlen gruppieren.
  3. Varianten bei jeder Benutzerauswahl filtern; nicht vorrätige Optionen deaktivieren.
  4. Passende sku_id und source_product_id an Order Preview übergeben.