POST api/Common/GetProductPriceAndSotck
通用接口获取线上商城商品库存和价格
请求的信息
URI参数
None.
Body参数
ProductPriceAndSotckCondition| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| AppKey |
合作方接入认证标识(海王提供对应商户编码)--必填 |
string |
None. |
| TimeStamp |
10位时间戳 格式为long,时区为GMT+8。开放平台允许合作方请求最大时间误差为10分钟 |
integer |
None. |
| Version |
API协议版本,可选值:1.0 |
string |
None. |
| Sign |
签名值 --必填 |
string |
None. |
| BarCode |
商品编码 |
Collection of string |
None. |
请求格式
application/json, text/json
Sample:
{
"appKey": "sample string 1",
"timeStamp": 2,
"version": "sample string 3",
"sign": "sample string 4",
"barCode": [
"sample string 1",
"sample string 2",
"sample string 3"
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
CustomJsonResultOfPageResultViewOfProductPriceAndSotckModel| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| Content | PageResultViewOfProductPriceAndSotckModel |
None. |
响应格式
application/json, text/json
Sample:
{
"content": {
"$id": "2",
"total": 1,
"result": [
{
"$id": "3",
"price": "sample string 1",
"goodsID": "sample string 2",
"barCode": "sample string 3",
"goodCount": "sample string 4"
},
{
"$ref": "3"
},
{
"$ref": "3"
}
],
"customStatus": 10,
"customMessage": "sample string 2"
}
}