POST api/SimpleVendingMachine/MerchantProduct
查询商户商品资料
请求的信息
URI参数
None.
Body参数
入参模型
MerchantProductInfo| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| list |
商品编码集合 |
MachineProduct |
None. |
| page |
分页页数 |
integer |
None. |
| pageCount |
分页行数 |
integer |
None. |
| appKey |
合作方接入认证标识(海王提供对应商户编码)--必填 |
string |
None. |
| timeStamp |
10位时间戳 格式为long,时区为GMT+8。开放平台允许合作方请求最大时间误差为10分钟 |
integer |
None. |
| version |
API协议版本,可选值:1.0 |
string |
None. |
| sign |
签名值 --必填 |
string |
None. |
请求格式
application/json, text/json
Sample:
{
"list": {
"$id": "2",
"barcode": "sample string 1",
"name": "sample string 2"
},
"page": 1,
"pageCount": 2,
"appKey": "sample string 3",
"timeStamp": 4,
"version": "sample string 5",
"sign": "sample string 6"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
CustomJsonResultOfMerchantProductResult| 名称 | 描述 | 类型 | 其它信息 |
|---|---|---|---|
| Content |
None. |
响应格式
application/json, text/json
Sample:
{
"content": {
"$id": "2",
"total": 1,
"pageCount": 2,
"page": 3,
"list": [
{
"$id": "3",
"barcode": "sample string 1",
"productName": "sample string 2",
"genericName": "sample string 3",
"productSpec": "sample string 4",
"productFactory": "sample string 5",
"productPrice": 6.0,
"approvals": "sample string 7",
"productUnit": "sample string 8"
},
{
"$ref": "3"
},
{
"$ref": "3"
}
],
"customStatus": 10,
"customMessage": "sample string 4"
}
}