基本信息
Item |
Info |
URL |
/nsc/v1/orders/cancel-reasons |
Method |
GET |
接口输入参数
参数名 |
必选 |
类型 |
说明 |
channel |
是 |
string |
渠道,系统会对 channel 和 app_id 做相关性校验 |
user_id |
否 |
string |
用户名,nio 用户传入 |
channel_user_id |
否 |
string |
渠道用户名,企业对接必传 |
注意:user_id和channel_user_id必传且只传其一
返回示例
{
"result_code":"success",
"debug_msg":"success",
"display_msg":"success",
"server_time":1511914500,
"data":{
"total_count:":2,
"cancel_reasons":[
{
"code":1,
"name":"其他"
},
{
"code":2,
"name":"不满意系统分配的加电资源"
}
]
}
}
返回参数说明
参数名 |
类型 |
说明 |
total_count |
integer |
原因总数 |
cancel_reasons |
list |
原因列表,参见 枚举值定义-CancelReason |
-- code |
integer |
取消原因 code |
-- name |
string |
取消原因 name |