聚美智数


车辆通行费发票查验(江苏)

<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>&lt;div style=&quot;width:400px&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>签名,详见签名算法说明</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 = &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> <h3>返回说明</h3> <h4>成功返回样例</h4> <pre><code class="language-json">{ &amp;quot;charge&amp;quot;: true,//计费标志 &amp;quot;code&amp;quot;: 200,//返回码,详见code返回码说明 &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,//code对应的描述 &amp;quot;taskNo&amp;quot;: &amp;quot;427264051198088690514014&amp;quot;,//本次唯一请求号 &amp;quot;data&amp;quot;: { &amp;quot;xfsbh&amp;quot;: &amp;quot;9132000013476xxxxx&amp;quot;,//销方识别号 &amp;quot;gfsbh&amp;quot;: &amp;quot;9132058130225xxxxx&amp;quot;,//购方识别号 &amp;quot;fh&amp;quot;: &amp;quot;张xx&amp;quot;,//复核 &amp;quot;taxFpUrl&amp;quot;: &amp;quot;https://xxxxxxx&amp;quot;,//税局返回发票文件url &amp;quot;fpdm&amp;quot;: &amp;quot;1321523xxxxx&amp;quot;,//发票代码 &amp;quot;gfmc&amp;quot;: &amp;quot;江苏xxxxxx有限公司&amp;quot;,//购方名称 &amp;quot;gmfyhzh&amp;quot;: &amp;quot;&amp;quot;,//购买方银行账号 &amp;quot;fplx&amp;quot;: &amp;quot;103&amp;quot;,//发票类型代码 &amp;quot;kpr&amp;quot;: &amp;quot;刘xx&amp;quot;,//开票人 &amp;quot;xsfdzdh&amp;quot;: &amp;quot;江苏省南京市仙林大道xxxxxx&amp;quot;,//销售方地址电话 &amp;quot;times&amp;quot;: 0,//查验次数 &amp;quot;gmfdzdh&amp;quot;: &amp;quot;&amp;quot;,//购买方地址电话 &amp;quot;skm&amp;quot;: &amp;quot;258&amp;gt;&amp;lt;010&amp;gt;6*544862/517972-*&amp;gt;3011&amp;gt;2669//&amp;lt;9&amp;gt;*338&amp;lt;*950xxxx+-509699*-85289841738xxxx33+3443&amp;gt;67820839xxxx/&amp;quot;,//密码区 &amp;quot;kprq&amp;quot;: &amp;quot;20240805&amp;quot;,//开票日期 &amp;quot;xsfyhzh&amp;quot;: &amp;quot;中国建设银行南京中山南路支行3200188123xxxxxx&amp;quot;,//销售方银行账号 &amp;quot;bz&amp;quot;: &amp;quot;车牌号:苏EADxxxx(渐变绿色)\n车 型:一型客车\n入口站:江苏沙家浜站\n出口站:江苏苏南硕放机场收费站\n出口时间:2024-07-31 06:40:12&amp;quot;,//备注 &amp;quot;xmmx&amp;quot;: [//项目明细 { &amp;quot;xmmc&amp;quot;: &amp;quot;车辆通行费&amp;quot;,//项目名称 &amp;quot;xmsl&amp;quot;: &amp;quot;1&amp;quot;,//项目数量 &amp;quot;xmje&amp;quot;: &amp;quot;18.00&amp;quot; //项目金额 } ], &amp;quot;jshj&amp;quot;: &amp;quot;18.00&amp;quot;,//价税合计 &amp;quot;skr&amp;quot;: &amp;quot;李xx&amp;quot;,//收款人 &amp;quot;xfmc&amp;quot;: &amp;quot;江苏宁沪高速公路股份有限公司&amp;quot;,//销方名称 &amp;quot;fphm&amp;quot;: &amp;quot;0972xxxx&amp;quot; //发票号码 } }</code></pre> <h4>查无此票返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 201, &amp;quot;msg&amp;quot;: &amp;quot;查无此票&amp;quot;, &amp;quot;taskNo&amp;quot;: &amp;quot;12552230716560623515&amp;quot;, &amp;quot;charge&amp;quot;: true, &amp;quot;data&amp;quot;: { &amp;quot;fplx&amp;quot;: &amp;quot;101&amp;quot; } }</code></pre> <h4>不一致返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 202, &amp;quot;msg&amp;quot;: &amp;quot;不一致&amp;quot;, &amp;quot;taskNo&amp;quot;: &amp;quot;12552230716560623515&amp;quot;, &amp;quot;charge&amp;quot;: true, &amp;quot;data&amp;quot;: { &amp;quot;fplx&amp;quot;: &amp;quot;101&amp;quot; } } </code></pre> <h4>错误返回样例</h4> <pre><code class="language-json">{ &amp;quot;code&amp;quot;: 400, &amp;quot;msg&amp;quot;: &amp;quot;发票编号不能为空&amp;quot;, &amp;quot;charge&amp;quot;: false }</code></pre> <h4>code返回码说明</h4> <p><a href="https://www.showdoc.com.cn/p/ec82c9f1cb47cd306fea5b700d3ca953#code返回码说明">code返回码说明</a></p>

页面列表

ITEM_HTML