企业商品详情
获取企业指定商品详情
接口地址
https://open.taolai.com/api/v1/corp/product/info
请求方法及参数(POST请求)
| 参数 |
是否必须 |
参数类型 |
限制长度 |
参数说明 |
| corp_key |
yes |
string |
255 |
企业的唯一标识 |
| app_id |
yes |
string |
255 |
应用的唯一标识 |
| nonce_str |
yes |
string |
32 |
1~32位随机数 |
| cp_pd_id |
yes |
Number |
10 |
商品id |
| ts |
yes |
long |
10 |
时间戳(单位:秒) |
| sign |
yes |
string |
255 |
sign值的生成规则参考签名规则 |
接口返回参数:(JSON格式)
| 参数 |
参数类型 |
参数说明 |
| status |
string |
状态,success或error |
| code |
Number |
状态码 |
| data |
json |
返回值 |
data返回值说明:(JSON格式)
| 参数 |
参数类型 |
参数说明 |
| pdId |
Number |
商品id |
| pdImg |
String |
商品主图 |
| pdDesc |
String |
商品描述 |
| pdDetails |
json |
商品详情 |
| commercePrice |
decimal |
市场价 |
| pdPrice |
decimal |
商品售价 |
| pdPoints |
decimal |
商品兑换积分 |
| brandName |
String |
品牌名称 |
| maxBuy |
Number |
最大购买数 |
| maxDayBuy |
Number |
每天最大购买数 |
| pdStock |
Number |
商品总库存(有规格时包含规格库存) |
| skuId |
Number |
规格id |
| skuPrice |
decimal |
规格兑换价 |
| skuPoints |
decimal |
规格兑换积分 |
| skuName |
String |
规格名称 |
| skuTypeName |
String |
规格类型名称 |
| skuImg |
String |
规格图片 |
| skuStock |
Number |
规格库存 |
示例:
{
"status": "success",
"code": 200,
"data": {
"pdId": 33,
"pdName": "休闲系列-午休毯 70cm*100cm*1",
"pdImg": "http://oss.taolai.com/public/pd/61370cc34bc5f.jpg",
"pdDesc": "",
"pdDetails": "http://oss.taolai.com/public/pd/61370cc8c22d7.jpg",
"commercePrice": "119.00",
"pdPrice": "0.00",
"pdPoints": "0.00",
"pdTypeId": 4,
"pdTypeName": "毛毯",
"maxBuy": 0,
"maxDayBuy": 0,
"pdStock": 191,
"brandName": "",
"sku": [
{
"skuId": 14,
"skuPrice": "0.00",
"skuPoints": "0.00",
"skuName": "春野",
"skuTypeName": "花型",
"skuImg": "http://oss.taolai.com/public/pd/61370cc34bc5f.jpg",
"skuStock": 91
}
]
}
}