开放平台

扒书 ERP Open API

订阅品类提醒

订阅某个品类,有货或价格变化时发通知。

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

请求体字段

字段类型必填说明
monthsInteger否订阅月数 1~36

curl 调用

curl -s 'https://www.8shu8.com/api/recycle/merchant/sortSubscription/subscribe' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "months": 1
}'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "expireTime": "string",
    "monthlyPrice": 0.0,
    "standardMonthlyPrice": 0.0,
    "longTermMonthlyPrice": 0.0,
    "longTermFromMonths": 1,
    "priceTip": "string",
    "active": true,
    "freeCount": 1,
    "freeCountLimit": 1,
    "freeRemaining": 1,
    "freeScanTip": "string"
  }
}

返回字段(data)

字段类型说明
expireTimeLocalDateTime订阅到期时间,无订阅记录时为 null
monthlyPriceBigDecimal当前档位月单价(按所选月数计算时可忽略,以 standard/longTerm 为准)
standardMonthlyPriceBigDecimal标准月单价(不足 12 个月)
longTermMonthlyPriceBigDecimal长订月单价(12 个月及以上)
longTermFromMonthsint长订优惠起订月数
priceTipString价格说明文案
activeboolean-
freeCountInteger已用免费扫描次数(未订阅时累计)
freeCountLimitInteger免费扫描上限
freeRemainingInteger剩余免费扫描次数
freeScanTipString免费额度说明