接口说明

接口名称 根据客户取消订单
Method POST
Type JSON
URI /oms/v1/Order/cancelOrderByCustomer

请求参数

参数名称 参数说明 是否必须 数据类型
userId userId true string
ileId ileId true string
ileKey ileKey true string
orderNos 尾程派送单号集合 true array

请求参数

{
    "ileId":"your_ileId",
    "sign":"your_sign",
    "userId": "your_userId",
    "orderNos": ["xxxxxxxxx", "xxxxxxxxx"]
}

响应状态

状态码 说明
200 成功
401 Unauthorized
403 Forbidden
404 Not Found
500 系统异常

响应参数

参数名称 参数说明 类型
body 响应体 object
code 响应编码 integer
msg 提示信息 string

响应示例(取消一个订单-成功)

{
    "body": "订单取消成功",
    "code": 200,
    "msg": "订单取消成功"
}

响应示例(取消一个订单-失败)

{
    "body": null,
    "code": 51014,
    "msg": "订单当前状态是[仓库入库],取消失败!"
}

响应示例(取消多个订单-成功)

{
    "body": "成功10条",
    "code": 200,
    "msg": "成功10条"
}

响应示例(取消多个订单-失败或部分失败)

{
    "body": {
        "success": [
            "3676******"
        ],
        "error": [
            "SKP1361******"
        ]
    },
    "code": 51014,
    "msg": "成功1条;\n【[SKP1361******]】取消失败"
}
作者:lianjun  创建时间:2024-08-30 10:22
最后编辑:conghui  更新时间:2025-12-16 17:30