查询选品池商品销售信息。
接口说明
查询选品池商品销售信息:分销商可调用此接口查询商品销售信息,如商品状态等;通过 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 内部配置变更,不影响调用 | 查看变更详情 |