4001.通过配件号(品牌件号/oe号)获取配件基础信息
简要描述:- 根据配件号(品牌件号/oe号)搜索出对应的配件基础信息,如果是oe件号,则可能返回epc信息,如果品牌件号则不返回epc信息
http://api.17vin.com:8080/?action=search_epc&query_part_number={query_part_number}&query_match_type={query_match_type}&user={username}&token={token}
- 智慧搜索(不加query_match_type参数或加参数query_match_type=smart)
- 精准搜索(加参数query_match_type=exact)
- 模糊搜索(加参数query_match_type=inexact)
- GET或POST
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| action | 是 | string | 动作命令,search_epc搜索epc列表 |
| query_part_number | 是 | string | 动作命令,搜索的oe号;如果模糊搜索,搜索字符长度建议5位及以上;小于5位的号码会强行切换为精准搜索 |
| query_match_type | 否 | string | 搜索类型,exact为精准搜索,inexact为模糊搜索(匹配部分),smart为智慧搜索(如果精确搜索有结果,采用精确的结果,否则调用模糊搜索的结果) |
| user | 是 | string | 用户名 |
| token | 是 | string | 密钥,算法如下: MD5(concat(MD5('myusername'),MD5('mypassword'),'/?action=search_epc&query_part_number=041110Q021')) |
{
"code":1,
"msg":"success",
"data":[
{
"Partnumber":"041110Q021",
"Epc_en":"TOYOTA,LEXUS,SCION",
"Epc_zh":"丰田,雷克萨斯,塞恩",
"Brand_name_en":"TOYOTA,LEXUS,SCION",
"Brand_name_zh":"丰田,雷克萨斯,塞恩",
"Urlmake":"toyota",
"Epc":"toyota",
"Group_id":"40",
"Epc_id":"59",
"Part_name_en":"",
"Part_name_zh":"",
"Part_img":"partimg2/18q1/172/1729400.jpg"
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| Partnumber | string | 用户名 |
| Epc_en | string | epc英文名称(废弃,由Brand_name_en替代) |
| Epc_zh | string | epc中文名称(废弃,由Brand_name_zh替代) |
| Brand_name_en | string | 品牌英文名称 |
| Brand_name_zh | string | 品牌中文名称 |
| Urlmake | string | 品牌标识 |
| Epc | string | epc标识(如果品牌件号则不返回epc信息) |
| Group_id | string | 品牌分组id |
| Epc_id | string | epc标识id(如果品牌件号则不返回epc_id) |
| Part_name_en | string | 配件英文名称 |
| Part_name_zh | string | 配件中文名称 |
| Part_img | string | 配件图片路径,请求案例:http://resource.17vin.com/img/partimg2/18q1/172/1729400.jpg |