轻易云
注册体验

领星ERP批量查询本地产品详情接口

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

批量查询本地产品详情

POST/erp/sc/routing/data/local_inventory/batchGetProductInfo
加工厂
{
  "operation": {
    "method": "POST",
    "path": "/erp/sc/routing/data/local_inventory/batchGetProductInfo"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 1,
    "text": ""
  },
  "requestExample": {
    "productIds": [
      "10001",
      "10002"
    ],
    "skus": [
      "ceshi001",
      "测试002"
    ]
  },
  "responseExample": "{\n    \"code\": 0,\n    \"message\": \"success\",\n    \"error_details\": [],\n    \"request_id\": \"F4AC348D-5A4D-0F2B-833B-A02678969381\",\n    \"response_time\": \"2022-07-05 17:05:37\",\n    \"data\": [\n        {\n            \"id\": 17835,\n            \"product_name\": \"13131321655\",\n            \"sku\": \"654654654654\",\n            \"pic_url\": \"https://imaxxx/xx61fb94db6fa2f5.jpeg\",\n            \"model\": \"\",\n            \"unit\": \"\",\n            \"status\": 1,\n            \"cid\": 0,\n            \"bid\": 0,\n            \"product_developer\": \"\",\n            \"product_developer_uid\": 0,\n            \"description\": \"\",\n            \"is_combo\": 0,\n            \"currency\": \"USD\",\n            \"purchase_remark\": \"20\",\n            \"special_attr\": [\n                \"4\",\n                \"3\"\n            ],\n            \"attachment_id\": [\n                \"4132\"\n            ],\n            \"cg_opt_username\": \"xx\",\n            \"cg_delivery\": 555,\n            \"cg_price\": \"10.0000\",\n            \"cg_product_material\": \"\",\n            \"bg_customs_export_name\": \"10\",\n            \"bg_customs_import_name\": \"10\",\n            \"bg_customs_import_price\": \"10.000000\",\n            \"bg_export_hs_code\": \"10\",\n            \"bg_import_hs_code\": \"\",\n            \"bg_tax_rate\": \"0.0000\",\n            \"picture_list\": [\n                {\n                    \"pic_url\": \"https://imaxxx/xx61fb94db6fa2f5.jpeg\",\n                    \"is_primary\": 1\n                }\n            ],\n            \"permission_user_info\": [\n                {\n                    \"permission_uid\": 10317904,\n                    \"permission_user_name\": \"xx\"\n                }\n            ],\n            \"brand_name\": \"\",\n            \"category_name\": \"\",\n            \"supplier_quote\": [\n                {\n                    \"psq_id\": \"210331084332590081\",\n                    \"product_id\": \"17835\",\n                    \"supplier_id\": \"317\",\n                    \"is_primary\": 1,\n                    \"supplier_product_url\": [\n                        \"https://xxx/xxx\"\n                    ],\n                    \"quote_remark\": \"备注22222222\",\n                    \"cg_price\": \"10.0000\",\n                    \"cg_currency_icon\": \"¥\",\n                    \"supplier_name\": \"xxx\",\n                    \"supplier_code\": \"SU00306\",\n                    \"quotes\": [\n                        {\n                            \"currency\": \"CNY\",\n                            \"currency_icon\": \"¥\",\n                            \"is_tax\": 0,\n                            \"tax_rate\": \"0.00\",\n                            \"step_prices\": [\n                                {\n                                    \"moq\": 0,\n                                    \"price\": \"0.0000\",\n                                    \"price_with_tax\": \"0.0000\"\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ],\n            \"combo_product_list\": [],\n            \"declaration\": {\n\t            \"customs_declaration_first_unit\": \"个\",\n\t            \"customs_declaration_first_unit_rate\": 0.76,\n\t            \"customs_declaration_second_unit\": \"套\",\n\t            \"customs_declaration_second_unit_rate\": 0.69,\n\t            \"customs_declaration_extra_quarantine_code\": \"报关:法定第一单位\",\n\t            \"customs_declaration_unit\": \"\",\n\t            \"customs_declaration_spec\": \"\",\n\t            \"customs_declaration_origin_produce\": \"\",\n\t            \"customs_declaration_inlands_source\": \"\",\n\t            \"customs_declaration_exempt\": \"\",\n\t            \"other_declare_element\": \"\"\n\t        },\n\t        \"clearance\": {\n\t            \"customs_clearance_material\": \"\",\n\t            \"customs_clearance_en_material\": \"\",\n\t            \"customs_clearance_usage\": \"\",\n\t            \"customs_clearance_internal_code\": \"\",\n\t            \"customs_clearance_preferential\": 0,\n\t            \"customs_clearance_brand_type\": 0,\n\t            \"customs_clearance_product_pattern\": \"\",\n\t            \"customs_clearance_pic_url\": \"\",\n\t            \"allocation_remark\": \"\",\n\t            \"weaving_mode\": 0,\n\t            \"customs_clearance_price\": \"0.0000\",\n\t            \"customs_clearance_price_currency\": \"CNY\",\n\t            \"customs_clearance_hs_code\": \"\",\n\t            \"customs_clearance_tax_rate\": \"0.0000\",\n\t            \"customs_clearance_remark\": \"\"\n\t        },\n            \"qc_standard\": {\n                \"custom_qc_template\": {\n                    \"qc_image\": []\n                }\n            },\n            \"product_logistics_relation\": [\n                {\n                    \"US_cg_transport_costs\": \"0.0000\",\n                    \"US_currency\": \"CNY\",\n                    \"US_bg_import_hs_code\": \"\",\n                    \"US_clearance_price_currency\": \"CNY\",\n                    \"US_clearance_price\": \"0.00\",\n                    \"US_bg_tax_rate\": \"0.0000\"\n                }\n            ],\n            \"cg_product_length\": \"10.00\",\n            \"cg_product_width\": \"20.00\",\n            \"cg_product_height\": \"10.00\",\n            \"cg_product_net_weight\": \"0.00\",\n            \"cg_package_length\": \"50.00\",\n            \"cg_package_width\": \"60.00\",\n            \"cg_package_height\": \"70.00\",\n            \"cg_box_length\": \"20.00\",\n            \"cg_box_width\": \"30.00\",\n            \"cg_box_height\": \"40.00\",\n            \"cg_box_pcs\": 10,\n            \"cg_product_gross_weight\": \"90000.00\",\n            \"cg_box_weight\": \"80.00\",\n            \"custom_fields\": [\n                {\n                    \"id\": \"207257295331418115\",\n                    \"name\": \"文本\",\n                    \"val_text\": \"\"\n                }\n            ]  \n\t        \"global_tags\": []\n        }\n    ]\n    \"total\": 0\n}"
}

接口请求参数

序号字段名称类型默认值必填描述
1productIds产品idarray<any>—可选产品id,上限100个【产品id 、 产品sku 、SKU识别码 三选一必填】
2skus产品SKUarray<any>—可选产品SKU,上限100个【产品id 、 产品sku 、SKU识别码 三选一必填】
3sku_identifiersSKU识别码array<any>—可选SKU识别码,上限100个上限100个【产品id 、 产品sku 、SKU识别码 三选一必填】

接口响应参数

序号字段名称类型默认值必填描述
1code状态码integer0必填状态码,0成功
2message提示信息stringsuccess必填提示信息
3error_details错误提示array<any>—必填错误提示
4request_id请求链路idstringF44E6A41-5219-4FEF-DD46-5BCC4B8305E1必填请求链路id
5response_time响应时间string2021-03-1911:53:49必填响应时间
6data响应数据array<object>—必填响应数据
6.1id本地产品idinteger—必填本地产品id
6.2product_name产品名称string00.100必填产品名称
6.3sku产品skustring—必填产品sku
6.4pic_url上传的图片地址stringxxx/xxx/e8f15ed5eb.jpg必填上传的图片地址
6.5picture_list产品图片数组array<object>—必填产品图片数组
6.5.1pic_url图片链接string—必填图片链接
6.5.2is_primary是否产品主图integer—必填是否产品主图:0 否,1 是
6.6model产品型号string—必填产品型号
6.7unit商品单位string—必填商品单位:套、个、台
6.8status状态integer—必填状态:0 停售,1 在售,2 开发中,3 清仓
6.9cid分类idinteger—必填分类id
6.10bid品牌idinteger—必填品牌id
6.11product_developer开发者string—必填开发者
6.12product_developer_uid开发人integer—必填开发人
6.13permission_user_info负责人信息array<object>—必填负责人信息
6.13.1permission_uid负责人idinteger—必填负责人id
6.13.2permission_user_name负责人名称string—必填负责人名称
6.14global_tags产品标签信息array<object>—必填产品标签信息
6.14.1global_tag_id标签idstring—必填标签id
6.14.2tag_name标签名称string—必填标签名称
6.14.3color标签颜色string—必填标签颜色
6.15description产品描述string—必填产品描述
6.16is_combo是否组合产品integer—必填是否组合产品:0否,1是
6.17brand_name品牌名称string—必填品牌名称
6.18category_name分类名称string—必填分类名称
6.19attachment_id附件idarray<any>[123]必填附件id
6.20special_attr产品特殊属性array<any>[1,2,3]必填产品特殊属性: 1 含电 2 纯电 3 液体 4 粉末 5 膏体 6 带磁
6.21currency中国官方汇率codestring—必填中国官方汇率code
6.22cg_opt_username采购string—必填采购:采购员
6.23cg_delivery采购integer—必填采购:交期
6.24cg_price采购number—必填采购:采购成本(人民币)
6.25purchase_remark采购备注string—必填采购备注
6.26cg_product_material采购string—必填采购:材质
6.27cg_product_length采购number—必填采购:产品规格(CM)
6.28cg_product_width采购number—必填采购:产品规格(CM)
6.29cg_product_height采购number—必填采购:产品规格(CM)
6.30cg_package_length采购number—必填采购:包装规格(CM)
6.31cg_package_width采购number—必填采购:包装规格(CM)
6.32cg_package_height采购number—必填采购:包装规格(CM)
6.33cg_box_length采购number—必填采购:外箱规格(CM)
6.34cg_box_width采购number—必填采购:外箱规格(CM)
6.35cg_box_height采购number—必填采购:外箱规格(CM)
6.36cg_product_net_weight采购number—必填采购:产品净重(G)
6.37cg_product_gross_weight采购number—必填采购:产品毛重(G)
6.38cg_box_weight采购number23必填采购:外箱实重(KG)
6.39custom_fields自定义字段array<object>—必填自定义字段
6.39.1id字段IDstring—必填字段ID
6.39.2name字段名string—必填字段名
6.39.3val_text字段值string—必填字段值
6.40cg_box_pcs采购integer25必填采购:单箱数量(包装数量)
6.41bg_customs_export_name报关string—必填报关:申报品名(中文)【中文报关名】
6.42bg_customs_import_name报关string—必填报关:申报品名(英文)【英文报关名】
6.43bg_customs_import_price报关number—必填报关:申报金额(进口国)【申报单价】
6.44bg_export_hs_code报关string—必填报关:HSCode(出口国)【中国HSCode】
6.45bg_import_hs_code报关string—必填报关:HSCode(进口国)【美国HSCode】
6.46bg_tax_rate【已废弃字段】报关number28必填【已废弃字段】报关:税率【美国税率】
6.47qc_standard质检标准object—必填质检标准
6.47.1custom_qc_template自定义质检标准object—必填自定义质检标准
6.47.1.1qc_image质检图片object—必填质检图片
6.47.1.1.1file_id领星文件idinteger—必填领星文件id
6.47.1.1.2customer_url客户的图片URLstring—必填客户的图片URL
6.48new_qc_standard新质检标准object—必填新质检标准
6.48.1qc_method质检方式integer1必填质检方式:1抽检,2全检,3免检
6.48.2qc_method_text质检方式string抽检必填质检方式
6.48.3pqt_id系统质检模板IDstring210742283790577664必填系统质检模板ID
6.48.4system_qc_template系统质检模板标准object—必填系统质检模板标准
6.48.4.1pqt_id系统质检模板IDstring210742283790577664必填系统质检模板ID
6.48.4.2name系统质检名称stringopenapi必填系统质检名称
6.48.4.3qc_image系统质检图片列表array<object>—必填系统质检图片列表
6.48.4.3.1file_id图片IDstring10064必填图片ID
6.48.4.3.2file_name图片名称string质检图片.jpg必填图片名称
6.48.4.3.3file_url图片URLstring/api/file/previewimg/id/10064/type/0.html必填图片URL
6.48.4.4qc_attachment系统质检附件array<object>—必填系统质检附件
6.48.4.4.1file_id附件IDstring10065必填附件ID
6.48.4.4.2file_name附件名称string质检附件.png必填附件名称
6.48.4.4.3file_url附件URLstring/api/file/previewimg/id/10065/type/0.html必填附件URL
6.48.4.5template_item系统质检项完整列表array<object>—必填系统质检项完整列表
6.48.4.5.1pqti_id质检项IDstring210742283790577665必填质检项ID
6.48.4.5.2qc_item质检项名称string外观必填质检项名称
6.48.4.5.3sort排序integer0必填排序
6.48.4.5.4qc_content质检内容object["<p>无破损</p>"]必填质检内容
6.48.4.5.5create_time创建时间string2026-09-09 11:20必填创建时间
6.48.5custom_qc_template自定义质检标准object—必填自定义质检标准
6.48.5.1pqt_id质检项IDstring210742282204688387必填质检项ID
6.48.5.2name质检项名称string10552173必填质检项名称
6.48.5.3qc_image自定义质检图片列表array<object>—必填自定义质检图片列表
6.48.5.3.1file_id图片IDstring—必填图片ID
6.48.5.3.2file_name图片名称string—必填图片名称
6.48.5.3.3file_url图片URLstring—必填图片URL
6.48.5.4template_item自定义质检项完整列表array<object>—必填自定义质检项完整列表
6.48.5.4.1pqti_id自定义质检项IDstring210742282204688388必填自定义质检项ID
6.48.5.4.2qc_item质检项名称string自定义必填质检项名称
6.48.5.4.3sort排序integer0必填排序
6.48.5.4.4qc_content质检内容object["<p>自定义质检内容</p>"]必填质检内容
6.48.5.4.5create_time创建时间string2026-09-09 11:20必填创建时间
6.49supplier_quote供应商报价数据array<object>—必填供应商报价数据
6.49.1psq_id供应商报价idstring—必填供应商报价id
6.49.2product_id产品idinteger—必填产品id
6.49.3supplier_id供应商idinteger—必填供应商id
6.49.4supplier_name供应商名称string—必填供应商名称
6.49.5is_primary是否为首选供应商integer—必填是否为首选供应商:0否,1是
6.49.6quote_remark报价备注string—必填报价备注
6.49.7supplier_product_url采购链接array<any>—必填采购链接
6.49.8quotes报价数据array<object>—必填报价数据
6.49.8.1currency报价币种string—必填报价币种
6.49.8.2currency_icon报价币种符号string—必填报价币种符号
6.49.8.3is_tax是否含税integer—必填是否含税:0否,1是
6.49.8.4tax_rate税率(百分比)number—必填税率(百分比)
6.49.8.5step_prices阶梯报价array<object>—必填阶梯报价
6.49.8.5.1moq最小采购量integer—必填最小采购量
6.49.8.5.2price不含税单价number—必填不含税单价
6.49.8.5.3price_with_tax含税单价number—必填含税单价
6.50combo_product_list组合商品包含单品信息array<object>—必填组合商品包含单品信息
6.50.1product_id本地产品idinteger—必填本地产品id
6.50.2quantity数量integer—必填数量
6.50.3skuskustring—必填SKU
6.51product_logistics_relation物料关联【XX为国家简码array<object>—必填物料关联【XX为国家简码,比如美国 US】
6.51.1XX_cg_transport_costs默认头程成本(含税)number—必填默认头程成本(含税)
6.51.2XX_currency官方汇率codestring—必填官方汇率code
6.51.3XX_clearance_price清关价格number—必填清关价格
6.51.4XX_clearance_price_currency清关价格币种string—必填清关价格币种
6.51.5XX_bg_import_hs_code报关string—必填报关:HSCode(进口国)
6.51.6XX_bg_tax_rate报关number&nbsp;必填报关:税率
6.52declaration报关数据object—必填报关数据
6.52.1customs_declaration_unit报关单位string—必填报关单位
6.52.2customs_declaration_spec规格型号string—必填规格型号
6.52.3customs_declaration_origin_produce报关string—必填报关:原厂国(地区)
6.52.4customs_declaration_inlands_source报关string—必填报关:境内货源地
6.52.5other_declare_element报关string—必填报关:其他申报要素
6.52.6customs_declaration_exempt报关string—必填报关:征免
6.52.7production_and_sales_enterprise_name报关string—必填报关:生产销售企业名称
6.52.8production_and_sales_enterprise_code报关string—必填报关:生产销售企业代码
6.52.9customs_declaration_first_unit报关string个必填报关:法定第一单位
6.52.10customs_declaration_first_unit_rate报关number0.76必填报关:法定第一单位转换率
6.52.11customs_declaration_second_unit报关string套必填报关:法定第二单位
6.52.12customs_declaration_second_unit_rate报关number0.69必填报关:法定第二单位转换率
6.52.13customs_declaration_extra_quarantine_code附加检疫码string报关:法定第一单位必填附加检疫码
6.53clearance清关数据object—必填清关数据
6.53.1customs_clearance_material清关string—必填清关:材质
6.53.2customs_clearance_en_material清关string—可选清关:英文材质
6.53.3customs_clearance_usage清关string—必填清关:用途
6.53.4customs_clearance_internal_code清关string—必填清关:内部编码
6.53.5customs_clearance_preferential清关integer—必填清关:出口享惠情况: 1 不享惠 2 享惠 3 不确定享惠情况
6.53.6customs_clearance_brand_type清关integer—必填清关:品牌类型: 1 无品牌 2 境内自主品牌 3 境内收购品牌 4 境外品牌(贴牌生产) 5 境外品牌(其他)
6.53.7customs_clearance_product_pattern清关string—必填清关:产品型号
6.53.8customs_clearance_pic_url清关string—必填清关:清关图片
6.53.9allocation_remark清关string—必填清关:配货备注
6.53.10weaving_mode织造方式integer—必填织造方式:1 针织,2 梭织
6.53.11customs_clearance_price默认清关单价number—必填默认清关单价
6.53.12customs_clearance_price_currency默认清关单价币种string—必填默认清关单价币种
6.53.13customs_clearance_hs_code默认清关HSCODEstring—必填默认清关HSCODE
6.53.14customs_clearance_tax_rate默认清关税率string—必填默认清关税率
6.53.15customs_clearance_remark默认清关备注string&nbsp;必填默认清关备注
7aux_relation_list辅料列表array<object>—必填辅料列表
7.1aux_sku辅料skustring—必填辅料sku
7.2sku_qty辅料比例(主料)string—必填辅料比例(主料)
7.3aux_qty辅料比例(辅料)string—必填辅料比例(辅料)

领星ERP的接口:批量查询本地产品详情(/erp/sc/routing/data/local_inventory/batchGetProductInfo),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。

需要对接这个接口?

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