开放平台

扒书 ERP Open API

某用户出售的书

分页查看指定用户正在出售的书,做卖家主页、店铺页时用。

请求方式GET/POST
接口路径/api/goods/list
Content-Type-
鉴权X-Nideshop-Token

请求参数

参数类型必填位置
curPageInteger是URL 参数
userIdLong否URL 参数
pageSizeInteger是URL 参数
nameString否URL 参数

curl 调用

curl -s 'https://www.8shu8.com/api/goods/list?curPage=1&userId=1&pageSize=1&name=xxx' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

data 为分页对象,业务数据在 records。

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "records": [
      {
        "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"
      }
    ],
    "total": 0,
    "size": 10,
    "current": 1,
    "pages": 0
  }
}