开放平台

扒书 ERP Open API

修改售价

改自己某本书的售价,改完立即生效。

请求方式POST
接口路径/api/selfSell/updatePrice
Content-Type-
鉴权X-Nideshop-Token

curl 调用

curl -s 'https://www.8shu8.com/api/selfSell/updatePrice' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

{
  "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列表展示用,来自货品档案