按量付费转包年包月付费
更新时间 2025-10-17 14:30:23
最近更新时间: 2025-10-17 14:30:23
接口功能介绍
付费类型转换-调用TransformToPrePaid将按量付费的Redis实例转换为包年包月(预付费)实例。
接口约束
无
URI
POST /v1/spuInst/transToPrePaid
路径参数 无
Query参数 无
请求参数
请求头header参数 无
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
params | 是 | Object | 请求参数 | params | |
name | 是 | String | 名称 | AutoToNeed | |
表 params |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
prodSpecInstId | 是 | String | 产品实例标识 | 525650b0f7cf4be9a1a244a7d5973f9d | |
propertys | 是 | Array of Objects | 属性列表 | propertys | |
表 propertys |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
instId | 是 | String | 实例标识 | 525650b0f7cf4be9a1a244a7d5973f9d | |
propertyInfos | 是 | Array of Objects | 属性信息 | propertyInfos | |
表 propertyInfos |
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
attrNbr | 是 | String | 属性编码 | AutoToNeed | |
attrValue | 是 | String | 属性值 | CUS_300_1_0002 | |
tableColumn | 是 | Boolean | 是否表列 | false |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 响应状态码 | 800 | |
message | String | 响应信息 | success | |
returnObj | Object | 响应对象 |
枚举参数
无
请求示例
请求url
无
请求头header
{}
请求体body
{
"params":
{
"prodSpecInstId": "525650b0f7cf4be9a1a244a7d5973f9d",
"propertys": [
{
"instId": "525650b0f7cf4be9a1a244a7d5973f9d",
"propertyInfos": [
{
"attrNbr": "AutoToNeed",
"attrValue": "CUS_300_1_0002",
"tableColumn": false
}
]
}
]
},
"name": "AutoToNeed"
}
响应示例
{
"statusCode": 800,
"returnObj": {
"masterOrderId": "7e89e7bab4254f979cfa18a801219ca9",
"masterOrderNo": "20211109203149191325",
"masterOrderType": "demoteProd",
"contractId": null,
"accountId": "9e4b629083164a61b6fccdef9b3b25bb",
"accountType": null,
"userId": "f295e4a1ea5c4dffa7e233317d48f009",
"description": null,
"isVirtualOrder": null,
"isAgencyOrder": null,
"payType": null,
"isTrialOrder": null,
"source": "ORD_121_13_0009",
"buildingChannel": null,
"finishedDate": null,
"finishType": null,
"createDate": "2021-11-0920:31:56",
"createStaff": "-1",
"statusCd": "ORD_117_23_0022",
"statusDate": null,
"updateStaff": "-1",
"updateDate": "2021-11-0920:31:56",
"remark": null,
"verNum": null,
"provinceId": "-1",
"lanId": "-1",
"regionId": "1",
"createOrg": "-1",
"updateOrg": "-1",
"extAccountId": null,
"extUserId": null,
"extContractId": null,
"customPrice": 0E-10,
"totalPrice": 0E-10,
"discountPrice": 0E-10,
"chargeOffType": null,
"packageType": null,
"orderId": null,
"eventType": null,
"eventTypeItem": null,
"ordApplyType": null,
"paymentPattern": null,
"paymentSite": null,
"paymentLimitation": null,
"paymentPlanInitialMonth": null,
"paymentChannel": null,
"extCustOrderId": null,
"orderMetaDTOs": null,
"shardingId": "9e4b629083164a61b6fccdef9b3b25bb"
},
"message": null
}
状态码
请参考 状态码
错误码
请参考 错误码