下单退订单(N100型)
更新时间 2026-04-17 15:56:44
最近更新时间: 2026-04-17 15:56:44
接口功能介绍
云防火墙(原生版)-N100型产品退订云防火墙+云主机功能
接口约束
无
URI
POST /v1/cngfw/order/place_unsubscribe
路径参数 无
Query参数 无
请求参数
请求头header参数 无
请求体body参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| resources | 是 | Array of Objects | 退订资源id | resources |
表 resources
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| resourceIds | 是 | String of Array(String) | 退订资源id数组,包含云防火墙资源id、云主机资源id |
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| statusCode | Integer | 状态码,800:成功,900:失败 | ||
| message | String | 返回信息 | 成功 | |
| error | String | 错误信息 | ||
| returnObj | Object | 接口返回结果 | returnObj | |
| errorCode | String | 错误码 |
表 returnObj
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| errorMessage | String | 下单失败描述,具体订单失败取该错误消息描述 | ||
| submitted | Boolean | 是否已提交成功,true:成功,false:失败 | true | |
| orderPlacedEvents | Array of Objects | 订单项 | orderPlacedEvents |
表 orderPlacedEvents
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| errorMessage | String | 下单失败描述,具体订单失败取该错误消息描述 | ||
| submitted | Boolean | 是否已提交成功,true:成功,false:失败 | true | |
| newOrderId | String | 主订单id | ||
| newOrderNo | String | 主订单NO | ||
| totalPrice | Double | 订单价格 |
枚举参数
参数名 statusCode
| 枚举值 | 类型 | 说明 |
|---|---|---|
| 800 | Integer | 成功 |
| 900 | Integer | 失败 |
请求示例
请求url
https://ctcfw-global.ctapi.ctyun.cn/v1/cngfw/order/place_unsubscribe
请求头header
无
请求体body
{
"resources": [
{
"resourceIds":["xxxxxxxxx","xxxxxxxxx"]
}
]
}
响应示例
{
"statusCode": 800,
"returnObj": {
"errorMessage": "",
"submitted": true,
"orderPlacedEvents": [
{
"errorMessage": "",
"submitted": true,
"newOrderId": "681d4a6f2cba4bac84d8a9d659c5d64b",
"newOrderNo": "20260408104312026324",
"totalPrice": 1468.62
}
]
}
}
状态码
请参考 状态码
错误码
请参考 错误码