下单预览 API
POST /v1/orders/preview — 在创建订单前校验行项、价格与国内运费。
请求体
| 字段 | 必填 | 说明 |
|---|---|---|
channel | 是 | 1688 | taobao |
receiver | 是 | 国内入库地址:name、mobile、province、city、address;1688 未传 address_id 时还需 district |
lines[] | 是 | 每行:offer_id、spec_id、quantity |
response_format | 否 | standard(默认)或 upstream |
淘宝:Gateway 自动批量校验 mi_id 与流量 sku_id,再调用上游 render。
示例
POST /v1/orders/preview
{
"channel": "1688",
"receiver": {
"name": "张三",
"mobile": "15251667788",
"province": "浙江省",
"city": "杭州市",
"district": "滨江区",
"address": "网商路699号"
},
"lines": [
{
"offer_id": "554456348334",
"spec_id": "b266e0726506185beaf205cbae88530d",
"quantity": 5
}
]
}