Order Preview API
POST /v1/orders/preview - Positionen, Preise und inländische Fracht vor Create validieren.
Verwandt: Bestellung erstellen · Antwortmodell
Request-Body
| Feld | Erforderlich | Beschreibung |
|---|---|---|
channel | Ja | 1688 | taobao |
receiver | Ja | Inländische Inbound-Adresse: name, mobile, province, city, address; 1688 ohne address_id benötigt zusätzlich district |
lines[] | Ja | offer_id, spec_id, quantity pro Position |
response_format | Nein | standard (Standard) oder upstream |
Taobao: Gateway führt automatisch Batch-Checks für mi_id + Traffic-sku_id aus und ruft anschließend Upstream Render auf.
Beispiel
POST /v1/orders/preview
{
"channel": "1688",
"receiver": {
"name": "张三",
"mobile": "15251667788",
"province": "浙江省",
"city": "杭州市",
"district": "滨江区",
"address": "网商路699号"
},
"lines": [
{
"offer_id": "554456348334",
"spec_id": "b266e0726506185beaf205cbae88530d",
"quantity": 5
}
]
}Antwort
StandardOrderPreviewResult - siehe Bestell-Antwortmodelle. JSON-Beispiel: Antwortformat.