查詢選品池商品銷售信息。
接口說明
查詢選品池商品銷售信息:分銷商可調用此接口查詢商品銷售信息,如商品狀態等;通過 divisionCode(建議傳入五級地址(鄉鎮/街道) Code) 入參查詢商品在該區域是否可售。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求語法
GET /opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/{productId}/saleInfo HTTP/1.1
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
productId | string | 是 | 商品 id | 660460842235822080 |
purchaserId | string | 是 | 采購方 id | PID22000009 |
divisionCode | string | 否 | 區域碼(建議為五級鄉鎮/街道級地址 code) | 330106109 |
{
"productId": "660460842235822080",
"purchaserId": "PID22000009",
"divisionCode": "330106109"
}
返回參數
{
"requestId": "33D4B4FC-E37F-1CB1-A4DD-F953B7F296DB",
"shopId": "21000019",
"divisionCode": "330106109",
"productId": "660460842235822080",
"title": "發財樹 5--我用下小蟻這個商品-qhh 不用你其他商品",
"skus": [
{
"shopId": "21000019",
"divisionCode": "330106109",
"productId": "660460842235822080",
"skuId": "660460842235822081",
"title": "天藍色",
"skuStatus": "Online",
"canSell": false,
"quantity": -1,
"fuzzyQuantity": "無貨",
"price": 1,
"markPrice": 999900
},
{
"shopId": "21000019",
"divisionCode": "330106109",
"productId": "660460842235822080",
"skuId": "660460842235822082",
"title": "紅色",
"skuStatus": "Online",
"canSell": true,
"quantity": -1,
"fuzzyQuantity": "有貨",
"price": 2,
"markPrice": 999900
},
{
"shopId": "21000019",
"divisionCode": "330106109",
"productId": "660460842235822080",
"skuId": "660460842235822083",
"title": "黑色",
"skuStatus": "Online",
"canSell": false,
"quantity": -1,
"fuzzyQuantity": "無貨",
"price": 1,
"markPrice": 999900
}
],
"canSell": true,
"productStatus": "Online",
"quantity": -1,
"fuzzyQuantity": "有貨"
}
示例
正常返回示例
JSON
格式
{
"divisionCode": "330106109",
"quantity": 10,
"skus": [
{
"divisionCode": "330106109",
"markPrice": 999900,
"quantity": -1,
"productId": "660460842235822080",
"canSell": true,
"price": 19800,
"fuzzyQuantity": "有貨",
"skuStatus": "Online",
"shopId": "21000017",
"title": "天藍色",
"skuId": "660460842235822081"
}
],
"productId": "660460842235822080",
"canSell": true,
"requestId": "3239281273464326823",
"fuzzyQuantity": "有貨",
"productStatus": "Online",
"shopId": "21000017",
"title": "發財樹",
"lmItemId": "21000017-4580902812",
"limitRules": [
{
"ruleType": "UpperNumberPerUser",
"limitNum": 1,
"beginTime": 1724947200000,
"endTime": 1724947200000,
"condcase": "day"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|---|---|
2023-09-18 | API 內部配置變更,不影響調用 | 查看變更詳情 |