- 淘宝
- 1688
- 商品
- 购物车
- 订单
- 售后
- 消息回调
- 基础
- 仓库物流
创建订单前预览数据接口
POST
/v2/alibaba/order/create/preview
请求参数
Header 参数
access-key
string
必需
默认值:
your-access-key
timestamp
string
必需
默认值:
your-timestamp
user-id
string
必需
默认值:
your-user-id
signature
string
必需
默认值:
your-signature
Body 参数application/json
addressParam
object (FastAdress)
收货地址信息
fullName
string
可选
mobile
string
可选
phone
string
可选
postCode
string
可选
cityText
string
可选
provinceText
string
可选
areaText
string
可选
townText
string
可选
address
string
可选
districtCode
string
可选
cargoParamList
array[object (FastCargo) {6}]
商品信息不能为空
sellerOpenId
string
可选
offerMapId
string
可选
specId
string
可选
quantity
number
可选
productNo
string
可选
container
string
可选
示例
{
"addressParam": {
"fullName": "string",
"mobile": "string",
"phone": "string",
"postCode": "string",
"cityText": "string",
"provinceText": "string",
"areaText": "string",
"townText": "string",
"address": "string",
"districtCode": "string"
},
"cargoParamList": [
{
"sellerOpenId": "string",
"offerMapId": "string",
"specId": "string",
"quantity": 0,
"productNo": "string",
"container": "string"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/alibaba/order/create/preview' \
--header 'access-key;' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"addressParam": {
"fullName": "string",
"mobile": "string",
"phone": "string",
"postCode": "string",
"cityText": "string",
"provinceText": "string",
"areaText": "string",
"townText": "string",
"address": "string",
"districtCode": "string"
},
"cargoParamList": [
{
"sellerOpenId": "string",
"offerMapId": "string",
"specId": "string",
"quantity": 0,
"productNo": "string",
"container": "string"
}
]
}'
返回响应
🟢200成功
application/json
Body
requestId
string
请求ID
code
integer
返回码
developId
integer
开发者ID
msg
string
返回码对应信息
data
object (AlibabaCreateOrderPreviewV2VO)
返回内容
postFeeByDescOfferList
array[integer]
运费说明的商品列表
consignOfferList
array[integer]
代销商品列表
unsupportedCrossBorderPayOfferList
array[integer]
可选
orderPreviewResuslt
array[object (AlibabaCreateOrderPreviewResultModel[]) {16}]
可选
示例
{
"requestId": "",
"code": 0,
"developId": 0,
"msg": "",
"data": {
"postFeeByDescOfferList": [
0
],
"consignOfferList": [
0
],
"unsupportedCrossBorderPayOfferList": [
0
],
"orderPreviewResuslt": [
{
"discountFee": 0,
"tradeModeNameList": [
""
],
"status": false,
"taoSampleSinglePromotion": false,
"sumPayment": 0,
"message": "",
"sumCarriage": 0,
"resultCode": "",
"sumPaymentNoCarriage": 0,
"additionalFee": 0,
"flowFlag": "",
"cargoList": [
{
"amount": 0,
"message": "",
"finalUnitPrice": 0,
"specId": "",
"skuId": 0,
"resultCode": "",
"offerId": 0,
"cargoPromotionList": [
{
"promotionId": "",
"selected": false,
"text": "",
"desc": "",
"freePostage": false,
"discountFee": 0
}
],
"openOfferId": ""
}
],
"shopPromotionList": [
{
"promotionId": "",
"selected": false,
"text": "",
"desc": "",
"freePostage": false,
"discountFee": 0
}
],
"tradeModelList": [
{
"tradeWay": "",
"name": "",
"tradeType": "",
"description": "",
"opSupport": false
}
],
"payChannelList": [
{
"channel": "",
"avaliable": false
}
],
"payChannelInfos": [
{
"name": "",
"amountLimit": 0
}
]
}
]
}
}
修改于 2025-04-24 09:20:36