简要描述:
- 根据平台类型获取各平台的商品详情
请求URL:
POST/wapapi/cpsapi/getGoodsDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
type | 是 | string | 平台类型 拼多多:pdd 京东:jd |
goods_id | 是 | int | 商品id |
返回示例:
正确时返回:
{
以下为**拼多多**的数据类型
"code": 1,
"message": "获取成功",
"data": {
"pdd_goods_detail":{
coupon_discount: 300
coupon_end_time: 1580486399
coupon_min_order_amount: 300
coupon_start_time: 1579190400
goods_id: 2967697165
goods_image_url: "https://t00img.yangkeduo.com/goods/images/2020-01-03/808622ed-c32f-4c0c-b559-892f595b4d91.jpg"
goods_name: "秋冬季男士牛仔裤男加绒加厚款宽松直筒弹力修身商务大码长裤子男"
goods_thumbnail_url: "https://t00img.yangkeduo.com/goods/images/2020-01-03/7b37b2bca9b6410356dce122af6483b4.jpeg"
goods_gallery_urls: [
0: "https://t00img.yangkeduo.com/goods/images/2020-01-03/808622ed-c32f-4c0c-b559- 892f595b4d91.jpg"
1: "https://t00img.yangkeduo.com/goods/images/2020-01-03/6b0a6f24-e6c0-42ff-9734- b77c09fe161b.jpg"
2: "https://t00img.yangkeduo.com/goods/images/2020-01-03/924ec814-6085-4478-ae2c- e2466c444781.jpg"
3: "https://t00img.yangkeduo.com/goods/images/2020-01-03/fe1e22f4-8bd2-4f03-81b6- 2d4c6f9a0412.jpg"
4: "https://t00img.yangkeduo.com/goods/images/2019-12-03/ebad9b43-2907-4d12-b1f1- 8d61c7391832.png"
5: "https://t00img.yangkeduo.com/goods/images/2019-12-03/e8f2bef5-56df-4c39-82ee- 75c9bb5b4f0d.png"
6: "https://t00img.yangkeduo.com/goods/images/2019-12-03/5a54dbcf-41d3-4d4c-bf72- 59b7aec8840e.png"
7: "https://t00img.yangkeduo.com/goods/images/2019-12-03/77f54d22-17a9-42d9-97d1- 92dc9cc3d212.jpg"
8: "https://t00img.yangkeduo.com/goods/images/2020-01-03/33358195-e315-47f2-b081- 4c7846de3fb6.jpg"
9: "https://t00img.yangkeduo.com/goods/images/2020-01-03/bb49df06-c135-437f-bd2b- 22014cea3846.jpg"
]
has_coupon: true
min_group_price:4500
min_normal_price: 4900
promotion_rate: 80
sales_tip: "5.2万"
}
buyer_bonus_rate: 10,
share_bonus_rate: 5
}
以下为**京东**的数据类型
"code": 1,
"message": "获取成功",
"data": {
"jd_goods_detail":{
commissionInfo: [
commission: 23.6
commissionShare: 20
couponCommission: 9.6
]
couponInfo:[
couponList:[
0:[
bindType: 3
discount: 70
getEndTime: 1582072800000
getStartTime: 1579394400000
isBest: 1
link: "https://coupon.m.jd.com/coupons/show.action?key=01ba122ff5d54bb98aebe0a8f3eefe1c&roleId=27552150&to=mall.jd.com/index-943224.html"
platformType: 0
quota: 118
useEndTime: 1582127999000
useStartTime: 1579363200000
],
1:[
bindType: 3
discount: 70
getEndTime: 1582351740000
getStartTime: 1581746940000
isBest: 0
link: "http://coupon.m.jd.com/coupons/show.action?key=ac69dfb5fce44013ac0dbaf8864b47ff&roleId=27839781&to=mall.jd.com/index-943224.html"
platformType: 0
quota: 118
useEndTime: 1582387199000
useStartTime: 1581696000000
]
]
]
imageInfo:[
imageList:[
0:[
url: "http://img14.360buyimg.com/ads/jfs/t1/41374/5/3125/129585/5ccd8391E855e584a/245f01401f35faf1.jpg"
]
]
]
inOrderCount30Days: 371
priceInfo:[
lowestCouponPrice: 48
lowestPrice: 118
lowestPriceType: 2
price: 298
]
skuId: 46901371789
skuName: "美人春夏薄款塑身内衣收腹束腰活力提臀美体衣无痕产后瘦身连体束身衣超薄美人G塑身衣女 0086三角 黑色 M码 建议80-105斤"
materialUrl:item.jd.com/34655030935.html
}
buyer_bonus_rate: 10,
share_bonus_rate: 5
}
}
错误时返回:
{
"code": 0,
"message": "获取失败",
"data":[]
}
拼多多返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
goods_id | int | 商品id | |
goods_name | string | 商品名称 | |
goods_image_url | string | 商品主图 | |
goods_thumbnail_url | string | 商品缩略图 | |
coupon_discount | int | 优惠券面额,单位为分 | |
coupon_end_time | int | 优惠券失效时间,UNIX时间戳 | |
coupon_min_order_amount | int | 优惠券门槛价格,单位为分 | |
coupon_start_time | int | 优惠券生效时间,UNIX时间戳 | |
has_coupon | bool | 商品是否有优惠券 true-有,false-没有 | |
min_group_price | int | 最小拼团价(单位为分) | |
min_normal_price | int | 最小单买价格(单位为分) | |
promotion_rate | int | 佣金比例,千分比 | |
sales_tip | string | 已售卖件数 | |
goods_gallery_urls | array | 商品详情 | |
buyer_bonus_rate | int | 平台设定的消费者的佣金比例(百分比) | |
share_bonus_rate | int | 平台设定的分享者的佣金比例(百分比) |
京东返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
skuId | int | 商品id | |
skuName | string | 商品名称 | |
imageInfo | array | 图片信息 | |
imageList | array | 图片合集 | |
url | string | 第一个图片链接为主图链接 | |
couponInfo | array | 优惠券信息,返回内容为空说明该SKU无可用优惠券 | |
couponList | array | 优惠券合集 | |
discount | int | 券面额(单位:元) | |
link | string | 券链接 | |
isBest | int | 最优优惠券,1:是;0:否 | |
priceInfo | array | 价格信息 | |
price | int | 无线价格(单位:元) | |
lowestCouponPrice | int | 最低价后的优惠券价 | |
inOrderCount30Days | int | 30天引单数量 | |
commissionInfo | array | 佣金信息 | |
commission | int | 佣金(单位:元) | |
commissionShare | int | 佣金比例 | |
couponCommission | int | 券后佣金 | |
materialUrl | string | 商品落地页 | |
buyer_bonus_rate | int | 平台设定的消费者的佣金比例(百分比) | |
share_bonus_rate | int | 平台设定的分享者的佣金比例(百分比) |