查档案并建商品
按 ISBN 查公开档案,没有就顺手建一个商品,上书时一步完成。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/isbn/getPublicByIsbnAndCreateProduct |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
isbn | String | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/isbn/getPublicByIsbnAndCreateProduct?isbn=xxx' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为数组,每项结构见下方字段说明。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": [
{
"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": [
"string"
],
"userId": 1,
"subUserName": "string",
"categoryDesc": "string",
"stockLocation": "string",
"bookFlag": true,
"mess": true,
"lastUpdatePriceTime": "string",
"bookCondition": "string",
"marketingTrend": "string",
"warehouseId": 1
}
]
}