商品详情
按商品 ID 或商家编码查详情,含图片、价格、库存、卖家等信息。referrer 用来记录来源,做渠道统计。
| 请求方式 | GET/POST |
| 接口路径 | /api/goods/detail |
| Content-Type | - |
| 鉴权 | 免登录(无需 Token) |
请求参数
| 参数 | 类型 | 必填 | 位置 |
id | String | 否 | URL 参数 |
goodsSn | String | 否 | URL 参数 |
referrer | Long | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/goods/detail?id=xxx&goodsSn=xxx&referrer=1'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"goodsInfo": {
"id": "string",
"name": "string",
"title": "string",
"isbn": "string",
"goodsSn": "string",
"categoryId": "string",
"author": "string",
"publisher": "string",
"primaryPicUrl": "string",
"retailPrice": 0.0,
"marketPrice": 0.0,
"bookCondition": "string",
"bookConditionText": "string",
"goodsNumber": 1,
"shopId": 1
},
"isbnInfo": {
"id": 1,
"levelNum": 1,
"author": "string",
"pubdate": "string",
"binding": "string",
"translator": "string",
"pages": 1,
"categoryId": "string",
"imagesLarge": "string",
"publisher": "string",
"isbn": "string",
"goodsSn": "string",
"title": "string",
"price": 0.0,
"kaiben": "string",
"version": "string",
"wordCnt": "string",
"dtSource": "...",
"subtitle": "string",
"summary": "string",
"score": 0.0,
"label": "string",
"calisLabel": "string",
"volume": "string",
"updateTime": "string",
"addTime": "string",
"recycle": true,
"doubanScore": 0.0,
"hasSub": 1,
"outmoded": 1,
"ban": true,
"sell": 1,
"demand": 1,
"contents": "string",
"recommendWords": "string",
"authorIntro": "string",
"weight": 0.0,
"gds": [
"..."
],
"sync": true,
"ownActiveCode": true,
"oneIsbnMoreBook": true,
"suitBook": true,
"imageMd5": "string",
"sourceTitle": "string",
"kfzMinPrice": 0.0,
"bsMinPrice": 0.0,
"humanPrice": 0.0,
"kfzStock": 1,
"humanCheck": true,
"recycleMarkType": "...",
"recyclePrice": 0.0,
"recycleScore": 0.0,
"kfzSoldRate": 0.0,
"kfzSoldAvgPrice": 0.0,
"kfzWeekSell": 1,
"kfzMonthSell": 1,
"kfzThreeMonthSell": 1,
"kfzHalfYearSell": 1,
"kfzYearSell": 1,
"kfzAvgPrice": 0.0,
"marketStock": 1,
"marketStockTime": "string",
"bookDataSyncTime": "string",
"kfzSellShopCount": 1,
"kfzSellAvgPrice": 0.0,
"kfzLastSoldDay": 0.0,
"lastSaleDay": 0.0,
"bs3mSale": 0.0,
"bs3mSalePrice": 0.0,
"bsStock": 1,
"social": 1,
"recycleUpdateTime": "string",
"images": "string",
"syncErp": true,
"imageList": [
"..."
],
"userId": 1,
"subUserName": "string",
"categoryDesc": "string",
"stockLocation": "string",
"bookFlag": true,
"mess": true,
"lastUpdatePriceTime": "string",
"bookCondition": "string",
"marketingTrend": "string",
"warehouseId": 1
},
"conditionGoods": [
{
"goodsSn": "...",
"bookCondition": "...",
"bookConditionText": "...",
"goodsNumber": "...",
"retailPrice": "...",
"name": "...",
"primaryPicUrl": "..."
}
],
"cartTotal": 1
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
goodsInfo | 对象 | - |
goodsInfo.id | String | - |
goodsInfo.name | String | - |
goodsInfo.title | String | - |
goodsInfo.isbn | String | - |
goodsInfo.goodsSn | String | - |
goodsInfo.categoryId | String | - |
goodsInfo.author | String | - |
goodsInfo.publisher | String | - |
goodsInfo.primaryPicUrl | String | - |
goodsInfo.retailPrice | BigDecimal | - |
goodsInfo.marketPrice | BigDecimal | - |
goodsInfo.bookCondition | String | - |
goodsInfo.bookConditionText | String | - |
goodsInfo.goodsNumber | Integer | - |
goodsInfo.shopId | Integer | - |
isbnInfo | 对象 | - |
isbnInfo.id | Integer | - |
isbnInfo.levelNum | Integer | 评分 |
isbnInfo.author | String | 作者 |
isbnInfo.pubdate | String | 出版日期 |
isbnInfo.binding | String | 装订 |
isbnInfo.translator | String | 译者 |
isbnInfo.pages | Integer | 页数 |
isbnInfo.categoryId | String | - |
isbnInfo.imagesLarge | String | - |
isbnInfo.publisher | String | 出版社 |
isbnInfo.isbn | String | isbn |
isbnInfo.goodsSn | String | - |
isbnInfo.title | String | 标题 |
isbnInfo.price | BigDecimal | 原价 |
isbnInfo.kaiben | String | 开本 |
isbnInfo.version | String | 版本 |
isbnInfo.wordCnt | String | - |
isbnInfo.dtSource | 对象 | - |
isbnInfo.subtitle | String | 副标题 |
isbnInfo.summary | String | 简介 |
isbnInfo.score | Double | score评分 |
isbnInfo.label | String | - |
isbnInfo.calisLabel | String | CALIS 分类标签 |
isbnInfo.volume | String | 册数 |
isbnInfo.updateTime | LocalDateTime | - |
isbnInfo.addTime | LocalDateTime | - |
isbnInfo.recycle | Boolean | - |
isbnInfo.doubanScore | Double | - |
isbnInfo.hasSub | Integer | - |
isbnInfo.outmoded | Integer | - |
isbnInfo.ban | Boolean | - |
isbnInfo.sell | Integer | - |
isbnInfo.demand | Integer | - |
isbnInfo.contents | String | 内容 |
isbnInfo.recommendWords | String | 推荐语 |
isbnInfo.authorIntro | String | - |
isbnInfo.weight | BigDecimal | - |
isbnInfo.gds | 对象数组 | - |
isbnInfo.sync | Boolean | - |
isbnInfo.ownActiveCode | Boolean | 含激活码 |
isbnInfo.oneIsbnMoreBook | Boolean | 一码多书 |
isbnInfo.suitBook | Boolean | 套装书 |
isbnInfo.imageMd5 | String | 图片md5 |
isbnInfo.sourceTitle | String | - |
isbnInfo.kfzMinPrice | BigDecimal | - |
isbnInfo.bsMinPrice | BigDecimal | - |
isbnInfo.humanPrice | BigDecimal | 人工定价 |
isbnInfo.kfzStock | Integer | - |
isbnInfo.humanCheck | Boolean | - |
isbnInfo.recycleMarkType | 对象 | - |
isbnInfo.recyclePrice | BigDecimal | - |
isbnInfo.recycleScore | BigDecimal | - |
isbnInfo.kfzSoldRate | BigDecimal | - |
isbnInfo.kfzSoldAvgPrice | BigDecimal | - |
isbnInfo.kfzWeekSell | Integer | 孔网销量/价格指标(同步自 业务数据) |
isbnInfo.kfzMonthSell | Integer | - |
isbnInfo.kfzThreeMonthSell | Integer | - |
isbnInfo.kfzHalfYearSell | Integer | - |
isbnInfo.kfzYearSell | Integer | - |
isbnInfo.kfzAvgPrice | BigDecimal | - |
isbnInfo.marketStock | Integer | 分销仓汇总库存(定时同步) |
isbnInfo.marketStockTime | LocalDateTime | - |
isbnInfo.bookDataSyncTime | LocalDateTime | - |
isbnInfo.kfzSellShopCount | Integer | - |
isbnInfo.kfzSellAvgPrice | Double | - |
isbnInfo.kfzLastSoldDay | Double | - |
isbnInfo.lastSaleDay | Double | - |
isbnInfo.bs3mSale | Float | - |
isbnInfo.bs3mSalePrice | Double | - |
isbnInfo.bsStock | Integer | - |
isbnInfo.social | Integer | - |
isbnInfo.recycleUpdateTime | LocalDateTime | - |
isbnInfo.images | String | - |
isbnInfo.syncErp | Boolean | - |
isbnInfo.imageList | Array<String> | - |
isbnInfo.userId | Long | - |
isbnInfo.subUserName | String | 最近一次实拍档案操作人(日志表查询填充,非表字段) |
isbnInfo.categoryDesc | String | - |
isbnInfo.stockLocation | String | - |
isbnInfo.bookFlag | Boolean | - |
isbnInfo.mess | Boolean | - |
isbnInfo.lastUpdatePriceTime | LocalDateTime | - |
isbnInfo.bookCondition | String | 图书品相(编码,如 p85、p0) |
isbnInfo.marketingTrend | String | - |
isbnInfo.warehouseId | Integer | - |
conditionGoods | 对象数组 | - |
cartTotal | long | - |
| …(字段较多,仅列前 60 个) |