采購(gòu)單渲染,會(huì)返回可售商品和不可售商品,客戶可以選擇可售商品進(jìn)行采購(gòu)單下單。
接口說明
采購(gòu)單渲染,會(huì)返回可售商品和不可售商品,客戶可以選擇可售商品進(jìn)行采購(gòu)單下單。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無授權(quán)信息透出。
請(qǐng)求語法
POST /opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/commands/render HTTP/1.1
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
body | PurchaseOrderRenderQuery | 是 | 渲染采購(gòu)單 |
{
"deliveryAddress": {
"divisionCode": "610102",
"addressDetail": "陜西省西安市***大廈",
"receiverPhone": "187****1553",
"receiver": "閆先生",
"townDivisionCode": "61010212"
},
"buyerId": "test1234****679",
"productList": [
{
"quantity": 1,
"productId": "6600622091****6736",
"purchaserId": "22000009",
"skuId": "6600622091****6737"
}
]
}
返回參數(shù)
{
"requestId": "0928251D-713B-17A1-A2B0-1A57****90B4",
"orderList": [
{
"productList": [
{
"productId": "6600622091****6736",
"productTitle": "兒童學(xué)習(xí)桌",
"skuTitle": "淺灰色",
"skuId": "6600622091****6737",
"purchaserId": "22***09",
"promotionFee": null,
"quantity": 1,
"productUrl": null,
"productPicUrl": "http://img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0DYLWA_!!2216003305543.jpg",
"price": 1,
"canSell": true,
"message": null,
"features": null
}
],
"deliveryInfoList": [
{
"id": "20",
"displayName": "快遞 免郵",
"postFee": 0,
"serviceType": -4
}
],
"invoiceInfo": null,
"extInfo": null,
"canSell": true,
"message": null
}
],
"unsellableOrderList": [
{
"productList": [],
"deliveryInfoList": null,
"invoiceInfo": null,
"extInfo": null,
"canSell": false,
"message": null
}
],
"addressList": [
{
"addressId": 0,
"receiver": "閆先生",
"receiverPhone": "187****1553",
"addressDetail": "陜西省西安市***大廈",
"divisionCode": "610102",
"townDivisionCode": "610102002"
}
],
"extInfo": null,
"canSell": true,
"message": null
}
示例
正常返回示例
JSON
格式
{
"addressList": [
{
"divisionCode": "330106",
"addressDetail": "陜西省西安市新城區(qū)xx街道xxx大廈xx室",
"receiverPhone": "182***5674",
"townDivisionCode": "330106109",
"receiver": "任先生",
"addressId": 0
}
],
"canSell": true,
"requestId": "841471F6-5D61-1331-8C38-2****B55",
"orderList": [
{
"message": "庫(kù)存為0",
"deliveryInfoList": [
{
"postFee": 0,
"serviceType": -4,
"id": "20",
"displayName": "快遞 免郵"
}
],
"canSell": true,
"productList": [
{
"productTitle": "兒童學(xué)習(xí)桌",
"features": {
"test": "test",
"test2": 1
},
"skuTitle": "淺綠色",
"quantity": 1,
"productId": "6600****6736",
"canSell": true,
"price": 100,
"productPicUrl": "http://img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0",
"purchaserId": "PID56****2304",
"message": "庫(kù)存為0",
"skuId": "6600****6737"
}
],
"extInfo": {
"test": "test",
"test2": 1
}
}
],
"unsellableOrderList": [
{
"message": "庫(kù)存為0",
"deliveryInfoList": [
{
"postFee": 0,
"serviceType": -4,
"id": "20",
"displayName": "快遞 免郵"
}
],
"canSell": true,
"productList": [
{
"productTitle": "兒童學(xué)習(xí)桌",
"features": {
"test": "test",
"test2": 1
},
"skuTitle": "淺綠色",
"quantity": 1,
"productId": "6600****6736",
"canSell": true,
"price": 100,
"productPicUrl": "http://img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0",
"purchaserId": "PID56****2304",
"message": "庫(kù)存為0",
"skuId": "6600****6737"
}
],
"extInfo": {
"test": "test",
"test2": 1
}
}
],
"message": "庫(kù)存為0",
"extInfo": {
"test": "test",
"test2": 1
}
}
錯(cuò)誤碼
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。
變更歷史
變更時(shí)間 | 變更內(nèi)容概要 | 操作 |
---|---|---|
2023-09-18 | API 內(nèi)部配置變更,不影響調(diào)用 | 查看變更詳情 |