Lingxing
切换旧版

查询本地产品列表

POST/erp/sc/routing/data/local_inventory/productList

支持查询产品列表,对应系统【产品】>【产品管理】数据

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/data/local_inventory/productListHTTPSPOST1

请求参数

offsetinteger
分页偏移量,默认0
lengthinteger
分页长度,默认1000,上限1000
update_time_startinteger
更新时间-开始时间【时间戳,单位:秒,左闭右开】
update_time_endinteger
更新时间-结束时间【时间戳,单位:秒,左闭右开】
create_time_startinteger
创建时间-开始时间【时间戳,单位:秒,左闭右开】
create_time_endinteger
创建时间-结束时间【时间戳,单位:秒,左闭右开】
sku_listarray<any>
本地产品sku
sku_identifier_listarray<any>
sku识别码列表

请求示例

{
    "offset": 0,
    "length": 1000,
    "update_time_start": "1719799582",
    "update_time_end": "1721873182",
    "create_time_start": "1606790813",
    "create_time_end": "1609343999",
    "sku_list": ["ceshi001","lingcui001","01"]
}

返回结果

Json Object

参数名说明必填类型示例
code状态码,0 成功是[int]0
message消息提示是[string]success
error_details错误信息是[array]
request_id请求链路id是[string]A2272BA2-88BC-2908-39AC-680EBE954AD8
response_time响应时间是[string]2020-05-18 11:23:47
total总数是[int]1
data响应数据是[array]
data>>id本地产品id是[int]1
data>>cid类别id是[int]2
data>>category_name类别是[string]香薰机12
data>>bid品牌id是[int]1
data>>brand_name品牌是[string]手机电子
data>>sku本地产品SKU是[string]视觉111
data>>open_status产品开启状态: 0-停用 ,1-启用否[int]1
data>>sku_identifierSKU识别码是[string]视觉111
data>>product_name品名是[string]经济
data>>pic_url图片链接是[string]https://xxx/abe7be9439b8bb1865d6723f0a2.jpg
data>>ps_idSPU唯一id是[int]1
data>>spuSPU是[string]SPUAAA
data>>cg_delivery采购:交期是[int]13
data>>cg_transport_costs采购:运输成本是[number]25.00
data>>purchase_remark采购备注是[string]
data>>cg_price采购:采购成本(人民币)是[number]1.00
data>>open_status产品是否启用:0 停用,1 启用是[int]1
data>>status状态:0 停售,1 在售,2 开发中,3 清仓是[int]1
data>>status_text状态文本是[string]在售
data>>is_combo是否为组合产品:0 否,1 是是[int]0
data>>create_time创建时间是[int]1541575627
data>>update_time更新时间是[int]1688531598
data>>global_tags产品标签信息是[array]
data>>global_tags>>global_tag_id标签id是[string]
data>>global_tags>>tag_name标签名称是[string]
data>>global_tags>>color标签颜色是[string]
data>>product_developer_uid开发人员id是[string]2
data>>product_developer开发人员名称是[string]测试账号2
data>>cg_opt_uid采购:采购员id是[string]
data>>cg_opt_username采购:采购员名称是[string]
data>>supplier_quote供应商报价信息是[array]
data>>supplier_quote>>psq_id供应商报价id是[string]
data>>supplier_quote>>product_id产品id是[int]
data>>supplier_quote>>supplier_id供应商id是[int]
data>>supplier_quote>>is_primary是否为首选供应商:0 否,1 是是[int]
data>>supplier_quote>>supplier_product_url采购链接是[array]
data>>supplier_quote>>quote_remark供应商报价备注是[string]
data>>supplier_quote>>cg_price采购成本是[string]
data>>supplier_quote>>cg_currency_icon采购成本币种符号是[string]
data>>supplier_quote>>supplier_code供应商代码是[string]
data>>supplier_quote>>level_text级别是[string]
data>>supplier_quote>>employees_text规模是[string]
data>>supplier_quote>>remark供应商备注是[string]
data>>supplier_quote>>supplier_name供应商名称是[string]
data>>supplier_quote>>quotes报价数据是[array]
data>>supplier_quote>>quotes>>currency报价币种是[string]
data>>supplier_quote>>quotes>>currency_icon报价币种符号是[string]
data>>supplier_quote>>quotes>>is_tax是否含税:0 否 1 是是[int]
data>>supplier_quote>>quotes>>tax_rate税率(百分比)是[number]
data>>supplier_quote>>quotes>>step_prices报价梯度是[array]
data>>supplier_quote>>quotes>>step_prices>>moq最小采购量是[int]
data>>supplier_quote>>quotes>>step_prices>>price不含税单价是[number]
data>>supplier_quote>>quotes>>step_prices>>price_with_tax含税单价是[number]
data>>custom_fields自定义字段是[array]
data>>custom_fields>>id字段ID是[string]
data>>custom_fields>>name字段名是[string]
data>>custom_fields>>val_text字段值是[string]
data>>attribute产品属性是[array]
data>>attribute>>attr_id属性ID是[string]
data>>attribute>>attr_name属性名称是[string]
data>>attribute>>attr_value属性值是[string]&nbsp;
data>>new_qc_standard新质检标准是[object]
data>>new_qc_standard>>qc_method质检方式:1抽检,2全检,3免检是[int]1
data>>new_qc_standard>>qc_method_text质检方式是[string]抽检
data>>new_qc_standard>>pqt_id系统质检模板ID是[string]210742283790577664
data>>new_qc_standard>>system_qc_template系统质检模板标准是[object]
data>>new_qc_standard>>system_qc_template>>pqt_id系统质检模板ID是[string]210742283790577664
data>>new_qc_standard>>system_qc_template>>name系统质检名称是[string]openapi
data>>new_qc_standard>>system_qc_template>>qc_image系统质检图片列表是[array]
data>>new_qc_standard>>system_qc_template>>qc_image>>file_id图片ID是[string]10064
data>>new_qc_standard>>system_qc_template>>qc_image>>file_name图片名称是[string]质检图片.jpg
data>>new_qc_standard>>system_qc_template>>qc_image>>file_url图片URL是[string]/api/file/previewimg/id/10064/type/0.html
data>>new_qc_standard>>system_qc_template>>qc_attachment系统质检附件是[array]
data>>new_qc_standard>>system_qc_template>>qc_attachment>>file_id附件ID是[string]10065
data>>new_qc_standard>>system_qc_template>>qc_attachment>>file_name附件名称是[string]质检附件.png
data>>new_qc_standard>>system_qc_template>>qc_attachment>>file_url附件URL是[string]/api/file/previewimg/id/10065/type/0.html
data>>new_qc_standard>>system_qc_template>>template_item系统质检项完整列表是[array]
data>>new_qc_standard>>system_qc_template>>template_item>>pqti_id质检项ID是[string]210742283790577665
data>>new_qc_standard>>system_qc_template>>template_item>>qc_item质检项名称是[string]外观
data>>new_qc_standard>>system_qc_template>>template_item>>sort排序是[int]0
data>>new_qc_standard>>system_qc_template>>template_item>>qc_content质检内容是[object]["

无破损

"]
data>>new_qc_standard>>system_qc_template>>template_item>>create_time创建时间是[string]2026-09-09 11:20
data>>new_qc_standard>>custom_qc_template自定义质检标准是[object]
data>>new_qc_standard>>custom_qc_template>>pqt_id质检项ID是[string]210742282204688387
data>>new_qc_standard>>custom_qc_template>>name质检项名称是[string]10552173
data>>new_qc_standard>>custom_qc_template>>qc_image自定义质检图片列表是[array]
data>>new_qc_standard>>custom_qc_template>>qc_image>>file_id图片ID是[string]
data>>new_qc_standard>>custom_qc_template>>qc_image>>file_name图片名称是[string]
data>>new_qc_standard>>custom_qc_template>>qc_image>>file_url图片URL是[string]
data>>new_qc_standard>>custom_qc_template>>template_item自定义质检项完整列表是[array]
data>>new_qc_standard>>custom_qc_template>>template_item>>pqti_id自定义质检项ID是[string]210742282204688388
data>>new_qc_standard>>custom_qc_template>>template_item>>qc_item质检项名称是[string]自定义
data>>new_qc_standard>>custom_qc_template>>template_item>>sort排序是[int]0
data>>new_qc_standard>>custom_qc_template>>template_item>>qc_content质检内容是[object]["

自定义质检内容

"]
data>>new_qc_standard>>custom_qc_template>>template_item>>create_time创建时间是[string]2026-09-09 11:20

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "A2272BA2-88BC-2908-39AC-680EBE954AD8",
    "response_time": "2021-11-12 16:05:47",
    "data": [
        {
            "id": 17835,
            "cid": 0,
            "bid": 0,
            "sku": "654654654654",
            "sku_identifier": "654654654654",
            "product_name": "13131321655",
            "pic_url": "https://xxx/xxx.jpeg",
            "ps_id": 12,
            "spu": "spu-123",
            "cg_delivery": 555,
            "cg_transport_costs": "0.00",
            "purchase_remark": "20",
            "cg_price": "10.0000",
            "open_status": 1,
            "status": 1,
            "status_text": "在售",
            "is_combo": 0,
            "create_time": 1675945140,
            "update_time": 1675945635,
            "product_developer_uid": 0,
            "product_developer": "",
            "cg_opt_uid": 10317904,
            "cg_opt_username": "xx",
            "brand_name": "",
            "category_name": "",
            "global_tags":[],
            "supplier_quote": [
                {
                    "psq_id": 210279523458442241,
                    "product_id": 17835,
                    "supplier_id": 317,
                    "is_primary": 1,
                    "supplier_product_url": [
                        "https://axxx/xxx"
                    ],
                    "quote_remark": "备注22222222",
                    "cg_price": "10.0000",
                    "cg_currency_icon": "¥",
                    "supplier_name": "橡胶制品",
                    "supplier_code": "SU00306",
                    "level_text": "★★★★★",
                    "employees_text": "1000人以上",
                    "remark": "备注1",
                    "quotes": [
                        {
                            "currency": "CNY",
                            "currency_icon": "¥",
                            "is_tax": 0,
                            "tax_rate": 0,
                            "step_prices": [
                                {
                                    "moq": 0,
                                    "price": "0.0000",
                                    "price_with_tax": "0.0000"
                                }
                            ]
                        }
                    ]
                }
            ],
            "custom_fields": [
                {
                    "id": "207257295331418113",
                    "name": "自定义",
                    "val_text": ""
                }
            ]
        }
    ],
    "total": 1
}

返回失败示例

{
    "code": 500,
    "message": "内部错误",
    "error_details": "offset 必须是非负数 [请求码:C365FF]",
    "request_id": "0A754F01-588E-C019-2693-5B72CF31D914",
    "response_time": "2021-11-11 18:26:35",
    "data": [],
    "total": 0
}