/erp/sc/routing/data/local_inventory/productAuxList{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/data/local_inventory/productAuxList"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"offset": 0,
"length": 20
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "80E9323C-CF3A-7A1F-B9A1-D4A988635AC8",
"response_time": "2023-03-09 15:58:12",
"data": [
{
"aux_relation_product": [
{
"pid": 2125093,
"product_name": "AUX11111",
"sku": "AUX11111",
"quantity": 2
},
{
"pid": 2125091,
"product_name": "钢化玻璃膜2",
"sku": "SKU2986DFA",
"quantity": 2
}
],
"purchase_supplier_quote": {
"product_id": 2125093,
"cg_price": "0.0000",
"has_cg_permission": 1,
"suppliers": {
"1": {
"supplier_id": 1,
"is_primary": 1,
"supplier_name": "供应商1",
"contact_person": "",
"contact_number": "",
"province": "",
"city": "",
"address": "",
"supplier_product_url": [
"https://detail.1688.com/offer/669376802464.html?spm=a260j.12536015.jr601u7p.1.29d4700ecBBrdJ",
"https://detail.1688.com/offer/669376802464.html?spm=a260j.12536015.jr601u7p.1.29d4700ecBBrdJ"
],
"quotes": {
"CNY": {
"currency": "CNY",
"currency_icon": "¥",
"is_tax": 0,
"tax_rate": 0,
"step_prices": [
{
"price_with_tax": "0.0000",
"price": "0.0000",
"moq": 0
}
]
}
}
},
"245": {
"supplier_id": 245,
"is_primary": 0,
"supplier_name": "新增供应商NXthJByPZt",
"contact_person": "",
"contact_number": "",
"province": "",
"city": "",
"address": "",
"supplier_product_url": [],
"quotes": {
"CNY": {
"currency": "CNY",
"currency_icon": "¥",
"is_tax": 0,
"tax_rate": 0,
"step_prices": [
{
"price_with_tax": "0.0000",
"price": "0.0000",
"moq": 0
}
]
}
}
}
}
},
"id": 4532,
"sku": "asdfasd",
"product_name": "chaolia",
"cid": 0,
"cg_price": "0.0000",
"cg_product_length": "0.00",
"cg_product_width": "0.00",
"cg_product_height": "0.00",
"cg_product_net_weight": "0.00",
"remark": "",
"is_aux": 1
}
],
"total": 42
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,默认0 |
| 2 | length | 分页长度 | integer | — | 可选 | 分页长度,默认1000,上限1000 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | 6D1422D5-B767-675D-42F6-F604319C2333 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2023-03-09 14:45:40 | 必填 | 响应时间 |
| 6 | data | 响应数据 | array<object> | — | 必填 | 响应数据 |
| 6.1 | id | 辅料id | integer | 1 | 必填 | 辅料id |
| 6.2 | sku | sku | string | 视觉111 | 必填 | SKU |
| 6.3 | product_name | 品名 | string | 经济 | 必填 | 品名 |
| 6.4 | product_creator_realname | 辅料创建人姓名 | string | — | 必填 | 辅料创建人姓名 |
| 6.5 | permission_user_info | 辅料负责人姓名列表 | array<string> | — | 必填 | 辅料负责人姓名列表 |
| 6.6 | cg_price | 采购成本(人民币) | number | 1 | 必填 | 采购成本(人民币) |
| 6.7 | cg_product_length | 单品规格长(CM) | number | 测试账号2 | 必填 | 单品规格长(CM) |
| 6.8 | cg_product_width | 单品规格宽(CM) | number | — | 必填 | 单品规格宽(CM) |
| 6.9 | cg_product_height | 单品规格高(CM) | number | — | 必填 | 单品规格高(CM) |
| 6.10 | cg_product_net_weight | 单品净重(G) | number | — | 必填 | 单品净重(G) |
| 6.11 | remark | 备注 | string | — | 必填 | 备注 |
| 6.12 | purchase_supplier_quote | 供应商报价信息 | object | — | 必填 | 供应商报价信息 |
| 6.12.1 | product_id | 产品ID | integer | 2 | 必填 | 产品ID |
| 6.12.2 | cg_price | 采购 | number | 33 | 必填 | 采购:采购成本(人民币) |
| 6.12.3 | has_cg_permission | 是否有采购成本权限 | integer | 1 | 必填 | 是否有采购成本权限:0-无,1-有 |
| 6.12.4 | suppliers | suppliers | object | — | 必填 | |
| 6.12.4.1 | supplier_id | 供应商ID | integer | 12 | 必填 | 供应商ID |
| 6.12.4.2 | is_primary | 是否首选供应商 | integer | 1 | 必填 | 是否首选供应商:0-否,1-是 |
| 6.12.4.3 | supplier_name | 供应商名称 | string | 供应商1 | 必填 | 供应商名称 |
| 6.12.4.4 | contact_person | 供应商联系人 | string | XXX | 必填 | 供应商联系人 |
| 6.12.4.5 | contact_number | 供应商联系电话 | string | 18000000 | 必填 | 供应商联系电话 |
| 6.12.4.6 | province | 供应商地址 | string | 广东省 | 必填 | 供应商地址:省 |
| 6.12.4.7 | city | 供应商地址 | string | 深圳市 | 必填 | 供应商地址:城市 |
| 6.12.4.8 | address | 供应商地址 | string | 西丽街道 | 必填 | 供应商地址:详细地址 |
| 6.12.4.9 | supplier_product_url | 供应商链接 | array<any> | — | 必填 | 供应商链接 |
| 6.12.4.10 | quotes | 供应商报价 | array<object> | — | 必填 | 供应商报价 |
| 6.12.4.10.1 | currency | 报价币种 | string | — | 必填 | 报价币种 |
| 6.12.4.10.2 | currency_icon | 报价币种符号 | string | — | 必填 | 报价币种符号 |
| 6.12.4.10.3 | is_tax | 是否含税 | integer | — | 必填 | 是否含税:0-否,1-是 |
| 6.12.4.10.4 | tax_rate | 税率(百分比) | number | — | 必填 | 税率(百分比) |
| 6.12.4.10.5 | step_prices | 报价梯度 | array<object> | — | 必填 | 报价梯度 |
| 6.12.4.10.5.1 | price_with_tax | 含税单价 | number | 9.9 | 必填 | 含税单价 |
| 6.12.4.10.5.2 | price | 不含税单价 | number | — | 必填 | 不含税单价 |
| 6.12.4.10.5.3 | moq | 最小起购量 | integer | 10 | 必填 | 最小起购量 |
| 6.13 | aux_relation_product | 关联产品 | array<object> | — | 必填 | 关联产品 |
| 6.13.1 | pid | 产品id | integer | — | 必填 | 产品id |
| 6.13.2 | product_name | 产品名称 | string | — | 必填 | 产品名称 |
| 6.13.3 | sku | sku | string | — | 必填 | sku |
| 6.13.4 | quantity | 关联辅料的数量 | integer | | 必填 | 关联辅料的数量 |
领星ERP的接口:查询产品辅料列表(/erp/sc/routing/data/local_inventory/productAuxList),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。