聚美智数


车辆估值

<p>[TOC]</p> <h3>1 接口调用说明</h3> <ul> <li>查询品牌,然后根据品牌id查询车型,然后根据车型id查询型号。</li> <li>查询省份,然后根据省份id查询城市。</li> <li>查询颜色。</li> <li>估值,根据型号id、城市、颜色等参数查询车辆估值接口。</li> </ul> <h4>1.1 请求方式</h4> <p>如接口没有单独说明,所有接口均为:<strong>POST</strong></p> <h4>1.2 请求格式</h4> <p>如接口没有单独说明,所有接口均为:<strong>application/x-www-form-urlencoded</strong></p> <h4>1.3 请求参数</h4> <p>请求参数包括公共参数和业务参数(业务参数见具体接口说明) 调用接口时,需要把<strong>公共参数</strong>和<strong>业务参数</strong>一并放在<strong>请求参数</strong>中提交</p> <h5>1.3.1 公共请求参数</h5> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>appId</td> <td>String</td> <td>是</td> <td>服务商分配的唯一标识</td> </tr> <tr> <td>timestamp</td> <td>Long</td> <td>是</td> <td>当前时间戳(毫秒)</td> </tr> <tr> <td>sign</td> <td>String</td> <td>是</td> <td>签名,详见&lt;a href=&quot;#签名算法&quot;&gt;签名算法说明&lt;/a&gt;</td> </tr> </tbody> </table> <p>&lt;a name=&quot;签名算法&quot;&gt;&lt;/a&gt;</p> <h5>1.3.2 签名算法说明</h5> <pre><code>sign = sha256(appId + appSecret + timestamp)</code></pre> <p>用服务商分配的 <strong>appId</strong>、服务商分配的 <strong>appSecret</strong>,当前时间戳(毫秒) <strong>timestamp</strong>,按上述顺序拼接成字符串,再进行 <strong>sha256</strong> 哈希得到。如下:</p> <pre><code class="language-java">String appId = &amp;quot;xyzxy2121zxyz&amp;quot;; String timestamp = &amp;quot;1555378976238&amp;quot;; String appSecret = &amp;quot;efcefcef1121cefcefc1212121&amp;quot;; String str = appId + appSecret + timestamp; String sign = sha256(str);</code></pre> <h4>1.4 返回说明</h4> <h5>1.4.1 公共返回字段说明</h5> <p>所有接口均返回以下公共字段:</p> <table> <thead> <tr> <th>字段名</th> <th>&lt;div style=&quot;width:420px&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>返回码,详见:code返回码说明</td> </tr> <tr> <td>msg</td> <td>code对应的描述</td> </tr> <tr> <td>charge</td> <td>计费标志 true为计费,false为不计费</td> </tr> <tr> <td>taskNo</td> <td>本次请求号</td> </tr> <tr> <td>data</td> <td>返回具体结果,object类型,详见data返回字段描述</td> </tr> </tbody> </table> <p>&lt;a name=&quot;公共code返回码说明&quot;&gt;&lt;/a&gt;</p> <h5>1.4.2 公共code返回码说明</h5> <p>所有接口公共返回码如下:</p> <table> <thead> <tr> <th>code</th> <th>&lt;div style=&quot;width:420px;&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>200</td> <td>成功</td> </tr> <tr> <td>400</td> <td>参数错误</td> </tr> <tr> <td>404</td> <td>接口地址不正确</td> </tr> <tr> <td>500</td> <td>系统维护,请稍候再试</td> </tr> <tr> <td>601</td> <td>接口未开通</td> </tr> <tr> <td>602</td> <td>账号停用</td> </tr> <tr> <td>604</td> <td>接口停用</td> </tr> <tr> <td>606</td> <td>调用超限,请稍候再试</td> </tr> <tr> <td>607</td> <td>ip不在白名单</td> </tr> <tr> <td>609</td> <td>请求过于频繁,请稍候再试</td> </tr> <tr> <td>610</td> <td>请求超时</td> </tr> <tr> <td>999</td> <td>其他,以实际返回为准</td> </tr> </tbody> </table> <h3>2 车辆估值</h3> <h4>2.1 接口描述</h4> <ul> <li>查询车辆估值信息。</li> </ul> <h4>2.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/valuate</code></p> <h4>2.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:400px&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>cityId</td> <td>String</td> <td>是</td> <td>城市id</td> </tr> <tr> <td>mileage</td> <td>String</td> <td>是</td> <td>里程(以万为单位,不能超过50)</td> </tr> <tr> <td>regTime</td> <td>String</td> <td>是</td> <td>上牌时间,格式yyyyMMdd</td> </tr> <tr> <td>trimId</td> <td>String</td> <td>是</td> <td>型号id</td> </tr> <tr> <td>colorId</td> <td>String</td> <td>否</td> <td>车身颜色id,黑色:Col09,白色:Col08,银灰色:Col11,红色:Col01,深灰色:Col12,香槟色:Col13,蓝色:Col05,褐色:Col07,黄色:Col03,绿色:Col04,紫色:Col06,橙色:Col02,粉红色:Col14,多彩色:Col90,其他颜色:Col98,不确定:Col99</td> </tr> <tr> <td>is4SMaint</td> <td>Boolean</td> <td>否</td> <td>是否4S店保养</td> </tr> </tbody> </table> <h4>2.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;, &amp;quot;code&amp;quot;: 200, &amp;quot;taskNo&amp;quot;: &amp;quot;580310061173075104584928&amp;quot;, &amp;quot;charge&amp;quot;: true, &amp;quot;data&amp;quot;: { &amp;quot;msrp&amp;quot;: 1090000,//新车价格 &amp;quot;sellValuates&amp;quot;: [//卖车价 { &amp;quot;values&amp;quot;: [//估值 625400 ], &amp;quot;valuePcts&amp;quot;: [//保值率 0.57 ], &amp;quot;condGrade&amp;quot;: &amp;quot;A&amp;quot; // 优秀车况 }, { &amp;quot;values&amp;quot;: [//估值 581600 ], &amp;quot;valuePcts&amp;quot;: [//保值率 0.53 ], &amp;quot;condGrade&amp;quot;: &amp;quot;B&amp;quot; //良好车况 }, { &amp;quot;values&amp;quot;: [//估值 540900 ], &amp;quot;valuePcts&amp;quot;: [//保值率 0.5 ], &amp;quot;condGrade&amp;quot;: &amp;quot;C&amp;quot; //一般车况 } ], &amp;quot;buyValuates&amp;quot;: [//收车价 { &amp;quot;values&amp;quot;: [//估值 570600 ], &amp;quot;valuePcts&amp;quot;: [//保值率 0.52 ], &amp;quot;condGrade&amp;quot;: &amp;quot;A&amp;quot; //优秀车况 }, { &amp;quot;values&amp;quot;: [//估值 530700 ], &amp;quot;valuePcts&amp;quot;: [//保值率 0.49 ], &amp;quot;condGrade&amp;quot;: &amp;quot;B&amp;quot; //良好车况 }, { &amp;quot;values&amp;quot;: [//估值 493500 ], &amp;quot;valuePcts&amp;quot;: [//保值率 0.45 ], &amp;quot;condGrade&amp;quot;: &amp;quot;C&amp;quot; //一般车况 } ] } }</code></pre> <h4>2.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;参数不正确&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <h3>3 车辆品牌查询接口</h3> <h4>3.1 接口描述</h4> <ul> <li>查询车辆品牌接口。</li> </ul> <h4>3.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/brand</code></p> <h4>3.3 业务参数</h4> <p>无</p> <h4>3.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;taskNo&amp;quot;: &amp;quot;968545275134169633742173&amp;quot;,//本次唯一请求号 &amp;quot;charge&amp;quot;: true, //计费标志 &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;name&amp;quot;: &amp;quot;AC Schnitzer&amp;quot;,//品牌名称 &amp;quot;logo&amp;quot;: &amp;quot;http://images.pistonint.com/bizusedcar/newcar/logo/bra00010002.png&amp;quot;,//logo图片 &amp;quot;id&amp;quot;: &amp;quot;bra00010&amp;quot;,//品牌id(用于查询车型) &amp;quot;category&amp;quot;: &amp;quot;豪华&amp;quot;, //类别 &amp;quot;valid&amp;quot;: true,//有效 &amp;quot;abbrName&amp;quot;: &amp;quot;迈越&amp;quot;,//品牌简称 &amp;quot;fullSpell&amp;quot;: &amp;quot;maiyue&amp;quot;,//品牌全拼 &amp;quot;dept&amp;quot;: &amp;quot;China&amp;quot; //品牌部门 } ] } } </code></pre> <h4>3.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;系统维护,请稍候再试&amp;quot;, &amp;quot;code&amp;quot;: 500 }</code></pre> <h3>4 查询车型列表</h3> <h4>4.1 接口描述</h4> <ul> <li>根据品牌id查询车型列表。</li> </ul> <h4>4.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/model</code></p> <h4>4.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:400px&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>brandIds</td> <td>String</td> <td>是</td> <td>车辆品牌ids,多个逗号隔开</td> </tr> </tbody> </table> <h4>4.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;taskNo&amp;quot;: &amp;quot;968545275134169633742173&amp;quot;,//本次唯一请求号 &amp;quot;charge&amp;quot;: true, //计费标志 &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;id&amp;quot;: &amp;quot;mod00010&amp;quot;,//车型id &amp;quot;oemName&amp;quot;: &amp;quot;AC Schnitzer(进口)&amp;quot;,//厂商名称 &amp;quot;brandName&amp;quot;: &amp;quot;AC Schnitzer&amp;quot;,//品牌名称 &amp;quot;oemBrandName&amp;quot;: &amp;quot;AC Schnitzer&amp;quot;,//厂商品牌名称 &amp;quot;brandId&amp;quot;: &amp;quot;bra00010&amp;quot;,//品牌id &amp;quot;name&amp;quot;: &amp;quot;AC Schnitzer M3&amp;quot;,//车型名称 &amp;quot;oemBrandId&amp;quot;: &amp;quot;man00370&amp;quot;,//厂商品牌关联 id &amp;quot;fullSpell&amp;quot;: &amp;quot;insight&amp;quot;,//车型名称全拼 &amp;quot;oemId&amp;quot;: &amp;quot;oem00010&amp;quot;, //厂商id &amp;quot;onSaleFlag&amp;quot;: false,//是否在售 &amp;quot;pictureUrls&amp;quot;: [//车型图片 &amp;quot;https://xxxx.jpg&amp;quot; ] } ] } } </code></pre> <h4>4.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;参数不正确&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <h3>5 查询型号列表</h3> <h4>5.1 接口描述</h4> <ul> <li>根据车型id查询型号列表。</li> </ul> <h4>5.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/trim</code></p> <h4>5.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:400px&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>modelIds</td> <td>String</td> <td>是</td> <td>车型ids,多个逗号隔开</td> </tr> </tbody> </table> <h4>5.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;taskNo&amp;quot;: &amp;quot;968545275134169633742173&amp;quot;,//本次唯一请求号 &amp;quot;charge&amp;quot;: true, //计费标志 &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;generation&amp;quot;: &amp;quot;New_Model&amp;quot;,//车型代 &amp;quot;year&amp;quot;: 2015,//年款 &amp;quot;modelId&amp;quot;: &amp;quot;mod00010&amp;quot;,//车型 id &amp;quot;abbrName&amp;quot;: &amp;quot;2015款 ACS3 Sport&amp;quot;,//型号简称 &amp;quot;msrp&amp;quot;: 1090000,//指导价 &amp;quot;brandId&amp;quot;: &amp;quot;bra00010&amp;quot;,//品牌 id &amp;quot;name&amp;quot;: &amp;quot;AC Schnitzer(进口) AC Schnitzer M3 2015款 ACS3 Sport&amp;quot;,//型号全称 &amp;quot;stopTime&amp;quot;: &amp;quot;20170301&amp;quot;,//退市时间 &amp;quot;startTime&amp;quot;: &amp;quot;20140901&amp;quot;,//上市时间 &amp;quot;id&amp;quot;: &amp;quot;tri00001&amp;quot;, //型号id &amp;quot;bodyType&amp;quot;: &amp;quot;三厢车&amp;quot;,//车身结构 &amp;quot;brandName&amp;quot;: &amp;quot;本田&amp;quot;,//品牌名称 &amp;quot;onSaleFlag&amp;quot;: false,//是否在售标记 &amp;quot;valid&amp;quot;: true,//是否有效 &amp;quot;oemName&amp;quot;: &amp;quot;广汽本田&amp;quot;,//厂商名称 &amp;quot;modelName&amp;quot;: &amp;quot;锋范&amp;quot;,//车型名称 &amp;quot;bodyTypeId&amp;quot;: &amp;quot;bod00020&amp;quot;,//车身类型 id &amp;quot;classic&amp;quot;: false,//是否为经典款 &amp;quot;oemId&amp;quot;: &amp;quot;oem00530&amp;quot; //厂商 id } ] } } </code></pre> <h4>5.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;参数不正确&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <h3>6 查询省份列表</h3> <h4>6.1 接口描述</h4> <ul> <li>查询省份列表。</li> </ul> <h4>6.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/province</code></p> <h4>6.3 业务参数</h4> <p>无</p> <h4>6.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;taskNo&amp;quot;: &amp;quot;968545275134169633742173&amp;quot;,//本次唯一请求号 &amp;quot;charge&amp;quot;: true, //计费标志 &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;abbrName&amp;quot;: &amp;quot;安徽&amp;quot;,//省份简称 &amp;quot;name&amp;quot;: &amp;quot;安徽省&amp;quot;,//省份全称 &amp;quot;id&amp;quot;: &amp;quot;pro00010&amp;quot;, //省份id &amp;quot;provinceCode&amp;quot;: &amp;quot;340000&amp;quot;,//省份代码 &amp;quot;fullSpell&amp;quot;: &amp;quot;anhui&amp;quot;,//省份名称全拼 &amp;quot;countryId&amp;quot;: &amp;quot;CHN&amp;quot;//国家 id } ] } }</code></pre> <h4>6.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;系统维护,请稍候再试&amp;quot;, &amp;quot;code&amp;quot;: 500 }</code></pre> <h3>7 查询城市列表</h3> <h4>7.1 接口描述</h4> <ul> <li>根据省份id查询城市列表。</li> </ul> <h4>7.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/city</code></p> <h4>7.3 业务参数</h4> <table> <thead> <tr> <th>名称</th> <th>类型</th> <th>必须</th> <th>&lt;div style=&quot;width:400px&quot;&gt;说明&lt;/div&gt;</th> </tr> </thead> <tbody> <tr> <td>provinceId</td> <td>String</td> <td>是</td> <td>省份id,安徽省:pro00010,北京市:pro00020,重庆市:pro00030,福建省:pro00040,甘肃省:pro00050,广东省:pro00060,广西壮族自治区:pro00070,贵州省:pro00080,海南省:pro00090,河北省:pro00100,黑龙江省:pro00110,河南省:pro00120,香港特别行政区:pro00130,湖北省:pro00140,湖南省:pro00150,内蒙古自治区:pro00160,江苏省:pro00170,江西省:pro00180,吉林省:pro00190,辽宁省:pro00200,澳门特别行政区:pro00210,宁夏回族自治区:pro00220,青海省:pro00230,陕西省:pro00240,山东省:pro00250,上海市:pro00260,山西省:pro00270,四川省:pro00280,台湾省:pro00290,天津市:pro00300,西藏自治区:pro00310,新疆维吾尔自治区:pro00320,云南省:pro00330,浙江省:pro00340</td> </tr> </tbody> </table> <h4>7.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;taskNo&amp;quot;: &amp;quot;968545275134169633742173&amp;quot;,//本次唯一请求号 &amp;quot;charge&amp;quot;: true, //计费标志 &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;abbrName&amp;quot;: &amp;quot;舟山&amp;quot;,//简称 &amp;quot;name&amp;quot;: &amp;quot;舟山市&amp;quot;,//城市名称 &amp;quot;id&amp;quot;: &amp;quot;cit03420&amp;quot;,//城市id &amp;quot;provId&amp;quot;: &amp;quot;pro00340&amp;quot;,//省份 id &amp;quot;plateCode&amp;quot;: &amp;quot;浙L&amp;quot;, //车牌编码 &amp;quot;valid&amp;quot;: true,//是否有效 &amp;quot;areaCode&amp;quot;: &amp;quot;0580&amp;quot;,//区号编码 &amp;quot;cityRank&amp;quot;: &amp;quot;三线&amp;quot;,//几线城市 &amp;quot;cityCode&amp;quot;: &amp;quot;330900&amp;quot;,//城市代码 &amp;quot;provinceCode&amp;quot;: &amp;quot;330000&amp;quot;,//省份代码 &amp;quot;fullSpell&amp;quot;: &amp;quot;zhoushan&amp;quot; //名称全拼 } ] } } </code></pre> <h4>7.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;参数不正确&amp;quot;, &amp;quot;code&amp;quot;: 400 }</code></pre> <h3>8 查询颜色列表</h3> <h4>8.1 接口描述</h4> <ul> <li>查询颜色列表。</li> </ul> <h4>8.2 请求地址</h4> <p><code>https://api.jumdata.com/car-evaluate-v2/color</code></p> <h4>8.3 业务参数</h4> <p>无</p> <h4>8.4 成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;taskNo&amp;quot;: &amp;quot;968545275134169633742173&amp;quot;,//本次唯一请求号 &amp;quot;charge&amp;quot;: true, //计费标志 &amp;quot;data&amp;quot;: { &amp;quot;list&amp;quot;: [ { &amp;quot;seqNO&amp;quot;: 1,//序列号 &amp;quot;name&amp;quot;: &amp;quot;黑色&amp;quot;,//颜色名称 &amp;quot;id&amp;quot;: &amp;quot;Col09&amp;quot; //颜色id } ] } }</code></pre> <h4>8.5 失败返回样例</h4> <pre><code class="language-json">{ &amp;quot;msg&amp;quot;: &amp;quot;系统维护,请稍候再试&amp;quot;, &amp;quot;code&amp;quot;: 500 }</code></pre>

页面列表

ITEM_HTML