数电发票开具前置接口

云税平台开票前置接口规范


数电票二维码交付

<h5>简要描述</h5> <ul> <li>将开具成功的发票通过访问此接口返回地址进行下载</li> </ul> <h5>服务码</h5> <ul> <li>yspt_sdp_ewmjf</li> </ul> <h5>数据格式</h5> <ul> <li><code>JSON</code></li> </ul> <h5>请求数据</h5> <table> <thead> <tr> <th>参数</th> <th>参数名</th> <th>类型</th> <th>长度</th> <th>必须</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>nsrsbh</td> <td>销售方纳税人识别号</td> <td>string</td> <td>20</td> <td>是</td> </tr> <tr> <td>fphm</td> <td>数电发票号码</td> <td>string</td> <td>20</td> <td>是</td> </tr> <tr> <td>wjgs</td> <td>文件格式</td> <td>string</td> <td>1</td> <td>是</td> <td>只能是PDF,OFD,XML。随便传个</td> </tr> <tr> <td>kprq</td> <td>开票日期</td> <td>string</td> <td>14</td> <td>是</td> <td>格式:yyyyMMddHHmmss</td> </tr> </tbody> </table> <h5>返回数据</h5> <table> <thead> <tr> <th>参数</th> <th>参数名</th> <th>类型</th> <th>长度</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>msg</td> <td>相应消息</td> <td>string</td> <td>不定长</td> <td>请求结果返回信息</td> </tr> <tr> <td>code</td> <td>响应代码</td> <td>string</td> <td>4</td> <td>请求结果返回代码</td> </tr> <tr> <td>response</td> <td>返回</td> <td>string</td> <td>不定长</td> <td>url</td> </tr> </tbody> </table> <h5>请求示例</h5> <pre><code class="language-java">{ &amp;quot;nsrsbh&amp;quot;: &amp;quot;91440604MA5*************&amp;quot; //纳税人识别号, &amp;quot;kprq&amp;quot;: &amp;quot;20230801163324&amp;quot; //开票日期, &amp;quot;wjgs&amp;quot;: &amp;quot;PDF&amp;quot; //文件格式, &amp;quot;fphm&amp;quot;: &amp;quot;234420000***********&amp;quot; //数电号码 }</code></pre> <h5>返回示例</h5> <pre><code class="language-json">成功: { &amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;, &amp;quot;code&amp;quot;: &amp;quot;0000&amp;quot;, &amp;quot;response&amp;quot;: &amp;quot;https://dppt99.guangdong.chinatax.gov.cn:8443/v/2_2344200000*************_2023080116332************&amp;quot; }</code></pre>

页面列表

ITEM_HTML