/cost/center/ods/detail/query{
"operation": {
"method": "POST",
"path": "/cost/center/ods/detail/query"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 10,
"text": ""
},
"requestExample": {
"sellerIds": [
"AN05PRUL7R796"
],
"startDate": "2024-03-02",
"endDate": "2024-06-1",
"fnskus": [
"B085M7NH7S"
],
"asins": [
"B097MP26YP"
],
"mskus": [
"DA19037B1"
],
"eventTypes": [
"01",
"02"
],
"disposition": "01",
"location": "GB",
"offset": 0,
"length": 20
},
"responseExample": "{\n \"code\": 1,\n \"msg\": \"操作成功\",\n \"data\": {\n \"records\": [\n {\n \"sellerId\": \"xxxxxxxxxxxxxxxx\",\n \"date\": \"2022-04-01\",\n \"fnsku\": \"X0010DNT2F\",\n \"asin\": \"B07Q3PV8SR\",\n \"msku\": \"1300U1207\",\n \"title\": \"HEETA Scalp Massager [Soft& Convenient] Shampoo Brush with Silicone Bristles for Wet and Dry Hair\",\n \"eventType\": \"01\",\n \"eventTypeDesc\": \"Shipments\",\n \"referenceId\": \"41247588491302\",\n \"quantity\": -1,\n \"fulfillmentCenter\": \"EUK5\",\n \"disposition\": \"01\",\n \"dispositionDesc\": \"SELLABLE\",\n \"reason\": \"\",\n \"location\": \"GB\",\n \"uniqueMd5Idx\": \"bc4f83291d4fda71272fc586b81c3240\",\n \"uniqueMd5\": \"0\",\n }\n ],\n \"total\": 12673,\n \"size\": 20,\n \"current\": 1,\n \"orders\": [],\n \"optimizeCountSql\": true,\n \"hitCount\": false,\n \"countId\": null,\n \"maxLimit\": null,\n \"searchCount\": true,\n \"pages\": 634\n },\n \"traceId\": \"b2532fc7-9c1b-4b08-8d30-301b31b70562.1663226369188\",\n \"success\": true\n}"
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | sellerIds | 亚马逊店铺id | array<any> | — | 必填 | 亚马逊店铺id |
| 2 | startDate | 统计起始日期 Y-m-d 闭区间 | string | — | 必填 | 统计起始日期 Y-m-d 闭区间 |
| 3 | endDate | 统计结束日期 Y-m-d 闭区间 | string | — | 必填 | 统计结束日期 Y-m-d 闭区间 |
| 4 | fnskus | fnsku列表 | array<any> | — | 可选 | fnsku列表 |
| 5 | asins | asin列表 | array<any> | — | 可选 | asin列表 |
| 6 | mskus | msku列表 | array<any> | — | 可选 | msku列表 |
| 7 | eventTypes | 事件类型 | array<any> | — | 可选 | 事件类型,支持传多值: 01 Shipments 02 CustomerReturns 03 WhseTransfers 04 Receipts 05 VendorReturns 06 Adjustments |
| 8 | referenceId | 引用id | string | — | 可选 | 引用id,支持模糊搜索 |
| 9 | disposition | 库存类型 | string | — | 可选 | 库存类型: 01 SELLABLE 02 UNSELLABLE 03 ALL |
| 10 | locations | 国家编码列表 | array<any> | — | 可选 | 国家编码列表 |
| 11 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,默认0 |
| 12 | length | 分页长度 | integer | — | 可选 | 分页长度,默认20,上限1000 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 1 | 必填 | 状态码,1 成功 |
| 2 | msg | 响应信息 | string | — | 必填 | 响应信息 |
| 3 | success | 操作是否成功 | boolean | — | 必填 | 操作是否成功 |
| 4 | traceId | 请求链路id | string | — | 必填 | 请求链路id |
| 5 | data | 明细数据 | object | — | 必填 | 明细数据 |
| 5.1 | total | 总记录条数 | number | — | 必填 | 总记录条数 |
| 5.2 | size | 每个数据页大小 | number | — | 必填 | 每个数据页大小 |
| 5.3 | current | 当前所在数据页 | number | — | 必填 | 当前所在数据页 |
| 5.4 | records | 明细数据列表 | array<object> | — | 必填 | 明细数据列表 |
| 5.4.1 | sellerId | 亚马逊店铺id | string | — | 必填 | 亚马逊店铺id |
| 5.4.2 | date | 数据日期 | string | 2022-04-01 | 必填 | 数据日期 |
| 5.4.3 | fnsku | fnsku | string | — | 必填 | fnsku |
| 5.4.4 | asin | asin | string | — | 必填 | asin |
| 5.4.5 | msku | msku | string | — | 必填 | msku |
| 5.4.6 | title | 标题 | string | — | 可选 | 标题 |
| 5.4.7 | eventType | 事件类型 | string | 01 | 必填 | 事件类型 |
| 5.4.8 | eventTypeDesc | 事件类型描述 | string | Shipments | 必填 | 事件类型描述 |
| 5.4.9 | referenceId | 货物id | string | — | 可选 | 货物id |
| 5.4.10 | quantity | 数量 | number | — | 必填 | 数量 |
| 5.4.11 | fulfillmentCenter | 储存库存的履行中心 | string | — | 必填 | 储存库存的履行中心 |
| 5.4.12 | disposition | 库存属性 | string | 01 | 必填 | 库存属性 |
| 5.4.13 | dispositionDesc | 库存属性描述 | string | SELLABLE | 必填 | 库存属性描述 |
| 5.4.14 | reason | 原因 | string | — | 可选 | 原因 |
| 5.4.15 | location | 国家 | string | GB | 必填 | 国家 |
| 5.4.16 | uniqueMd5Idx | 和uniqueMd5联合作为唯一键 | string | bc4f83291d4fda71272fc586b81c3240 | 必填 | 和uniqueMd5联合作为唯一键,uniqueMd5Idx是标识uniqueMd5的index |
| 5.4.17 | uniqueMd5 | 和uniqueMd5Idx联合作为唯一键 | string | 0 | 必填 | 和uniqueMd5Idx联合作为唯一键 |
领星ERP的接口:查询库存分类账detail数据(/cost/center/ods/detail/query),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。