开放平台

扒书 ERP Open API

修改可售数量

改自己某本书的可售数量。

请求方式POST
接口路径/api/selfSell/updateGoodsNumber
Content-Typeapplication/json
鉴权X-Nideshop-Token

请求体字段

字段类型必填说明
nameString否书名
primaryPicUrlString否商品主图
marketPriceBigDecimal否-
headPhotoUrlString否-
promotionDescString否-
idLong否-
goodsStatus对象否-
goodsSnString否-
fullTextString否书名+作者+出版社,全文检索
goodsNumberInteger否-
addTimeLocalDateTime否-
retailPriceBigDecimal否-
sellVolumeInteger否-
createUserIdLong否-
updateTimeLocalDateTime否-
shopIdInteger否-
latDouble否经度
lonDouble否维度
pushTimeLocalDateTime否-
isSelfSellBoolean否-
goodsIdLong否-
expiredTimeLocalDateTime否-
skuIdString否-
secondBoolean否-
distanceBigDecimal否-
recyclePriceBigDecimal否-
storeIdInteger否-
bookConditionString否品相,存 编码
imagesArray<String>否-
categoryIdString否-
itemSnString否-
isbnString否-
authorString否列表展示用,来自货品档案
publisherString否列表展示用,来自货品档案

curl 调用

curl -s 'https://www.8shu8.com/api/selfSell/updateGoodsNumber' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "primaryPicUrl": "string",
  "marketPrice": 0.0,
  "headPhotoUrl": "string",
  "promotionDesc": "string",
  "id": 1,
  "goodsStatus": "...",
  "goodsSn": "string",
  "fullText": "string",
  "goodsNumber": 1,
  "addTime": "string",
  "retailPrice": 0.0,
  "sellVolume": 1,
  "createUserId": 1,
  "updateTime": "string",
  "shopId": 1,
  "lat": 0.0,
  "lon": 0.0,
  "pushTime": "string",
  "isSelfSell": true,
  "goodsId": 1,
  "expiredTime": "string",
  "skuId": "string",
  "second": true,
  "distance": 0.0,
  "recyclePrice": 0.0,
  "storeId": 1,
  "bookCondition": "string",
  "images": [
    "string"
  ],
  "categoryId": "string",
  "itemSn": "string",
  "isbn": "string",
  "author": "string",
  "publisher": "string"
}'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "name": "string",
    "primaryPicUrl": "string",
    "marketPrice": 0.0,
    "headPhotoUrl": "string",
    "promotionDesc": "string",
    "id": 1,
    "goodsStatus": "...",
    "goodsSn": "string",
    "fullText": "string",
    "goodsNumber": 1,
    "addTime": "string",
    "retailPrice": 0.0,
    "sellVolume": 1,
    "createUserId": 1,
    "updateTime": "string",
    "shopId": 1,
    "lat": 0.0,
    "lon": 0.0,
    "pushTime": "string",
    "isSelfSell": true,
    "goodsId": 1,
    "expiredTime": "string",
    "skuId": "string",
    "second": true,
    "distance": 0.0,
    "recyclePrice": 0.0,
    "storeId": 1,
    "bookCondition": "string",
    "images": [
      "string"
    ],
    "categoryId": "string",
    "itemSn": "string",
    "isbn": "string",
    "author": "string",
    "publisher": "string"
  }
}

返回字段(data)

字段类型说明
nameString书名
primaryPicUrlString商品主图
marketPriceBigDecimal-
headPhotoUrlString-
promotionDescString-
idLong-
goodsStatus对象-
goodsSnString-
fullTextString书名+作者+出版社,全文检索
goodsNumberInteger-
addTimeLocalDateTime-
retailPriceBigDecimal-
sellVolumeInteger-
createUserIdLong-
updateTimeLocalDateTime-
shopIdInteger-
latDouble经度
lonDouble维度
pushTimeLocalDateTime-
isSelfSellBoolean-
goodsIdLong-
expiredTimeLocalDateTime-
skuIdString-
secondBoolean-
distanceBigDecimal-
recyclePriceBigDecimal-
storeIdInteger-
bookConditionString品相,存 编码
imagesArray<String>-
categoryIdString-
itemSnString-
isbnString-
authorString列表展示用,来自货品档案
publisherString列表展示用,来自货品档案