退订VPS
本接口用于退订VPS
接口信息
POST /client/order/unsubscribeVps
请求头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| x-merchant-token | 是 | string | 商户访问令牌 |
| x-merchant-code | 是 | string | 商户编码 |
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| unsubscribeContainerIds | 是 | String | 要退订的容器ID,多个ID用逗号分隔 |
请求示例
const response = await fetch('/client/order/unsubscribeVps', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-merchant-token': 'your-token-here',
'x-merchant-code': 'your-merchant-code'
},
body: JSON.stringify({
"unsubscribeContainerIds": "45b48b4459be,7669a9735014",
})
});
const result = await response.json();
响应结果
{
"msg": "操作成功",
"code": 200,
"data": true
}