开放平台

扒书 ERP Open API

新增或修改回收商品

往回收商品库里加一本书,或者改它的回收价和状态。

请求方式POST
接口路径/api/recycle/merchant/goods/save
Content-Typeapplication/json
鉴权X-Nideshop-Token

请求体字段

字段类型必填说明
idLong否-
userIdLong否-
goodsSnString否-
recyclePriceBigDecimal否-
recycleBoolean否1 回收 0 不回收
addTimeLocalDateTime否-

curl 调用

curl -s 'https://www.8shu8.com/api/recycle/merchant/goods/save' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": 1,
  "userId": 1,
  "goodsSn": "string",
  "recyclePrice": 0.0,
  "recycle": true,
  "addTime": "string"
}'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "id": 1,
    "userId": 1,
    "goodsSn": "string",
    "recyclePrice": 0.0,
    "recycle": true,
    "addTime": "string"
  }
}

返回字段(data)

字段类型说明
idLong-
userIdLong-
goodsSnString-
recyclePriceBigDecimal-
recycleBoolean1 回收 0 不回收
addTimeLocalDateTime-