ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 取消订单 >[danger]接口认证:**需要认证** ## 示例 ~~~[api] post:/order/cancel *id#订单id <<< success { "code": 200, "msg": "成功", "data": {} } <<< ~~~ ## 可能出现的错误码 > 不包含常见的请求方式错误,参数丢失,用户权限验证失败 ~~~ const ORDER_NOTE_FOUND = [ 'code' => 121006, 'msg' => '订单不存在' ]; ~~~ ~~~ const ORDER_NOT_YOURS = [ 'code' => 121004, 'msg' => '订单不属于你' ]; ~~~ ~~~ const ORDER_CANCEL_STATUS_ERROR = [ 'code' => 121005, 'msg' => '只能取消未付款的订单' ]; ~~~