开放平台

扒书 ERP Open API

商品详情

按商品 ID 或商家编码查详情,含图片、价格、库存、卖家等信息。referrer 用来记录来源,做渠道统计。

请求方式GET/POST
接口路径/api/goods/detail
Content-Type-
鉴权免登录(无需 Token)

请求参数

参数类型必填位置
idString否URL 参数
goodsSnString否URL 参数
referrerLong否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.idString-
goodsInfo.nameString-
goodsInfo.titleString-
goodsInfo.isbnString-
goodsInfo.goodsSnString-
goodsInfo.categoryIdString-
goodsInfo.authorString-
goodsInfo.publisherString-
goodsInfo.primaryPicUrlString-
goodsInfo.retailPriceBigDecimal-
goodsInfo.marketPriceBigDecimal-
goodsInfo.bookConditionString-
goodsInfo.bookConditionTextString-
goodsInfo.goodsNumberInteger-
goodsInfo.shopIdInteger-
isbnInfo对象-
isbnInfo.idInteger-
isbnInfo.levelNumInteger评分
isbnInfo.authorString作者
isbnInfo.pubdateString出版日期
isbnInfo.bindingString装订
isbnInfo.translatorString译者
isbnInfo.pagesInteger页数
isbnInfo.categoryIdString-
isbnInfo.imagesLargeString-
isbnInfo.publisherString出版社
isbnInfo.isbnStringisbn
isbnInfo.goodsSnString-
isbnInfo.titleString标题
isbnInfo.priceBigDecimal原价
isbnInfo.kaibenString开本
isbnInfo.versionString版本
isbnInfo.wordCntString-
isbnInfo.dtSource对象-
isbnInfo.subtitleString副标题
isbnInfo.summaryString简介
isbnInfo.scoreDoublescore评分
isbnInfo.labelString-
isbnInfo.calisLabelStringCALIS 分类标签
isbnInfo.volumeString册数
isbnInfo.updateTimeLocalDateTime-
isbnInfo.addTimeLocalDateTime-
isbnInfo.recycleBoolean-
isbnInfo.doubanScoreDouble-
isbnInfo.hasSubInteger-
isbnInfo.outmodedInteger-
isbnInfo.banBoolean-
isbnInfo.sellInteger-
isbnInfo.demandInteger-
isbnInfo.contentsString内容
isbnInfo.recommendWordsString推荐语
isbnInfo.authorIntroString-
isbnInfo.weightBigDecimal-
isbnInfo.gds对象数组-
isbnInfo.syncBoolean-
isbnInfo.ownActiveCodeBoolean含激活码
isbnInfo.oneIsbnMoreBookBoolean一码多书
isbnInfo.suitBookBoolean套装书
isbnInfo.imageMd5String图片md5
isbnInfo.sourceTitleString-
isbnInfo.kfzMinPriceBigDecimal-
isbnInfo.bsMinPriceBigDecimal-
isbnInfo.humanPriceBigDecimal人工定价
isbnInfo.kfzStockInteger-
isbnInfo.humanCheckBoolean-
isbnInfo.recycleMarkType对象-
isbnInfo.recyclePriceBigDecimal-
isbnInfo.recycleScoreBigDecimal-
isbnInfo.kfzSoldRateBigDecimal-
isbnInfo.kfzSoldAvgPriceBigDecimal-
isbnInfo.kfzWeekSellInteger孔网销量/价格指标(同步自 业务数据)
isbnInfo.kfzMonthSellInteger-
isbnInfo.kfzThreeMonthSellInteger-
isbnInfo.kfzHalfYearSellInteger-
isbnInfo.kfzYearSellInteger-
isbnInfo.kfzAvgPriceBigDecimal-
isbnInfo.marketStockInteger分销仓汇总库存(定时同步)
isbnInfo.marketStockTimeLocalDateTime-
isbnInfo.bookDataSyncTimeLocalDateTime-
isbnInfo.kfzSellShopCountInteger-
isbnInfo.kfzSellAvgPriceDouble-
isbnInfo.kfzLastSoldDayDouble-
isbnInfo.lastSaleDayDouble-
isbnInfo.bs3mSaleFloat-
isbnInfo.bs3mSalePriceDouble-
isbnInfo.bsStockInteger-
isbnInfo.socialInteger-
isbnInfo.recycleUpdateTimeLocalDateTime-
isbnInfo.imagesString-
isbnInfo.syncErpBoolean-
isbnInfo.imageListArray<String>-
isbnInfo.userIdLong-
isbnInfo.subUserNameString最近一次实拍档案操作人(日志表查询填充,非表字段)
isbnInfo.categoryDescString-
isbnInfo.stockLocationString-
isbnInfo.bookFlagBoolean-
isbnInfo.messBoolean-
isbnInfo.lastUpdatePriceTimeLocalDateTime-
isbnInfo.bookConditionString图书品相(编码,如 p85、p0)
isbnInfo.marketingTrendString-
isbnInfo.warehouseIdInteger-
conditionGoods对象数组-
cartTotallong-
…(字段较多,仅列前 60 个)