接口介绍
删除消息服务实例信息。
接口约束
无。
URl
POST https://[endpoint].ctapi.ctyun.cn/v1/spuInst/unsubscribeInst
请求参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
resourceDetailJson | Object | 是 | 下退订订单详细信息 | |
resourceDetailJson.resources | Array | 是 | 下退订订单详细信息 | |
resourceDetailJson.resources.id | 112363 | String | 否 | 指定订单id 只支持单独退订,批量退订不支持指定订单id |
resourceDetailJson.resources.refundingCash | 100 | String | 否 | 出账金额 |
resourceDetailJson.resources.resourceIds | ["resourceId1"] | Array | 是 | 主虚拟资源Id |
resourceDetailJson.autoApproval | true | String | 是 | 是否自动审批 |
type | 2 | String | 是 | 固定值:2 |
响应参数
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
statusCode | 800 | Integer | 响应状态码 |
message | success | String | 响应信息 |
returnObj | Object | 响应对象 |
请求示例
POST https://[endpoint].ctapi.ctyun.cn/v1/spuInst/unsubscribeInst
{
"resourceDetailJson":{
"resources":[
{
"resourceIds":[
"b650819048c04f9188498684786329d6"
],
"refundingCash":"100",
"id":"1111111111111111"
}
],
"autoApproval":"false"
},
"type":"2"
}
响应成功示例
{
"statusCode":800,
"returnObj":{
"errorMessage":"",
"batchOrderPlacementResults":[
{
"errorMessage":"",
"submitted":true,
"orderPlacedEvents":[
{
"errorMessage":"",
"submitted":true,
"newOrderId":"96ec06154feb4da89bf4262f88ada76e",
"newOrderNo":"20180404165441398225",
"totalPrice":100
}
]
},
{
"errorMessage":"",
"submitted":true,
"orderPlacedEvents":[
{
"errorMessage":"",
"submitted":true,
"newOrderId":"38159a060c2f4618a762f0982596dac8",
"newOrderNo":"20180404165441476438",
"totalPrice":100
}
]
}
]
}
}
响应失败示例
{
"returnObj": {},
"message": "...",
"statusCode": "900"
}