您的位置 : 文档中心 -> API信息

com.alibaba.trade:alibaba.createOrder.preview-1
创建订单前预览数据接口 免费

订单创建只允许购买同一个供应商的商品。本接口返回创建订单相关的优惠等信息并校验商品数据是否允许订购

API用户授权类型

需要授权

系统级输入参数

名称 类型 是否必须 描述
_aop_timestamp String 请求时间戳
_aop_signature String 请求签名
access_token String 用户授权令牌

应用级输入参数

名称 类型 是否必须 描述 示例值 默认值
+ addressParam alibaba.trade.fast.address 收货地址信息 {"address":"网商路699号","phone": "0517-88990077","mobile": "15251667788","fullName": "张三","postCode": "000000","areaText": "滨江区","townText": "","cityText": "杭州市","provinceText": "浙江省"}
+ cargoParamList alibaba.trade.fast.cargo[] 商品信息 [{"specId": "b266e0726506185beaf205cbae88530d","quantity": 5,"offerId": 554456348334},{"specId": "2ba3d63866a71fbae83909d9b4814f01","quantity": 6,"offerId": 554456348334}]
+ invoiceParam alibaba.trade.fast.invoice 发票信息 {"invoiceType":0,"cityText": "杭州市","provinceText": "浙江省","address": "网商路699号","phone": "0517-88990077","mobile": "15251667788","fullName": "张五","postCode": "000000","areaText": "滨江区","companyName": "测试公司","taxpayerIdentifier": "123455"}
flow String general(创建大市场订单),saleproxy(创建代销市场订单)。saleproxy将校验代销关系

返回结果

名称 类型 是否必须 描述 示例值
+ orderPreviewResuslt alibaba.createOrder.preview.result.model[] 订单预览结果,过自动拆单会返回多个记录
success Boolean 是否成功
errorCode String 错误码
errorMsg String 错误信息
postFeeByDescOfferList Long[] 运费说明的商品列表
unsupportTradeOfferList Long[] 不支持在线交易的商品列表
consignOfferList Long[]

返回结果

出参示例

  {"orderPreviewResuslt":[{"tradeModeNameList":["支付宝担保交易"],"status":true,"taoSampleSinglePromotion":false,"sumPayment":1110400,"sumCarriage":11000,"sumPaymentNoCarriage":0,"flowFlag":"general","cargoList":[{"amount":10000.0,"finalUnitPrice":100.0,"specId":"ff1d933eb41d9e32beaf1b0064537a3d","skuId":3551339764071,"offerId":563555485366,"cargoPromotionList":[]},{"amount":1000.0,"finalUnitPrice":100.0,"specId":"ff1d933eb41d9e32beaf1b0064537a3d","skuId":3718249907514,"offerId":563703251167,"cargoPromotionList":[]}],"shopPromotionList":[{"promotionId":"AliB2BShopCoupon-5630135040_31282398721-401626196352","selected":true,"text":"省6:$店铺5","desc":"<ul><li>$店铺5:省6.00元</li></ul>","freePostage":false,"discountFee":600}]}],"success":true,"postFeeByDescOfferList":[],"unsupportTradeOfferList":[]} 

API工具