开放平台

扒书 ERP Open API

子账号某天明细

查看某个子账号某一天收了哪些书、多少钱,弹窗展示用。

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

请求参数

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

curl 调用

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

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "batchDate": "string",
    "subUserId": 1,
    "subUserName": "string",
    "batchCount": 1,
    "totalQuantity": 1,
    "totalVerifiedQuantity": 1,
    "totalAmount": 0.0,
    "totalPayableAmount": 0.0,
    "batches": [
      {
        "subUserName": "...",
        "payableAmount": "..."
      }
    ],
    "items": [
      {
        "id": "...",
        "batchNo": "...",
        "batchAddTime": "...",
        "isbn": "...",
        "title": "...",
        "imageUrl": "...",
        "marketPrice": "...",
        "lastUpdateTime": "...",
        "quantity": "...",
        "verifiedQuantity": "...",
        "unitRecyclePrice": "...",
        "lineAmount": "...",
        "payableAmount": "..."
      }
    ]
  }
}

返回字段(data)

字段类型说明
batchDateLocalDate-
subUserIdLong-
subUserNameString-
batchCountInteger-
totalQuantityInteger-
totalVerifiedQuantityInteger-
totalAmountBigDecimal-
totalPayableAmountBigDecimal应付:按实收核验数量 × 单价合计
batches对象数组-
batches[].subUserNameString-
batches[].payableAmount对象应付:该批次实收核验 × 单价合计
items对象数组-
items[].idLong-
items[].batchNoString-
items[].batchAddTimeLocalDateTime-
items[].isbnString-
items[].titleString-
items[].imageUrlString-
items[].marketPriceBigDecimal市场价(业务数据.avg_price)
items[].lastUpdateTimeLocalDateTime-
items[].quantityInteger-
items[].verifiedQuantityInteger-
items[].unitRecyclePriceBigDecimal-
items[].lineAmountBigDecimal-
items[].payableAmountBigDecimal应付:实收核验数量 × 单价(按行合计后聚合)