dongli

东犁服务


售后取消接口

<p>[TOC]</p> <h2>接口说明</h2> <ul> <li>餐饮取消售后</li> </ul> <h2>功能描述</h2> <ul> <li>餐饮取消售后:通过外部售后单号和售后编码取消对应的售后</li> </ul> <h2>调用方式</h2> <ul> <li>HTTPS</li> </ul> <pre><code>POST {{base_url}} /api/open_service/ayh/open_sale_create</code></pre> <h2>请求参数</h2> <table> <thead> <tr> <th>属性</th> <th>类型</th> <th>必填</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>service_sn</td> <td>string</td> <td>是</td> <td>主订单号</td> </tr> <tr> <td>out_sale_no</td> <td>string</td> <td>是</td> <td>订单号</td> </tr> </tbody> </table> <h2>返回参数</h2> <table> <thead> <tr> <th>属性</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>int</td> <td>0-成功;</td> </tr> <tr> <td>message</td> <td>string</td> <td>返回信息说明</td> </tr> <tr> <td>data</td> <td>array</td> <td>返回订单信息</td> </tr> <tr> <td>data.service_sn</td> <td>string</td> <td>售后单号</td> </tr> <tr> <td>data.out_sale_no</td> <td>string</td> <td>外部售后单号</td> </tr> <tr> <td>data.code_sn</td> <td>string</td> <td>售后码信息</td> </tr> </tbody> </table> <h2>调用示例</h2> <ul> <li>示例说明: HTTPS请求</li> </ul> <h2>请求数据示例</h2> <pre><code>{     &amp;quot;service_sn&amp;quot;:&amp;quot;TESTSH2023102017070084055&amp;quot;,     &amp;quot;out_sale_no&amp;quot;:&amp;quot;100000001000015&amp;quot; }</code></pre> <h2>返回数据示例</h2> <pre><code>{     &amp;quot;code&amp;quot;: 0,     &amp;quot;message&amp;quot;: &amp;quot;成功&amp;quot;,     &amp;quot;data&amp;quot;: {         &amp;quot;service_sn&amp;quot;: &amp;quot;TESTSH2023102017271885601&amp;quot;,         &amp;quot;out_sale_no&amp;quot;: &amp;quot;100000001000019&amp;quot;,         &amp;quot;status&amp;quot;: 1,         &amp;quot;code_sn&amp;quot;: [             &amp;quot;197680349344&amp;quot;         ]     } }</code></pre> <h2>错误码</h2> <table> <thead> <tr> <th>错误码</th> <th>解决方案</th> </tr> </thead> <tbody> <tr> <td>3020</td> <td>外部售后单号:【售后单号】,未查询到售后相关信息</td> </tr> <tr> <td>3021</td> <td>外部售后单号:【售后单号】,售后订单状态不允许取消</td> </tr> <tr> <td>3022</td> <td>外部售后单号:【售后单号】,未查询到订单信息</td> </tr> <tr> <td>3023</td> <td>外部售后单号:【售后单号】,售后订单平台不存在',</td> </tr> <tr> <td>3024</td> <td>外部售后单号:【售后单号】,取消售后数据出现异常,请稍后尝试</td> </tr> </tbody> </table>

页面列表

ITEM_HTML