自动化设备到派-http接口文档


获取格口号并派件

<p><strong>简要描述:</strong> </p> <ul> <li>获取格口号并派件</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>/openapi/express/auto/getBoxNo</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">sheetNo</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>单号</td> </tr> <tr> <td style="text-align: left;">mode</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>ocr或者api,默认为api</td> </tr> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>ocr模式识别的三段码</td> </tr> </tbody> </table> <p><strong>上传示例</strong></p> <pre><code>{ &amp;quot;sheetNo&amp;quot;: &amp;quot;777283570307955&amp;quot;, &amp;quot;mode&amp;quot;: &amp;quot;ocr&amp;quot;, &amp;quot;code&amp;quot;: &amp;quot;123&amp;quot; }</code></pre> <p><strong>返回错误示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 400, &amp;quot;data&amp;quot;: &amp;quot;接口验证错误,请传入appId&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;接口验证错误,请传入appId&amp;quot; }</code></pre> <p>or</p> <pre><code>{ &amp;quot;code&amp;quot;: 400, &amp;quot;data&amp;quot;: &amp;quot;未识别到此单号&amp;quot;, &amp;quot;message&amp;quot;: &amp;quot;未识别到此单号&amp;quot; } 单号的快递公司识别错误</code></pre> <p><strong>返回正确示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 200, &amp;quot;data&amp;quot;: { &amp;quot;sheetNo&amp;quot;: &amp;quot;777283570307955&amp;quot;, &amp;quot;boxNo&amp;quot;: &amp;quot;5&amp;quot;, &amp;quot;company&amp;quot;: &amp;quot;STO&amp;quot; }, &amp;quot;message&amp;quot;: &amp;quot;success&amp;quot;, &amp;quot;success&amp;quot;: true, &amp;quot;isEncrypt&amp;quot;: false }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">company</td> <td style="text-align: left;">string</td> <td>快递公司CODE [YTO,STO,ZTO,YUNDA,JT]</td> </tr> <tr> <td style="text-align: left;">sheetNo</td> <td style="text-align: left;">string</td> <td>单号</td> </tr> <tr> <td style="text-align: left;">boxNo</td> <td style="text-align: left;">string</td> <td>格口号,该字段为空时表示未查询到格口号</td> </tr> </tbody> </table>

页面列表

ITEM_HTML