开放平台

扒书 ERP Open API

设为回收点

把某个地址设为回收点,之后上门的回收订单默认送到这里。

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

请求体类型:Map<String, Object>

curl 调用

curl -s 'https://www.8shu8.com/api/address/setRecyclePoint' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '...'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "id": 1,
    "userId": 1,
    "userName": "string",
    "telNumber": "string",
    "postalCode": "string",
    "nationalCode": "string",
    "provinceName": "string",
    "cityName": "string",
    "countyName": "string",
    "detailInfo": "string",
    "lat": 0.0,
    "lon": 0.0,
    "addTime": "string",
    "updateTime": "string",
    "addressType": "...",
    "recyclePoint": 1,
    "addressTypeDesc": "string",
    "distanceKm": 0.0,
    "fullRegion": "string",
    "allInfo": "string"
  }
}

返回字段(data)

字段类型说明
idInteger-
userIdLong-
userNameString收货人姓名
telNumberString手机
postalCodeString邮编
nationalCodeString-
provinceNameString省
cityNameString市
countyNameString区
detailInfoString详细收货地址信息
latDouble纬度
lonDouble经度
addTimeLocalDateTime添加时间
updateTimeLocalDateTime更新时间
addressType对象-
recyclePointInteger1 设为回收点,回收订单送往此地址;默认 0
addressTypeDescString-
distanceKmDouble距当前用户的距离(公里),仅附近列表返回
fullRegionString-
allInfoString-