开放平台

扒书 ERP Open API

扫码收书

PDA 扫一本书加进当前草稿,可以连续扫,重复扫同一本会累加数量。

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

请求参数

参数类型必填位置
isbnString是URL 参数

curl 调用

curl -s 'https://www.8shu8.com/api/offlineReceive/scan?isbn=xxx' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "items": [
      {
        "id": "...",
        "userId": "...",
        "subUserId": "...",
        "batchId": "...",
        "isbn": "...",
        "title": "...",
        "imageUrl": "...",
        "weight": "...",
        "unitRecyclePrice": "...",
        "quantity": "...",
        "verifiedQuantity": "...",
        "addTime": "...",
        "updateTime": "..."
      }
    ],
    "totalQuantity": 1,
    "totalAmount": 0.0
  }
}

返回字段(data)

字段类型说明
items对象数组-
items[].idLong-
items[].userIdLong-
items[].subUserIdLong子账号/操作人用户ID
items[].batchIdLong批次ID;NULL 表示当前未提交草稿
items[].isbnString-
items[].titleString-
items[].imageUrlString-
items[].weightBigDecimal-
items[].unitRecyclePriceBigDecimal-
items[].quantityInteger-
items[].verifiedQuantityInteger-
items[].addTimeLocalDateTime-
items[].updateTimeLocalDateTime-
totalQuantityint总册数 sum(quantity)
totalAmountBigDecimal总金额 sum(unitRecyclePrice * quantity)