/basicOpen/multiplatform/line/list{
"operation": {
"method": "POST",
"path": "/basicOpen/multiplatform/line/list"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/basicOpen/multiplatform/line/list?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"isParent\": 1,\n \"availableNumber\": \"50\",\n \"availableNumberCondition\": 1,\n \"brandIds\": [1001,1002],\n \"categoryIds\": [2001,2002],\n \"length\": 20,\n \"offset\": 0,\n \"pairingStatus\": 1,\n \"parentUniqueIds\": [3001,3002],\n \"price\": \"100.5\",\n \"priceCondition\": 1,\n \"principalUids\": [4001,4002],\n \"productUniqueId\": 9876543210123456,\n \"searchField\": \"1\",\n \"searchSingleValue\": \"测试商品\",\n \"searchValues\": [\"SKU001\",\"SKU002\"],\n \"sortField\": \"price\",\n \"sortType\": \"desc\",\n \"statusList\": [\"0\",\"1\"],\n \"storeIds\": [1234567890123456,1234567890123457]\n}'",
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "a0d54debf93140f3b58d1ed81e8e3583.178.17255922733991817",
"response_time": "2024-11-12 16:00:00",
"data": {
"list": [
{
"attributes": "颜色:红色;尺寸:L",
"availableNumber": 100,
"bid": 1234567890123456,
"bname": "Nike",
"category": "服装",
"children": [
{
"attributes": "颜色:蓝色;尺寸:M",
"availableNumber": 50,
"bid": 1234567890123456,
"category": "服装",
"cid": 1234567890123456,
"companyId": 1234567890123456,
"id": "1002",
"imgUrl": "https://example.com/image2.jpg",
"msku": "MY-SKU-002",
"mskuId": 1234567890123456,
"onHandNumber": 15,
"pid": 1234567890123456,
"platformCode": "LINE",
"pname": "测试品名-子体",
"price": "49.99",
"productId": 1234567890123456,
"productUniqueId": 9876543210123456,
"readyToShipNumber": 10,
"sku": "LINE-SKU-002",
"status": 0,
"storeId": 1234567890123456,
"storeName": "Line官方店铺",
"supplyPriceList": [],
"title": "Line测试商品-子体",
"wareHouseDataList": []
}
],
"cid": 1234567890123456,
"cname": "运动鞋",
"companyId": 1234567890123456,
"day30SaleCnt": 150,
"day7SaleCnt": 50,
"id": "1001",
"imgUrl": "https://example.com/image.jpg",
"msku": "MY-SKU-001",
"mskuId": 1234567890123456,
"notes": "热卖商品",
"onHandNumber": 30,
"pid": 1234567890123456,
"platformCode": "LINE",
"pname": "测试品名",
"price": "99.99",
"principalName": "张三",
"principalUids": [
4001,
4002
],
"productId": 1234567890123456,
"productUniqueId": 9876543210123456,
"quantitySyn": {
"after": "500",
"before": "450",
"quantitySynWareHouses": [],
"type": 1,
"uid": 9001,
"userName": "李四"
},
"readyToShipNumber": 20,
"sku": "LINE-SKU-001",
"status": 0,
"storeId": 1234567890123456,
"storeName": "Line官方店铺",
"supplyPriceList": [],
"title": "Line测试商品",
"wareHouseDataList": []
},
{
"attributes": "颜色:绿色;尺寸:XL",
"availableNumber": 75,
"bid": 9876543210987654,
"bname": "Adidas",
"category": "鞋类",
"children": [],
"cid": 9876543210987654,
"cname": "休闲鞋",
"companyId": 1234567890123456,
"day30SaleCnt": 80,
"day7SaleCnt": 20,
"id": "1003",
"imgUrl": "https://example.com/image3.jpg",
"msku": "MY-SKU-003",
"mskuId": 9876543210987654,
"notes": "新品上市",
"onHandNumber": 10,
"pid": 9876543210987654,
"platformCode": "AMAZON",
"pname": "休闲跑鞋",
"price": "79.99",
"principalName": "王五",
"principalUids": [
4003
],
"productId": 9876543210987654,
"productUniqueId": 1122334455667788,
"quantitySyn": {
"after": "100",
"before": "80",
"quantitySynWareHouses": [
{
"after": "50",
"before": "40",
"uid": 9002,
"userName": "王五",
"wareHouseName": "广州仓"
},
{
"after": "50",
"before": "40",
"uid": 9002,
"userName": "王五",
"wareHouseName": "上海仓"
}
],
"type": 2,
"uid": 9002,
"userName": "王五"
},
"readyToShipNumber": 5,
"sku": "AMAZON-SKU-003",
"status": 0,
"storeId": 1122334455667788,
"storeName": "Amazon官方店铺",
"supplyPriceList": [],
"title": "Adidas休闲跑鞋",
"wareHouseDataList": []
}
],
"count": 2
},
"total": 2
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | isParent | 是否父体 | integer | — | 可选 | 是否父体,枚举值:1-父体, 0-子体 |
| 2 | availableNumber | 可用库存数 | string | — | 可选 | 可用库存数,用于库存筛选 |
| 3 | availableNumberCondition | 库存筛选条件 | integer | — | 可选 | 库存筛选条件,枚举值:1-大于, 2-小于 |
| 4 | brandIds | 品牌ID列表 | array<any> | — | 可选 | 品牌ID列表 |
| 5 | categoryIds | 分类ID列表 | array<any> | — | 可选 | 分类ID列表,如果选了父分类,要把父分类以及其下所有子分类传进来 |
| 6 | length | 分页长度 | integer | — | 可选 | 分页长度,每页条数,最大200 |
| 7 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,从0开始 |
| 8 | pairingStatus | 配对状态 | integer | — | 可选 | 配对状态,枚举值:0-未配对, 1-配对, null-全部 |
| 9 | parentUniqueIds | 父体全局唯一ID列表 | array<any> | — | 可选 | 父体全局唯一ID列表 |
| 10 | price | 金额 | string | — | 可选 | 金额,用于价格筛选 |
| 11 | priceCondition | 金额筛选条件 | integer | — | 可选 | 金额筛选条件,枚举值:1-大于, 2-小于 |
| 12 | principalUids | 商品负责人UID列表 | array<any> | — | 可选 | 商品负责人UID列表 |
| 13 | productUniqueId | 商品全局唯一ID | integer | — | 可选 | 商品全局唯一ID |
| 14 | searchField | 搜索类型 | string | — | 可选 | 搜索类型,枚举值:1-msku, 2-msku ID, 3-SKU, 4-品名 |
| 15 | searchSingleValue | 搜索值 | string | — | 可选 | 搜索值,单个模糊搜索,字符串类型 |
| 16 | searchValues | 搜索值 | array<any> | — | 可选 | 搜索值,数组类型,多个精确搜索 |
| 17 | sortField | 排序字段 | string | — | 可选 | 排序字段,直接传返参的字段名 |
| 18 | sortType | 排序类型 | string | — | 可选 | 排序类型,枚举值:asc-升序, desc-降序 |
| 19 | statusList | 状态列表 | array<any> | — | 可选 | 状态列表,枚举值:0-正常, 1-已删除 |
| 20 | storeIds | 店铺ID列表 | array<any> | — | 可选 | 店铺ID列表 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 响应码 | integer | — | 必填 | 响应码 |
| 2 | data | 返回数据 | object | — | 必填 | 返回数据 |
| 2.1 | count | 总条数 | integer | 100 | 必填 | 总条数 |
| 2.2 | list | 商品详细信息列表 | array<object> | — | 必填 | 商品详细信息列表 |
| 2.2.1 | attributes | 变体属性 | string | 颜色:红色;尺寸:L | 必填 | 变体属性 |
| 2.2.2 | availableNumber | 可用库存数 | integer | 100 | 必填 | 可用库存数 |
| 2.2.3 | bid | 品牌ID | integer | 1234567890123456 | 必填 | 品牌ID |
| 2.2.4 | bname | 品牌名称 | string | Nike | 可选 | 品牌名称 |
| 2.2.5 | category | 分类名称 | string | 服装 | 必填 | 分类名称 |
| 2.2.6 | children | 子体商品列表 | array<object> | — | 必填 | 子体商品列表 |
| 2.2.6.1 | attributes | 变体属性 | string | 颜色:蓝色;尺寸:M | 必填 | 变体属性 |
| 2.2.6.2 | availableNumber | 可用库存数 | integer | 50 | 必填 | 可用库存数 |
| 2.2.6.3 | bid | 品牌ID | integer | 1234567890123456 | 必填 | 品牌ID |
| 2.2.6.4 | category | 分类名称 | string | 服装 | 必填 | 分类名称 |
| 2.2.6.5 | cid | 分类ID | integer | 1234567890123456 | 必填 | 分类ID,0代表没分类 |
| 2.2.6.6 | companyId | 企业ID | integer | 1234567890123456 | 必填 | 企业ID |
| 2.2.6.7 | id | 记录ID | string | 1002 | 必填 | 记录ID |
| 2.2.6.8 | imgUrl | 商品图片URL地址 | string | https://example.com/image2.jpg | 必填 | 商品图片URL地址 |
| 2.2.6.9 | msku | msku | string | MY-SKU-002 | 必填 | MSKU,卖家自己起名的SKU |
| 2.2.6.10 | mskuId | 平台商品ID | integer | 1234567890123456 | 必填 | 平台商品ID,商品唯一标识 |
| 2.2.6.11 | onHandNumber | 锁定库存数 | integer | 15 | 必填 | 锁定库存数 |
| 2.2.6.12 | pid | 本地产品ID | integer | 1234567890123456 | 必填 | 本地产品ID |
| 2.2.6.13 | platformCode | 平台编号 | string | LINE | 必填 | 平台编号 |
| 2.2.6.14 | pname | 品名 | string | 测试品名-子体 | 必填 | 品名 |
| 2.2.6.15 | price | 商品价格 | string | 49.99 | 必填 | 商品价格 |
| 2.2.6.16 | productId | 平台商品ID | integer | 1234567890123456 | 必填 | 平台商品ID |
| 2.2.6.17 | productUniqueId | 平台商品在listing的唯一ID | integer | 9876543210123456 | 必填 | 平台商品在listing的唯一ID |
| 2.2.6.18 | readyToShipNumber | 预锁库存数 | integer | 10 | 必填 | 预锁库存数 |
| 2.2.6.19 | sku | 平台SKU | string | LINE-SKU-002 | 必填 | 平台SKU |
| 2.2.6.20 | status | 状态 | integer | 0 | 必填 | 状态,枚举值:0-正常, 1-已删除 |
| 2.2.6.21 | storeId | 店铺ID | integer | 1234567890123456 | 必填 | 店铺ID |
| 2.2.6.22 | storeName | 店铺名称 | string | Line官方店铺 | 必填 | 店铺名称 |
| 2.2.6.23 | supplyPriceList | 供货价数据列表 | array<any> | — | 必填 | 供货价数据列表 |
| 2.2.6.24 | title | 商品标题 | string | Line测试商品-子体 | 必填 | 商品标题 |
| 2.2.6.25 | wareHouseDataList | 商品仓库详情列表 | array<any> | — | 必填 | 商品仓库详情列表 |
| 2.2.7 | cid | 分类ID | integer | 1234567890123456 | 必填 | 分类ID,0代表没分类 |
| 2.2.8 | cname | 分类名称 | string | 运动鞋 | 可选 | 分类名称 |
| 2.2.9 | companyId | 企业ID | integer | 1234567890123456 | 必填 | 企业ID |
| 2.2.10 | day30SaleCnt | 30天销量 | integer | 150 | 可选 | 30天销量 |
| 2.2.11 | day7SaleCnt | 7天销量 | integer | 50 | 可选 | 7天销量 |
| 2.2.12 | id | 记录ID | string | 1001 | 必填 | 记录ID |
| 2.2.13 | imgUrl | 商品图片URL地址 | string | https://example.com/image.jpg | 必填 | 商品图片URL地址 |
| 2.2.14 | msku | msku | string | MY-SKU-001 | 必填 | MSKU,卖家自己起名的SKU |
| 2.2.15 | mskuId | 平台商品ID | integer | 1234567890123456 | 必填 | 平台商品ID,商品唯一标识 |
| 2.2.16 | notes | 备注信息 | string | 热卖商品 | 可选 | 备注信息 |
| 2.2.17 | onHandNumber | 锁定库存数 | integer | 30 | 必填 | 锁定库存数 |
| 2.2.18 | pid | 本地产品ID | integer | 1234567890123456 | 必填 | 本地产品ID |
| 2.2.19 | platformCode | 平台编号 | string | LINE | 必填 | 平台编号 |
| 2.2.20 | pname | 品名 | string | 测试品名 | 必填 | 品名 |
| 2.2.21 | price | 商品价格 | string | 99.99 | 必填 | 商品价格 |
| 2.2.22 | principalName | 商品负责人名称 | string | 张三 | 可选 | 商品负责人名称 |
| 2.2.23 | principalUids | 商品负责人UID列表 | array<any> | [4001,4002] | 可选 | 商品负责人UID列表 |
| 2.2.24 | productId | 平台商品ID | integer | 1234567890123456 | 必填 | 平台商品ID |
| 2.2.25 | productUniqueId | 平台商品在listing的唯一ID | integer | 9876543210123456 | 必填 | 平台商品在listing的唯一ID |
| 2.2.26 | quantitySyn | 库存同步中信息 | object | — | 可选 | 库存同步中信息,null代表不在同步中 |
| 2.2.26.1 | after | 调整后的值 | string | 500 | 可选 | 调整后的值 |
| 2.2.26.2 | before | 调整前的值 | string | 450 | 可选 | 调整前的值 |
| 2.2.26.3 | quantitySynWareHouses | 仓库同步详情 | array<object> | — | 可选 | 仓库同步详情,当type=2时取该列表 |
| 2.2.26.3.1 | after | 调整后的值 | string | 200 | 可选 | 调整后的值 |
| 2.2.26.3.2 | before | 调整前的值 | string | 180 | 可选 | 调整前的值 |
| 2.2.26.3.3 | uid | 操作人ID | integer | 9002 | 可选 | 操作人ID |
| 2.2.26.3.4 | userName | 操作人名称 | string | 王五 | 可选 | 操作人名称 |
| 2.2.26.3.5 | wareHouseName | 仓库名称 | string | 广州仓 | 可选 | 仓库名称 |
| 2.2.26.4 | type | 库存队列类型 | integer | 1 | 可选 | 库存队列类型,枚举值:1-单条库存(取同级字段), 2-仓库列表(取quantitySynWareHouses) |
| 2.2.26.5 | uid | 操作人ID | integer | 9001 | 可选 | 操作人ID |
| 2.2.26.6 | userName | 操作人名称 | string | 李四 | 可选 | 操作人名称 |
| 2.2.27 | readyToShipNumber | 预锁库存数 | integer | 20 | 必填 | 预锁库存数 |
| 2.2.28 | sku | 平台SKU | string | LINE-SKU-001 | 必填 | 平台SKU |
| 2.2.29 | status | 状态 | integer | 0 | 必填 | 状态,枚举值:0-正常, 1-已删除 |
| 2.2.30 | storeId | 店铺ID | integer | 1234567890123456 | 必填 | 店铺ID |
| 2.2.31 | storeName | 店铺名称 | string | Line官方店铺 | 必填 | 店铺名称 |
| 2.2.32 | supplyPriceList | 供货价数据列表 | array<any> | — | 必填 | 供货价数据列表 |
| 2.2.33 | title | 商品标题 | string | Line测试商品 | 必填 | 商品标题 |
| 2.2.34 | wareHouseDataList | 商品仓库详情列表 | array<any> | — | 必填 | 商品仓库详情列表 |
| 3 | error_details | 错误详情 | array<any> | — | 必填 | 错误详情 |
| 4 | message | 提示信息 | string | — | 必填 | 提示信息 |
| 5 | request_id | 请求id | string | — | 必填 | 请求id |
| 6 | response_time | 响应时间 | string | — | 必填 | 响应时间 |
| 7 | total | 总记录数 | integer | — | 必填 | 总记录数 |
领星ERP的接口:多平台 - 查询Line在线商品(/basicOpen/multiplatform/line/list),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。