按量付費轉包年包月付費
更新時間 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
}
狀態碼
請參考
錯誤碼
請參考