QueryConvertPrepayInstancePrice
Queries the estimated refund amount after your Flink instance is switched from subscription to pay-as-you-go. After the switch, your usage is metered hourly and billed accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
stream:QueryConvertVvpPrepayInstancePrice |
get |
*VvpInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The region. |
cn-beijing |
| InstanceId |
string |
Yes |
The order instance ID. |
f-cn-wwo36qj4**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information. |
||
| RequestId |
string |
The request ID. |
67F33190-946B-1105-B6A1-E2DF0426**** |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| PriceInfo |
object |
The price information, including the price and discount rules. |
|
| Currency |
string |
The currency unit. |
CNY |
| DiscountAmount |
number |
The discount amount. |
655.2 |
| OriginalAmount |
number |
The original price. |
4368 |
| TradeAmount |
number |
The final price, which is the original price minus the discount. |
3712.8 |
| Code |
string |
The error code. |
ORDER.INST_HAS_UNPAID_ORDER |
| Message |
string |
The error message. |
An unpaid order exists. Pay for or cancel the existing order first |
| OptionalPromotions |
array<object> |
The coupon group information. |
|
|
object |
The coupon information. |
||
| PromotionName |
string |
The coupon name. |
¥1,391.5 coupon |
| PromotionDesc |
string |
The coupon description. |
¥1,391.5 coupon (valid until 03/23/2022) |
| PromotionOptionNo |
string |
The coupon number. |
500011220*** |
| Selected |
boolean |
Indicates whether the coupon is selected. Valid values:
|
true |
| Rules |
array<object> |
The promotion rules. |
|
|
object |
The promotion rule. |
||
| Description |
string |
The promotion rule description. |
Purchase for 1 year or more and enjoy a 15% discount off the list price |
| RuleId |
integer |
The promotion ID. |
587 |
| StandPrice |
string |
The list discount price or direct sales contract discount price. |
32432 |
| StandDiscountPrice |
string |
The discounted price based on the list discount. |
21321 |
| IsContractActivity |
boolean |
Indicates whether an enterprise discount is applied. |
true |
| DepreciateInfo |
object |
The price reduction information. |
|
| OriginalStandAmount |
string |
The original list price total. |
10000 |
| CheapStandAmount |
string |
The list price total after the price reduction. |
8000 |
| CheapRate |
string |
The price reduction ratio. |
20% |
| MonthPrice |
string |
The equivalent monthly price. |
4000 |
| StartTime |
string |
The price reduction start time in ISO 8601 format. |
2023-03-31T16:00:00Z |
| IsShow |
boolean |
Indicates whether the price reduction is displayed. |
true |
| LxRequestId |
string |
The Lingxiao request ID. |
67F33190-946B-1105-B6A1-E2DF0426DD51 |
Examples
Success response
JSON format
{
"RequestId": "67F33190-946B-1105-B6A1-E2DF0426****",
"Success": true,
"PriceInfo": {
"Currency": "CNY",
"DiscountAmount": 655.2,
"OriginalAmount": 4368,
"TradeAmount": 3712.8,
"Code": "ORDER.INST_HAS_UNPAID_ORDER",
"Message": "An unpaid order exists. Pay for or cancel the existing order first",
"OptionalPromotions": [
{
"PromotionName": "¥1,391.5 coupon",
"PromotionDesc": "¥1,391.5 coupon (valid until 03/23/2022)",
"PromotionOptionNo": "500011220***",
"Selected": true
}
],
"Rules": [
{
"Description": "Purchase for 1 year or more and enjoy a 15% discount off the list price",
"RuleId": 587
}
],
"StandPrice": "32432",
"StandDiscountPrice": "21321",
"IsContractActivity": true,
"DepreciateInfo": {
"OriginalStandAmount": "10000",
"CheapStandAmount": "8000",
"CheapRate": "20%",
"MonthPrice": "4000",
"StartTime": "2023-03-31T16:00:00Z",
"IsShow": true
},
"LxRequestId": "67F33190-946B-1105-B6A1-E2DF0426DD51"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.