Consulte la différence de prix pour une modification de spécification de forfait en appelant DescribeRatePlanPriceGap.
Description de l'opération
Le nom du forfait et le code du forfait peuvent être obtenus à partir de l'opération DescribeRatePlanPrice.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
esa:DescribeRatePlanPriceGap |
create |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| InstanceId |
string |
Non |
Le nom du forfait cible. Vous pouvez obtenir cette valeur à partir de l'opération DescribeRatePlanPrice. |
entranceplan |
| TargetPlanCode |
string |
Non |
Le code du forfait cible pour la modification de spécification. |
standardplan |
| OrderType |
string |
Non |
Le type de modification de spécification. Valeurs valides :
Valeurs valides :
|
UPGRADE |
| TargetPlanName |
string |
Non |
Le nom du forfait cible pour la modification de spécification. |
entranceplan |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
La structure de la réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
40423A7F-A83D-1E24-B80E-86DD25790759 |
| PriceModel |
object |
Les informations de prix. |
|
| Rule |
object |
||
| RuleList |
array<object> |
The rule hits. |
|
|
object |
|||
| Name |
string |
The policy name. |
Policy A |
| RuleDescId |
integer |
The policy ID. |
1 |
| InstanceId |
string |
L'identifiant de l'instance. |
xcdn-91fknmb80f0g |
| TargetPlanCode |
string |
Le code du forfait cible. |
entranceplan |
| Price |
number |
Le prix final de la commande, qui correspond au prix de transaction réel. |
1 |
| Currency |
string |
La devise. Valeurs valides :
|
CNY |
| TotalPrice |
number |
Le prix initial de la commande. Prix initial de la commande = prix de transaction réel + montant de la remise. |
2 |
| DiscountPrice |
number |
Le montant de la remise de la commande. |
1 |
Exemples
JSON format
{
"RequestId": "40423A7F-A83D-1E24-B80E-86DD25790759",
"PriceModel": {
"Rule": {
"RuleList": [
{
"Name": "Policy A",
"RuleDescId": 1
}
]
},
"InstanceId": "xcdn-91fknmb80f0g",
"TargetPlanCode": "entranceplan",
"Price": 1,
"Currency": "CNY",
"TotalPrice": 2,
"DiscountPrice": 1
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InternalError | An internal exception occurred, please try again later. | An inner exception was triggered. Please try again later. |
| 400 | CheckPlanFailed | Invalid plan name or code. Check and try again. | Invalid plan name or code. Check and try again. |
| 400 | InvalidSiteICP | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. | The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again. |
| 400 | InvalidSiteName | Invalid website name. Check and try again. | Invalid website name. Check and try again. |
| 400 | SYSTEM.NoSpecificCodeFailed | Invalid subscription duration. Check and try again. | Invalid subscription duration. Check and try again. |
| 400 | InvalidInstance | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. | The instance ID is missing or invalid. Make sure that the instance ID is valid and try again. |
| 400 | InvalidComponent | The order parameters is invalid. | The order parameters is invalid. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.