VPN網關訂購詢價
更新時間 2023-12-28 15:00:14
最近更新時間: 2023-12-28 15:00:14
分享文章
支持按需/包年包月VPN網關訂購詢價。
接口功能介紹
支持按需/包年包月VPN網關訂購詢價。
接口約束
無
URI
POST /v4/vpn/gateway/query-price-new
路徑參數
無
Query參數
無
請求參數
請求頭header參數
無
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| regionID | 是 | String | 資源池ID, 例:100054c0416811e9a6690242ac110002 | ||
| bandwidth | 是 | Integer | 帶寬,單位為Mbps,最大值為1000 | ||
| connectionLimit | 是 | Integer | VPN網關連接數限制,最大值為100 | ||
| onDemand | 否 | Boolean | 是否按需下單,默認為false | ||
| cycleType | 是 | String | 本參數表示包周期類型。 取值范圍: YEAR MONTH onDemand為false時,必須指定。 |
||
| cycleCount | 是 | Integer | 包周期數。onDemand為false時必須指定。周期最大長度不能超過60個月 | ||
| count | 是 | Integer | 批量下單數量,最大值10 |
響應參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| statusCode | 否 | Integer | 返回狀態碼(800為成功,900為失敗) | ||
| message | 否 | String | 失敗時的錯誤描述,一般為英文描述 | ||
| description | 否 | String | 失敗時的錯誤描述,一般為中文描述 | ||
| returnObj | 否 | Object | 返回對象 | returnObj | |
| errorCode | 否 | String | 業務細分碼,為product.module.code三段式碼 |
表 returnObj
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| discountPrice | 否 | Float | 訂單折扣 | ||
| totalPrice | 否 | Float | 所有訂單總共價格 | ||
| finalPrice | 否 | Float | 所有訂單最終價格 | ||
| customPrice | 否 | Float | 訂單客戶價格 | ||
| originPrice | 否 | Float | 訂單原價格 | ||
| isSucceed | 否 | Boolean | 是否成功 | ||
| subOrderPrices | 否 | Array of Objects | 子訂單價格列表 | orderPrice |
表 0rderPrice
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| discountPrice | 否 | Float | 訂單折扣 | ||
| seq | 否 | String | 訂單序列 | ||
| originPrice | 否 | float | 訂單原有價格 | ||
| serviceTag | 否 | String | 產品標簽 | ||
| totalPrice | 否 | Float | 訂單總共價格 | ||
| finalPrice | 否 | Float | 訂單最終價格 | ||
| customPrice | 否 | Float | 訂單客戶價格 | ||
| cycleType | 否 | String | 訂單周期類型 | ||
| orderItemPrices | 否 | Array of Objects | 訂單資源價格列表 | orderItemPrice |
表 orderItemPrice
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| itemId | 否 | String | 訂單資源ID | ||
| customPrice | 否 | Float | 訂單客戶價格 | ||
| originPrice | 否 | Float | 訂單原價格 | ||
| discountPrice | 否 | Float | 訂單折扣 | ||
| resourceType | 否 | String | 本參數表示訂單資源類型。 取值范圍: VPN_GETWAY VPN_LINK |
||
| totalPrice | 否 | Float | 訂單資源總共價格 | ||
| finalPrice | 否 | Float | 訂單資源最終價格 |
請求示例
請求url
無
請求頭header
無
請求體body
可使用同clientToken重試下單,查詢訂單是否成功
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"bandwidth": 5,
"connectionLimit": 10,
"onDemand": false,
"cycleType": "MONTH",
"cycleCount": 3,
"count": 1
}
響應示例
{
"returnObj": {
"discountPrice": null,
"totalPrice": 1080.0,
"isSucceed": true,
"subOrderPrices": [{
"discountPrice": null,
"totalPrice": 1080.0,
"seq": null,
"serviceTag": "OVMS",
"orderItemPrices": [{
"itemId": "2c5969cab14a4015b9642f92812a2ce9",
"discountPrice": null,
"totalPrice": 300.0,
"resourceType": "VPN_GETWAY",
"finalPrice": 300.0,
"customPrice": null,
"originPrice": null}, {
"itemId": "710bbbefe5a741989c23ddf2f88845bd",
"discountPrice": null,
"totalPrice": 780.0,
"resourceType": "VPN_LINK",
"finalPrice": 780.0,
"customPrice": null,
"originPrice": null}],
"finalPrice": 1080.0,
"cycleType": null,
"customPrice": null,
"originPrice": null}],
"finalPrice": 1080.0,
"customPrice": null,
"originPrice": null},
"errorCode": "",
"message": "",
"description": "",
"statusCode": 800
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 800 | 表示請求成功 |
| 900 | 表示請求未成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| Openapi.PatternCheck.NotValid | 請求參數無效 |
| vpn.Order.AccessFailed | 查找銷售品價格計劃失敗 |
| Openapi.Parameter.Error | 請求參數錯誤 |
| vpn.orderPrice.countError | 批量下單數目錯誤 |