轻易云
注册体验

领星ERP查询FBA成本计价流水接口

所属平台
领星ERP
类型
WebAPI
作用
QUERY
接口版本
1.0
适配器
\Adapter\LingXing\LXQueryAdapter
授权方式
OTHER
描述
财务 · POST · 请求参数 13 个(必填 4) · 响应参数 40 个 · 限流令牌桶容量 10
更新日期
2026-11-21

查询FBA成本计价流水

POST/cost/center/api/cost/stream
加工厂
{
  "operation": {
    "method": "POST",
    "path": "/cost/center/api/cost/stream"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 10,
    "text": ""
  },
  "requestExample": {
    "wh_names": [
      "8P-US-2024美国仓"
    ],
    "shop_names": [
      "8P-US-2024"
    ],
    "skus": [
      "LX-0035",
      "00000000001",
      "SKU9988"
    ],
    "mskus": [
      "HOLDER001",
      "Pink_Head_Rope_1"
    ],
    "disposition_types": [
      1,
      2,
      3
    ],
    "business_types": [
      1
    ],
    "query_type": "01",
    "start_date": "2023-06-01",
    "end_date": "2023-06-30",
    "business_numbers": [
      "FBA176M2LL9C",
      "FCInboundRoutingService-FTW1-GYR1-81d2e262-7a9b-459b-8878-2708f6f3e789"
    ],
    "origin_accounts": [
      "SP230413004(无源单取最近签收成本),业务编号:FBA16V31K78D,流水编号:20220903J0001X"
    ],
    "offset": 0,
    "length": 200
  },
  "responseExample": {
    "code": 0,
    "data": {
      "current": 0,
      "records": [
        {
          "balance_logistics_amount": "1.11",
          "balance_logistics_unit_price": "40.2469",
          "balance_other_amount": "1.11",
          "balance_other_unit_price": "40.2469",
          "balance_purchase_amount": "1.11",
          "balance_purchase_unit_price": "40.2469",
          "balance_quantity": 297,
          "business_number": "pock-Executor-BHX1-LCY2-1647210652366-627a54b1-37a9-4fbd-9e46-ffb58a3be20c",
          "business_type": "1",
          "business_type_desc": "期初库存-FBA上月结存",
          "change_logistics_amount": "1.11",
          "change_logistics_unit_price": "40.2469",
          "change_other_amount": "1.11",
          "change_other_unit_price": "40.2469",
          "change_purchase_amount": "1.11",
          "change_purchase_unit_price": "40.2469",
          "change_quantity": 297,
          "cost_source": "上月结存",
          "data_version": "1672053502119",
          "disposition_type": "可用",
          "msku": "1160U1152-A",
          "origin_account": "FBA15FN6XK4L",
          "reason": "原因",
          "sales_platform": "销售平台A",
          "settlement_date": "结算日期",
          "shop_name": "JHL Official-02",
          "sku": "sku003",
          "source_data_time": "2022-12-26 19:19:28",
          "streamDate": "2022-06-01",
          "unique_key": "null",
          "wh_name": "JHL Official-02"
        }
      ],
      "size": 5,
      "total": 1
    },
    "msg": "操作成功",
    "success": true,
    "traceId": "320aba4f-6af1-4cac-aa0c-6b27bc77bae1.1673003238583"
  }
}

接口请求参数

序号字段名称类型默认值必填描述
1wh_names仓库名array<any>—可选仓库名
2shop_names店铺名array<any>—可选店铺名
3skusskusarray<any>—可选sku
4mskusmskusarray<any>—可选msku
5disposition_types库存属性array<any>—可选库存属性: 1 可用在途 2 可用 3 次品
6business_types出入库类型array<any>—必填出入库类型: 1 期初库存-FBA上月结存 10 调拨入库-FBA补货入库 11 调拨入库-FBA途损补回 12 调拨入库-FBA超签入库 13 调拨入库-FBA超签入库(close后) 14 调拨入库-FBA补货入库(无发货单) 20 调拨入库-FBA调仓入库 35 调拨入库-FBA发货在途入库 25 盘点入库-FBA盘点入库 30 FBA退货-FBA无源单销售退货 31 FBA退货-FBA有源单销售退货 200 销售出库-FBA补发货销售 201 销售出库-FBA多渠道销售订单 202 销售出库-FBA亚马逊销售订单 205 其他出库-FBA补货出库 220 盘点出库-FBA盘点出库 15 调拨出库-FBA调仓出库 215 调拨出库-FBA移除 225 调拨出库-FBA发货在途出库 226 调拨出库-FBA发货途损 227 调拨出库-后补发货单在途出库 5 调整单- FBA对账差异入库调整 210 调整单-FBA对账差异出库调整 400 调整单-尾差调整 420 调整单-负库存数量调整 405 调整单-期初成本录入
7query_type日期查询类型string—必填日期查询类型: 01 库存动作日期【对应成本计价详情页面单据日期,即在FBA仓库内发生各项库存动作的日期】 02 结算日期【仅销售、退货场景会存在结算日期,其他库存动作结算日期为空】
8start_date起始日期string—必填起始日期,Y-m-d,不允许跨月
9end_date结束日期string—必填结束日期,Y-m-d,不允许跨月
10business_numbers业务编号array<any>—可选业务编号
11origin_accounts源头单据号array<any>—可选源头单据号
12offset分页偏移量integer—可选分页偏移量,默认0
13length分页长度integer—可选分页长度,默认200条

接口响应参数

序号字段名称类型默认值必填描述
1code状态码integer—必填状态码,0 成功
2msg响应信息string—必填响应信息
3success操作是否成功boolean—必填操作是否成功
4traceId请求链路Idstring—必填请求链路Id
5data汇总数据object—必填汇总数据
5.1total总记录条数number—必填总记录条数
5.2size每个数据页大小number—必填每个数据页大小
5.3current当前所在数据页number—必填当前所在数据页
5.4records分页数据列表array<object>—必填分页数据列表
5.4.1stream_date库存动作日期string2022-12-01必填库存动作日期
5.4.2settlement_date结算日期string2022-12-01可选结算日期
5.4.3source_data_time数据源更新时间string2022-12-28 00:13:21可选数据源更新时间
5.4.4unique_key主键string主键可选主键
5.4.5data_version计算版本号string1672156800661必填计算版本号
5.4.6business_number业务编号stringFBA15F9VZ512可选业务编号
5.4.7origin_account源头单据号stringSP220210001可选源头单据号
5.4.8skuskustring测试sku001必填sku
5.4.9mskumskustring1160U1713必填msku
5.4.10wh_name仓库名称stringxxxxxxx必填仓库名称
5.4.11shop_name店铺名称stringxxxxxxx可选店铺名称
5.4.12disposition_type库存属性string可用在途必填库存属性
5.4.13business_type出入库类型编码string1必填出入库类型编码
5.4.14business_type_desc出入库类型名称string期初库存-FBA上月结存必填出入库类型名称
5.4.15cost_source成本取值来源string上月结存必填成本取值来源
5.4.16change_quantity变动数量number0必填变动数量
5.4.17change_purchase_unit_price变动采购单价string0必填变动采购单价
5.4.18change_purchase_amount变动采购成本string0必填变动采购成本
5.4.19change_logistics_unit_price变动头程单价string0必填变动头程单价
5.4.20change_logistics_amount变动头程成本string0必填变动头程成本
5.4.21change_other_unit_price变动其他单价string0必填变动其他单价
5.4.22change_other_amount变动其他成本string0必填变动其他成本
5.4.23balance_quantity结存数量number70必填结存数量
5.4.24balance_purchase_unit_price结存采购成本单价string5.5815必填结存采购成本单价
5.4.25balance_purchase_amount结存采购成本string390.71必填结存采购成本
5.4.26balance_logistics_unit_price结存头程成本单价string20.0000必填结存头程成本单价
5.4.27balance_logistics_amount结存头程成本string1400.00必填结存头程成本
5.4.28balance_other_unit_price结存其他成本单价string2.4712必填结存其他成本单价
5.4.29balance_other_amount结存其他成本string172.98必填结存其他成本
5.4.30sales_platform销售平台string—可选销售平台
5.4.31reason盘点原因string&nbsp;可选盘点原因

领星ERP的接口:查询FBA成本计价流水(/cost/center/api/cost/stream),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。

需要对接这个接口?

轻易云已预置该接口的适配能力,联系我们即可开始配置数据集成。