/basicOpen/multiplatform/wfs/cost/valuation/detail{
"operation": {
"method": "POST",
"path": "/basicOpen/multiplatform/wfs/cost/valuation/detail"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/basicOpen/multiplatform/wfs/cost/valuation/detail?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"startDate\": \"2026-09-01\",\n \"endDate\": \"2026-09-30\",\n \"dateType\": 0,\n \"sidList\": [123456789012345678],\n \"businessType\": [600, 20, 30, 40, 610, 400],\n \"costSource\": [\"1\"],\n \"costZeroType\": 0,\n \"searchField\": \"gtin\",\n \"searchValue\": \"12345678901234\",\n \"length\": 20,\n \"offset\": 0,\n \"sortType\": \"desc\"\n}'",
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "a0d54debf93140f3b58d1ed81e8e3583",
"response_time": "2026-09-08 14:00:00",
"data": {
"detail": {
"calculationStartTime": "2026-09-01 00:00:00",
"calculationEndTime": "2026-09-30 23:59:59"
},
"page": {
"records": [
{
"dateLocal": "2026-09-01",
"imageUrl": "https://example.com/image.jpg",
"gtin": "12345678901234",
"msku": "WFS-001",
"title": "商品标题",
"localName": "商品品名",
"localSku": "SKU-001",
"sellerName": "My Store",
"businessType": "NEGATIVE_INVENTORY",
"businessName": "出库",
"businessDesc": "订单发货",
"quantity": 1,
"businessNumber": "FBA178L8PJ75",
"costSource": "业务单据",
"orderBasePurchaseAmount": 99.99,
"purchaseTotalAmount": 99.99,
"orderBaseLogisticsAmount": 20,
"logisticsTotalAmount": 20,
"orderBaseOtherAmount": 0,
"otherTotalAmount": 0,
"orderNumber": "200012345678901",
"date1": "2026-09-01",
"serialNumber": "2025090060002W"
}
],
"total": 25,
"size": 20,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 2
}
},
"total": 25
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | startDate | 开始日期 | string | — | Required | 开始日期,格式 yyyy-MM-dd |
| 2 | endDate | 结束日期 | string | — | Required | 结束日期,格式 yyyy-MM-dd |
| 3 | dateType | 日期类型 | integer | — | Optional | 日期类型,默认 0: 0 - 出入库日期 1 - 结算日期 |
| 4 | sidList | 店铺 ID 列表 | array<any> | — | Optional | 店铺 ID 列表;不传则查询全部店铺 |
| 5 | businessType | 出入库类型编码列表 | array<any> | — | Optional | 出入库类型编码列表,支持多选: 600 - Ship订单发货-SIP出库 20 - Receipt货件补货-SLO入库 30 - Receipt其他入库-SLO入库 40 - Adjustment库存调整-CCA入库 610 - Adjustment库存调整-CCA入库 400 - 负库存数量调整入库 |
| 6 | costSource | 成本取值来源列表 | array<any> | — | Optional | 成本取值来源列表,支持多选: 10 - 空 1 - 发货单 2 - 无源单配置-固定值 3 - 无源单配置-最近签收成本 |
| 7 | costZeroType | 成本缺失项 | integer | — | Optional | 成本缺失项,默认 0: 0 - 不筛选 1 - 仅成本缺失项 |
| 8 | searchField | 商品搜索字段 | string | — | Optional | 商品搜索字段: gtin - GTIN msku - MSKU title - 标题 localName - 品名 localSku - SKU |
| 9 | searchValue | 商品单个搜索值 | string | — | Optional | 商品单个搜索值 |
| 10 | searchValueList | 商品批量搜索值列表 | array<any> | — | Optional | 商品批量搜索值列表 |
| 11 | businessNumber | 货件号单个搜索值 | string | — | Optional | 货件号单个搜索值 |
| 12 | businessNumberList | 货件号批量搜索值列表 | array<any> | — | Optional | 货件号批量搜索值列表 |
| 13 | orderNumber | 订单号单个搜索值 | string | — | Optional | 订单号单个搜索值 |
| 14 | orderNumberList | 订单号批量搜索值列表 | array<any> | — | Optional | 订单号批量搜索值列表 |
| 15 | length | 分页大小 | integer | — | Optional | 分页大小,默认 20,最大 200 |
| 16 | offset | 分页偏移量 | integer | — | Optional | 分页偏移量,默认 0 |
| 17 | sortField | 排序字段 | string | — | Optional | 排序字段: dateLocal - 出入库日期 quantity - 数量 purchaseTotalAmount - 采购成本 logisticsTotalAmount - 头程成本 otherTotalAmount - 其他成本 date1 - 结算日期 |
| 18 | sortType | 排序方向 | string | — | Optional | 排序方向: asc - 升序 desc - 降序 |
| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | Required | 状态码,0:成功 |
| 2 | message | 消息提示 | string | success | Required | 消息提示 |
| 3 | error_details | 数据校验失败时的错误详情 | array<any> | — | Required | 数据校验失败时的错误详情 |
| 4 | request_id | 请求链路 ID | string | a0d54debf93140f3b58d1ed81e8e3583 | Required | 请求链路 ID |
| 5 | response_time | 响应时间 | string | 2026-09-08 14:00:00 | Required | 响应时间 |
| 6 | data | 响应数据 | object | — | Required | 响应数据 |
| 6.1 | detail | 重算时间 | object | — | Required | 重算时间 |
| 6.1.1 | calculationStartTime | 开始重算时间 | string | 2026-09-01 00:00:00 | Required | 开始重算时间 |
| 6.1.2 | calculationEndTime | 结束重算时间 | string | 2026-09-30 23:59:59 | Required | 结束重算时间 |
| 6.2 | page | 分页数据 | object | — | Required | 分页数据 |
| 6.2.1 | records | 成本计价明细列表 | array<object> | — | Required | 成本计价明细列表 |
| 6.2.1.1 | dateLocal | 出入库日期 | string | 2026-09-01 | Required | 出入库日期 |
| 6.2.1.2 | imageUrl | 图片 | string | https://example.com/image.jpg | Required | 图片 |
| 6.2.1.3 | gtin | gtin | string | 12345678901234 | Required | GTIN |
| 6.2.1.4 | msku | msku | string | WFS-001 | Required | MSKU |
| 6.2.1.5 | title | 标题 | string | 商品标题 | Required | 标题 |
| 6.2.1.6 | localName | 品名 | string | 商品品名 | Required | 品名 |
| 6.2.1.7 | localSku | localSku | string | SKU-001 | Required | SKU |
| 6.2.1.8 | sellerName | 店铺名 | string | My Store | Required | 店铺名 |
| 6.2.1.9 | businessType | 出入库类型 | string | NEGATIVE_INVENTORY | Required | 出入库类型 |
| 6.2.1.10 | businessName | 出入库名称 | string | 出库 | Required | 出入库名称 |
| 6.2.1.11 | businessDesc | 出入库描述 | string | 订单发货 | Required | 出入库描述 |
| 6.2.1.12 | quantity | 数量 | integer | 1 | Required | 数量 |
| 6.2.1.13 | businessNumber | 货件号 | string | FBA178L8PJ75 | Required | 货件号 |
| 6.2.1.14 | costSource | 成本来源 | string | 业务单据 | Required | 成本来源 |
| 6.2.1.15 | orderBasePurchaseAmount | 采购单价 | number | 99.99 | Required | 采购单价 |
| 6.2.1.16 | purchaseTotalAmount | 采购成本 | number | 99.99 | Required | 采购成本 |
| 6.2.1.17 | orderBaseLogisticsAmount | 头程单价 | number | 20 | Required | 头程单价 |
| 6.2.1.18 | logisticsTotalAmount | 头程总价 | number | 20 | Required | 头程总价 |
| 6.2.1.19 | orderBaseOtherAmount | 其他单价 | number | 0 | Required | 其他单价 |
| 6.2.1.20 | otherTotalAmount | 其他总价 | number | 0 | Required | 其他总价 |
| 6.2.1.21 | orderNumber | 订单号 | string | 200012345678901 | Required | 订单号 |
| 6.2.1.22 | date1 | 结算日期 | string | 2026-09-01 | Required | 结算日期 |
| 6.2.1.23 | serialNumber | 流水编号 | string | 2025090060002W | Required | 流水编号 |
| 6.2.2 | total | 总记录数 | integer | 25 | Required | 总记录数 |
| 6.2.3 | size | 每页条数 | integer | 20 | Required | 每页条数 |
| 6.2.4 | current | 当前页码 | integer | 1 | Required | 当前页码 |
| 6.2.5 | orders | 排序规则 | array<any> | [] | Required | 排序规则 |
| 6.2.6 | optimizeCountSql | 是否优化总数查询 | boolean | true | Required | 是否优化总数查询 |
| 6.2.7 | hitCount | 是否命中总数 | boolean | false | Required | 是否命中总数 |
| 6.2.8 | countId | 总数查询标识 | string | — | Required | 总数查询标识 |
| 6.2.9 | maxLimit | 最大限制 | string | — | Required | 最大限制 |
| 6.2.10 | searchCount | 是否查询总数 | boolean | true | Required | 是否查询总数 |
| 6.2.11 | pages | 总页数 | integer | 2 | Required | 总页数 |
| 7 | total | 总数 | integer | 25 | Required | 总数 |
The 查询WFS成本计价明细 API (/basicOpen/multiplatform/wfs/cost/valuation/detail) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.