申请发票
<h5>简要描述</h5>
<ul>
<li>申请发票</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{domian}}/shop/orderInvoice/apply</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>http请求header</h5>
<ul>
<li>Content-Type:application/json</li>
<li>charset:utf-8 `</li>
<li><strong>Authorization : Bearer {{access_token}}</strong></li>
</ul>
<h5>请求参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>名称</th>
<th>必选</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>orderNo</td>
<td>订单编号</td>
<td>是</td>
<td>String</td>
<td>PY20230830092510737dF</td>
</tr>
<tr>
<td>headerType</td>
<td>抬头类型 person:个人, enterprise:企业</td>
<td>是</td>
<td>String</td>
<td>enterprise</td>
</tr>
<tr>
<td>headerName</td>
<td>抬头</td>
<td>是</td>
<td>String</td>
<td>南京盘盈信息科技有限公司</td>
</tr>
<tr>
<td>taxNo</td>
<td>税号,企业必填</td>
<td>否</td>
<td>String</td>
<td>91310104084123648T</td>
</tr>
<tr>
<td>mail</td>
<td>接收邮箱</td>
<td>是</td>
<td>String</td>
<td>huww095@163.com</td>
</tr>
<tr>
<td>memo</td>
<td>备注</td>
<td>否</td>
<td>String</td>
<td>测试</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;orderNo&quot;: &quot;PY20230830092510737dF&quot;,
&quot;headerType&quot;: &quot;enterprise&quot;,
&quot;headerName&quot;: &quot;南京盘盈信息科技有限公司&quot;,
&quot;taxNo&quot;: &quot;91310104084123648T&quot;,
&quot;mail&quot;: &quot;huww095@163.com&quot;,
&quot;memo&quot;: &quot;测试&quot;
}</code></pre>
<h5>返回示例</h5>
<pre><code> 成功:
{
&quot;code&quot;: 0,
&quot;msg&quot;: null,
&quot;data&quot;: {</code></pre>
<p> "id": 1,
"projectId": 2,
"orderNo": "PY20230830092510737dF",
"storeId": 6,
"userId": 703,
"amount": 0.01,
"applyTime": "2023-08-30 11:30:02",
"invoiceTime": null,
"invoiceStatus": "applied",
"headerType": "enterprise",
"headerName": "南京盘盈信息科技有限公司",
"taxNo": "91310104084123648T",
"bankName": null,
"bankNo": null,
"address": null,
"phone": null,
"invoiceFile": null,
"memo": "测试",
"mail": "huww095@163.com"
}
}</p>
<pre><code> 失败:
{
&quot;code&quot;: 401,
&quot;msg&quot;: &quot;error&quot;,
&quot;data&quot;: &quot;Full authentication is required to access this resource&quot;
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>int</td>
<td>返回状态码</td>
<td>0:成功 401:鉴权失败</td>
</tr>
<tr>
<td>msg</td>
<td>String</td>
<td>状态描述</td>
<td></td>
</tr>
<tr>
<td>data</td>
<td>String</td>
<td>返回数据</td>
<td></td>
</tr>
<tr>
<td>- id</td>
<td>int</td>
<td>发票id</td>
<td>1</td>
</tr>
<tr>
<td>- orderNo</td>
<td>String</td>
<td>订单号</td>
<td>PY20230830092510737dF</td>
</tr>
<tr>
<td>- amount</td>
<td>String</td>
<td>开票金额</td>
<td>0.01</td>
</tr>
<tr>
<td>- ...</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>
</li>
</ul>