手動續費Postgresql實例
更新時間 2022-11-28 20:37:40
最近更新時間: 2022-11-28 20:37:40
分享文章
接口功能介紹
下續訂訂單
接口約束
無
URI
POST /v1/eop/renew-order
請求參數
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| cycleType | 是 | Integer | 取值范圍:3表示按月訂購,5表示按一年訂購,6表示按兩年訂購、7表示按三年訂購。與cycleCount配合使用,cycleCount屬性為1,cycleType取值為3 表示訂購1個月。 | 3 | - |
| cycleCount | 是 | Integer | 續訂周期數量。 2表示續訂2個月(值需大于零,不超過384個月) | 1 | - |
| resourceIds | 是 | Array | String數組,主虛擬資源ID(批量續訂時資源不能超過10個)可通過【根據主訂單id查詢訂單詳情】接口返回的masterResourceId字段獲取 | [ "48cd3a5e9b964657a1f31c58a8b98ae4"] | - |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 狀態碼 | 800 | - |
| message | String | 消息提示 | SUCCESS | - |
| returnObj | Object | 返回對象 | OrderResponse |
OrderResponse
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| errorMessage | String | 錯誤信息 | "" | - |
| submitted | Boolean | 全部資源是否續訂成功 | true | - |
| orderPlacedEvents | Array | 每個資源的續訂結果列表 | OrderResult |
OrderResult
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| errorMessage | String | 錯誤信息 | "" | - |
| submitted | Boolean | 當前單個資源是否下續訂單成功 | true | - |
| newOrderId | String | 當前資源續訂訂單的masterOrderId | 7f3766d6fd9c4aec8f807ab07c4b2d72 | - |
| newOrderNo | String | 當前資源續訂訂單的流水號 | 20221028161914843904 | - |
| totalPrice | Double | 續訂訂單的價格 | 542.0 | - |
請求示例
/v1/eop/renew-order
請求體body
{
? ?"cycleType":3,
? ?"cycleCount":1,
? ?"resourceIds":[
? ? ? ?"dc7af3591eff44dd800ea0cbce23d917"
? ]
}
響應示例
{
? ?"message": "SUCCESS",
? ?"returnObj": {
? ? ? ?"errorMessage": "",
? ? ? ?"submitted": true,
? ? ? ?"orderPlacedEvents": [
? ? ? ? ? {
? ? ? ? ? ? ? ?"errorMessage": "",
? ? ? ? ? ? ? ?"submitted": true,
? ? ? ? ? ? ? ?"newOrderId": "7f3766d6fd9c4aec8f807ab07c4b2d72",
? ? ? ? ? ? ? ?"newOrderNo": "20221028161914843904",
? ? ? ? ? ? ? ?"totalPrice": 542.0
? ? ? ? ? }
? ? ? ]
? },
? ?"statusCode": 800
}
錯誤碼
訪問ErrorCodes說明文檔查看更多錯誤碼。