智慧平台与用友对接

智慧平台在账单需求中,与用友对接账单核销的功能。


核销接口

<h2>用友 - 账单核销接口</h2> <p><strong>接口地址</strong>:<code>https://10.101.5.3:443/admin-api/bill/verificat</code></p> <p><strong>请求方式</strong>:<code>POST</code></p> <p><strong>请求数据类型</strong>:<code>application/json</code></p> <p><strong>响应数据类型</strong>:无</p> <p><strong>接口描述</strong>:</p> <p>token放在请求头中,核销对象以body形式传入</p> <p><strong>请求参数</strong>:</p> <table> <thead> <tr> <th>参数名称</th> <th>参数说明</th> <th>请求类型</th> <th>是否必须</th> <th>数据类型</th> <th>schema</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>认证 Token</td> <td>header</td> <td>true</td> <td>string</td> </tr> <tr> <td>核销对象</td> <td>body</td> <td>true</td> <td>Object</td> </tr> </tbody> </table> <p><strong>请求示例</strong>: <em>把infoDate(2024-07-16)和infoDateTime(11:22:33)合成一个字段&quot;infoDateTime&quot;: &quot;2024-07-16 11:22:33&quot;</em></p> <pre><code class="language-javascript">{ &amp;quot;verifyList&amp;quot;: [ { &amp;quot;scomment&amp;quot;: &amp;quot;同币种核销&amp;quot;, &amp;quot;busiDate&amp;quot;: &amp;quot;2024-07-16 11:22:33&amp;quot;, &amp;quot;busiNo&amp;quot;: &amp;quot;1111111111&amp;quot;, &amp;quot;billNo&amp;quot;: &amp;quot;YY0001&amp;quot;, &amp;quot;customerName&amp;quot;: &amp;quot;上药的账号&amp;quot;, &amp;quot;customer&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;creator&amp;quot;: &amp;quot;zhangsan&amp;quot;, &amp;quot;creatorUserName&amp;quot;: &amp;quot;张三&amp;quot;, &amp;quot;pkBusiDataInvoiceNo&amp;quot;: &amp;quot;123&amp;quot;, &amp;quot;quantityDe&amp;quot;: 100.00000000, &amp;quot;moneyDe&amp;quot;: 100.00000000, &amp;quot;pkVerifyDetail&amp;quot;: &amp;quot;4444&amp;quot;, &amp;quot;accumulMoney&amp;quot;: 100.00000000, &amp;quot;billClass&amp;quot;: &amp;quot;ys&amp;quot;, &amp;quot;memo&amp;quot;: &amp;quot;企业打钱时的备注&amp;quot;, &amp;quot;infoDateTime&amp;quot;: &amp;quot;2024-07-16 11:22:33&amp;quot;,//infodate(年月日)和infodatetime(时分秒)合在一起 &amp;quot;oppUnitName&amp;quot;: &amp;quot;李四&amp;quot;, &amp;quot;oppBankAccount&amp;quot;: &amp;quot;66666&amp;quot; },{ &amp;quot;scomment&amp;quot;: &amp;quot;同币种核销&amp;quot;, &amp;quot;busiDate&amp;quot;: &amp;quot;2024-07-17 11:22:33&amp;quot;, &amp;quot;busiNo&amp;quot;: &amp;quot;222222&amp;quot;, &amp;quot;billNo&amp;quot;: &amp;quot;YY0002&amp;quot;, &amp;quot;customerName&amp;quot;: &amp;quot;上药的账号&amp;quot;, &amp;quot;customer&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;creator&amp;quot;: &amp;quot;zhangsan&amp;quot;, &amp;quot;creatorUserName&amp;quot;: &amp;quot;张三&amp;quot;, &amp;quot;pkBusiDataInvoiceNo&amp;quot;: &amp;quot;123&amp;quot;, &amp;quot;quantityDe&amp;quot;: 100.00000000, &amp;quot;moneyDe&amp;quot;: 100.00000000, &amp;quot;pkVerifyDetail&amp;quot;: &amp;quot;5555&amp;quot;, &amp;quot;accumulMoney&amp;quot;: 100.00000000, &amp;quot;billClass&amp;quot;: &amp;quot;ys&amp;quot;, &amp;quot;memo&amp;quot;: &amp;quot;企业打钱时的备注&amp;quot;, &amp;quot;infoDateTime&amp;quot;: &amp;quot;2024-07-16 11:22:33&amp;quot;, &amp;quot;oppUnitName&amp;quot;: &amp;quot;李四&amp;quot;, &amp;quot;oppBankAccount&amp;quot;: &amp;quot;66666&amp;quot; } ] }</code></pre> <p><strong>响应参数</strong>:</p> <table> <thead> <tr> <th>参数名称</th> <th>参数说明</th> <th>类型</th> <th>schema</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>接口状态码</td> <td>integer(int32)</td> <td>integer(int32)</td> </tr> <tr> <td>data</td> <td>返回内容</td> <td>string</td> </tr> <tr> <td>msg</td> <td>提示消息</td> <td>string</td> </tr> </tbody> </table> <p><strong>响应示例</strong>:</p> <pre><code class="language-javascript">{ &amp;quot;code&amp;quot;: 0,//code为0,说明请求成功 &amp;quot;data&amp;quot;: &amp;quot;true&amp;quot;, &amp;quot;msg&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <pre><code class="language-javascript">{ &amp;quot;code&amp;quot;: 1009017003, &amp;quot;data&amp;quot;: null, &amp;quot;msg&amp;quot;: &amp;quot;通过应收单号【D020240718000000073】找不到对应的账单同步记录&amp;quot; }</code></pre> <p><strong>调用示例</strong>: 请求头: <img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=44e932757b922985ee585c8416b20e91&amp;amp;file=file.png" alt="" /> 请求体: <img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=b1116375c13b64460d141a4a05103e7e&amp;amp;file=file.png" alt="" /></p>

页面列表

ITEM_HTML