/basicOpen/multiplatform/full/stockSearch{
"operation": {
"method": "POST",
"path": "/basicOpen/multiplatform/full/stockSearch"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/basicOpen/multiplatform/full/stockSearch?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"length\": 20,\n \"offset\": 0,\n \"selectTypeEnum\": \"COUNT_TYPE\",\n \"custom\": \"value\",\n \"custom>>likeContent\": \"手机壳\",\n \"custom>>type\": 0,\n \"hideZeroStorage\": 0,\n \"storeIdList\": [123456,789012]\n}'",
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "a0d54debf93140f3b58d1ed81e8e3583.178.17255922733991817",
"response_time": "2024-11-12 16:00:00",
"data": {
"page": {
"records": [
{
"availableQuantity": "150",
"damaged": "3",
"deleteFlag": false,
"gmtCreate": 1702886098000,
"gmtModified": 1702886098000,
"id": "1001",
"internalProcess": "5",
"inventoryId": "ML-12345",
"itemId": "12345",
"lost": "1",
"noFiscalCoverage": "5",
"notSupported": "2",
"picUrl": "https://example.com/image.jpg",
"productName": "iPhone 15 Pro",
"purchasePrice": "199.99",
"quantity": "200",
"sku": "SKU-123456",
"storeId": 789012,
"transfer": "10",
"variationId": "67890",
"warehouseName": "深圳仓",
"withdrawal": "8"
},
{
"availableQuantity": "80",
"damaged": "0",
"deleteFlag": false,
"gmtCreate": 1702886100000,
"gmtModified": 1702886100000,
"id": "1002",
"internalProcess": "2",
"inventoryId": "ML-67890",
"itemId": "54321",
"lost": "0",
"noFiscalCoverage": "0",
"notSupported": "0",
"picUrl": "https://example.com/another-image.png",
"productName": "Samsung Galaxy S24",
"purchasePrice": "150.00",
"quantity": "90",
"sku": "SKU-987654",
"storeId": 789012,
"transfer": "5",
"variationId": "12345",
"warehouseName": "上海仓",
"withdrawal": "3"
}
],
"total": "100"
},
"syncTime": "2025-12-18 10:34:58"
},
"total": 1
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | length | 每页条数 | integer | — | 可选 | 每页条数,必填,最大200条 |
| 2 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,必填,从0开始 |
| 3 | selectTypeEnum | 数据维度 | string | — | 可选 | 数据维度,COUNT_TYPE-数量 PRICE_TYPE-成本(必填) |
| 4 | custom | 自定义搜索参数 | object | — | 可选 | 自定义搜索参数 |
| 4.1 | likeContent | 搜索内容 | string | — | 可选 | 搜索内容 |
| 4.2 | type | 搜索类型 | integer | — | 可选 | 搜索类型,枚举值:0-货品标题, 1-商品参考编码, 2-货品id |
| 5 | hideZeroStorage | 是否隐藏0库存 | integer | — | 可选 | 是否隐藏0库存,0不隐藏,1隐藏 |
| 6 | storeIdList | 店铺ID列表 | array<any> | — | 可选 | 店铺ID列表 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 响应码 | integer | — | 必填 | 响应码 |
| 2 | data | 返回数据 | object | — | 必填 | 返回数据 |
| 2.1 | page | 分页信息 | object | — | 可选 | 分页信息 |
| 2.1.1 | records | 库存记录列表 | array<object> | — | 可选 | 库存记录列表 |
| 2.1.1.1 | availableQuantity | FBM可售库存 | string | 150 | 可选 | FBM可售库存 |
| 2.1.1.2 | damaged | 损坏 | string | 3 | 可选 | 损坏 |
| 2.1.1.3 | deleteFlag | 是否删除 | boolean | — | 可选 | 是否删除,枚举值:false-否, true-是 |
| 2.1.1.4 | gmtCreate | 数据创建时间(时间戳) | integer | 1702886098000 | 可选 | 数据创建时间(时间戳) |
| 2.1.1.5 | gmtModified | 数据更新时间(时间戳) | integer | 1702886098000 | 可选 | 数据更新时间(时间戳) |
| 2.1.1.6 | id | id | string | 1001 | 可选 | ID |
| 2.1.1.7 | internalProcess | 入库质检 | string | 5 | 可选 | 入库质检 |
| 2.1.1.8 | inventoryId | ML code(库存编码) | string | ML-12345 | 可选 | ML code(库存编码) |
| 2.1.1.9 | itemId | 商品ID | string | 12345 | 可选 | 商品ID |
| 2.1.1.10 | lost | 丢失 | string | 1 | 可选 | 丢失 |
| 2.1.1.11 | noFiscalCoverage | 无税务信息 | string | 5 | 可选 | 无税务信息 |
| 2.1.1.12 | notSupported | 无法入库 | string | 2 | 可选 | 无法入库 |
| 2.1.1.13 | picUrl | 商品图片URL | string | https://example.com/image.jpg | 可选 | 商品图片URL |
| 2.1.1.14 | productName | 品名 | string | iPhone 15 Pro | 可选 | 品名 |
| 2.1.1.15 | purchasePrice | 采购成本 | string | 199.99 | 可选 | 采购成本 |
| 2.1.1.16 | quantity | 总库存 | string | 200 | 可选 | 总库存 |
| 2.1.1.17 | sku | sku | string | SKU-123456 | 可选 | SKU |
| 2.1.1.18 | storeId | 店铺ID | integer | 789012 | 可选 | 店铺ID |
| 2.1.1.19 | transfer | 调仓中 | string | 10 | 可选 | 调仓中 |
| 2.1.1.20 | variationId | 变体ID | string | 67890 | 可选 | 变体ID |
| 2.1.1.21 | warehouseName | 仓库名称 | string | 深圳仓 | 可选 | 仓库名称 |
| 2.1.1.22 | withdrawal | 移除中 | string | 8 | 可选 | 移除中 |
| 2.1.2 | total | 总数 | string | — | 可选 | 总数 |
| 2.2 | syncTime | 最新同步时间 | string | 2025-12-18 10:34:58 | 可选 | 最新同步时间 |
| 3 | error_details | 错误详情 | array<any> | — | 必填 | 错误详情 |
| 4 | message | 提示信息 | string | — | 必填 | 提示信息 |
| 5 | request_id | 请求id | string | — | 必填 | 请求id |
| 6 | response_time | 响应时间 | string | — | 必填 | 响应时间 |
| 7 | total | 总记录数 | integer | — | 必填 | 总记录数 |
领星ERP的接口:查询FULL库存(/basicOpen/multiplatform/full/stockSearch),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。