开放平台

扒书 ERP Open API

实收核验

和当天书目明细里的 ISBN 比对,核验通过数量加一,用于确认书真的收到了。

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

请求参数

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

curl 调用

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

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "item": {
      "id": 1,
      "batchNo": "string",
      "batchAddTime": "string",
      "isbn": "string",
      "title": "string",
      "imageUrl": "string",
      "marketPrice": 0.0,
      "lastUpdateTime": "string",
      "quantity": 1,
      "verifiedQuantity": 1,
      "unitRecyclePrice": 0.0,
      "lineAmount": 0.0,
      "payableAmount": 0.0
    },
    "totalVerifiedQuantity": 1,
    "totalQuantity": 1,
    "totalPayableAmount": 0.0
  }
}

返回字段(data)

字段类型说明
item对象-
item.idLong-
item.batchNoString-
item.batchAddTimeLocalDateTime-
item.isbnString-
item.titleString-
item.imageUrlString-
item.marketPriceBigDecimal市场价(业务数据.avg_price)
item.lastUpdateTimeLocalDateTime-
item.quantityInteger-
item.verifiedQuantityInteger-
item.unitRecyclePriceBigDecimal-
item.lineAmountBigDecimal-
item.payableAmountBigDecimal应付:实收核验数量 × 单价(按行合计后聚合)
totalVerifiedQuantityInteger-
totalQuantityInteger-
totalPayableAmountBigDecimal-