车辆通行费发票查验(江苏)
<p>[TOC]</p>
<h3>接口描述</h3>
<ul>
<li>该接口用于车辆通行费发票查验,目前支持江苏车辆通行费发票查验。与江苏省车辆通行费(非ETC)发票查验保持一致。</li>
</ul>
<h3>请求说明</h3>
<h4>请求地址</h4>
<p><code>https://api.jumdata.com/invoice/validate/vehicle-toll-jiangshu</code></p>
<h4>请求方式</h4>
<ul>
<li>GET/POST</li>
</ul>
<h4>请求格式</h4>
<ul>
<li>x-www-form-urlencoded</li>
</ul>
<h4>请求参数</h4>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必须</th>
<th><div style="width:400px">说明</div></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>签名,详见签名算法说明</td>
</tr>
<tr>
<td>fpdm</td>
<td>String</td>
<td>是</td>
<td>发票代码</td>
</tr>
<tr>
<td>fphm</td>
<td>String</td>
<td>是</td>
<td>发票号码</td>
</tr>
<tr>
<td>dq</td>
<td>String</td>
<td>是</td>
<td>地区,江苏:3200</td>
</tr>
<tr>
<td>gfmc</td>
<td>String</td>
<td>是</td>
<td>购方名称/抬头名称</td>
</tr>
</tbody>
</table>
<h4>签名算法说明</h4>
<p><code>sign = sha256(appId + appSecret + timestamp)</code></p>
<p>用服务商分配的 appId、服务商分配的 appSecret,当前时间时间戳 timestamp,按上述顺序拼接成字符串,再进行 sha256 哈希得到。如下:</p>
<pre><code class="language-java">String appId = &quot;xyzxy2121zxyz&quot;;
String timestamp = &quot;1555378976238&quot;;
String appSecret = &quot;efcefcef1121cefcefc1212121&quot;;
String str = appId + appSecret + timestamp;
String sign = sha256(str);</code></pre>
<h3>返回说明</h3>
<h4>成功返回样例</h4>
<pre><code class="language-json">{
&quot;charge&quot;: true,//计费标志
&quot;code&quot;: 200,//返回码,详见code返回码说明
&quot;msg&quot;: &quot;成功&quot;,//code对应的描述
&quot;taskNo&quot;: &quot;427264051198088690514014&quot;,//本次唯一请求号
&quot;data&quot;: {
&quot;xfsbh&quot;: &quot;9132000013476xxxxx&quot;,//销方识别号
&quot;gfsbh&quot;: &quot;9132058130225xxxxx&quot;,//购方识别号
&quot;fh&quot;: &quot;张xx&quot;,//复核
&quot;taxFpUrl&quot;: &quot;https://xxxxxxx&quot;,//税局返回发票文件url
&quot;fpdm&quot;: &quot;1321523xxxxx&quot;,//发票代码
&quot;gfmc&quot;: &quot;江苏xxxxxx有限公司&quot;,//购方名称
&quot;gmfyhzh&quot;: &quot;&quot;,//购买方银行账号
&quot;fplx&quot;: &quot;103&quot;,//发票类型代码
&quot;kpr&quot;: &quot;刘xx&quot;,//开票人
&quot;xsfdzdh&quot;: &quot;江苏省南京市仙林大道xxxxxx&quot;,//销售方地址电话
&quot;times&quot;: 0,//查验次数
&quot;gmfdzdh&quot;: &quot;&quot;,//购买方地址电话
&quot;skm&quot;: &quot;258&gt;&lt;010&gt;6*544862/517972-*&gt;3011&gt;2669//&lt;9&gt;*338&lt;*950xxxx+-509699*-85289841738xxxx33+3443&gt;67820839xxxx/&quot;,//密码区
&quot;kprq&quot;: &quot;20240805&quot;,//开票日期
&quot;xsfyhzh&quot;: &quot;中国建设银行南京中山南路支行3200188123xxxxxx&quot;,//销售方银行账号
&quot;bz&quot;: &quot;车牌号:苏EADxxxx(渐变绿色)\n车 型:一型客车\n入口站:江苏沙家浜站\n出口站:江苏苏南硕放机场收费站\n出口时间:2024-07-31 06:40:12&quot;,//备注
&quot;xmmx&quot;: [//项目明细
{
&quot;xmmc&quot;: &quot;车辆通行费&quot;,//项目名称
&quot;xmsl&quot;: &quot;1&quot;,//项目数量
&quot;xmje&quot;: &quot;18.00&quot; //项目金额
}
],
&quot;jshj&quot;: &quot;18.00&quot;,//价税合计
&quot;skr&quot;: &quot;李xx&quot;,//收款人
&quot;xfmc&quot;: &quot;江苏宁沪高速公路股份有限公司&quot;,//销方名称
&quot;fphm&quot;: &quot;0972xxxx&quot; //发票号码
}
}</code></pre>
<h4>查无此票返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 201,
&quot;msg&quot;: &quot;查无此票&quot;,
&quot;taskNo&quot;: &quot;12552230716560623515&quot;,
&quot;charge&quot;: true,
&quot;data&quot;: {
&quot;fplx&quot;: &quot;101&quot;
}
}</code></pre>
<h4>不一致返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 202,
&quot;msg&quot;: &quot;不一致&quot;,
&quot;taskNo&quot;: &quot;12552230716560623515&quot;,
&quot;charge&quot;: true,
&quot;data&quot;: {
&quot;fplx&quot;: &quot;101&quot;
}
}
</code></pre>
<h4>错误返回样例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 400,
&quot;msg&quot;: &quot;发票编号不能为空&quot;,
&quot;charge&quot;: false
}</code></pre>
<h4>code返回码说明</h4>
<p><a href="https://www.showdoc.com.cn/p/ec82c9f1cb47cd306fea5b700d3ca953#code返回码说明">code返回码说明</a></p>