All Products
Search
Document Center

ApsaraDB for MongoDB:DescribeRenewalPrice

Last Updated:Mar 15, 2024

Queries the monthly renewal price of an ApsaraDB for MongoDB instance.

Operation description

This operation is applicable to subscription instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
BusinessInfostringNo

The business information. This is an additional parameter.

{“ActivityId":"000000000"}
CouponNostringNo

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

youhuiquan_promotion_option_id_for_blank
DBInstanceIdstringYes

The ID of the instance.

dds-bp12c5b040dc****

Response parameters

ParameterTypeDescriptionExample
object
Orderobject

The list of orders.

Couponsobject []

Details about the coupons.

Descriptionstring

The description of the coupon.

coupondemo
IsSelectedstring

Indicates whether the coupon was selected.

true
CouponNostring

The coupon number.

youhuiquan_promotion_option_id_for_blank
Namestring

The name of the coupon.

youhuiquan111
OriginalAmountfloat

The original price of the order.

1144.8
DiscountAmountfloat

The discount amount of the order.

1144.8
RuleIdsarray

The IDs of the matched rules.

string

The ID of the matched rule.

11111111
TradeAmountfloat

The actual price of the order.

0
Currencystring

The type of the currency. Valid values:

  • USD: United States dollar
  • JPY: Japanese Yen
USD
RequestIdstring

The ID of the request.

EFD65226-08CC-4C4D-B6A4-CB3C382F67B0
SubOrdersobject []

The rules matching the coupons.

OriginalAmountfloat

The original price of the order.

1144.8
DiscountAmountfloat

The discount amount of the order.

1144.8
RuleIdsarray

The IDs of the matched rules.

string

The ID of the matched rule.

11111111
TradeAmountfloat

The actual price of the order.

0
InstanceIdstring

The ID of the instance.

dds-bp12c5b040dc****
Rulesobject []

Details about the promotion rules.

RuleDescIdlong

The ID of the rule.

11111111
Titlestring

The title of the rule.

demo
Namestring

The name of the rule.

demoname

Examples

Sample success responses

JSONformat

{
  "Order": {
    "Coupons": {
      "Coupon": [
        {
          "Description": "coupondemo",
          "IsSelected": "true",
          "CouponNo": "youhuiquan_promotion_option_id_for_blank",
          "Name": "youhuiquan111"
        }
      ]
    },
    "OriginalAmount": 1144.8,
    "DiscountAmount": 1144.8,
    "RuleIds": {
      "RuleId": [
        "11111111"
      ]
    },
    "TradeAmount": 0,
    "Currency": "USD"
  },
  "RequestId": "EFD65226-08CC-4C4D-B6A4-CB3C382F67B0",
  "SubOrders": {
    "SubOrder": [
      {
        "OriginalAmount": 1144.8,
        "DiscountAmount": 1144.8,
        "RuleIds": {
          "RuleId": [
            "11111111"
          ]
        },
        "TradeAmount": 0,
        "InstanceId": "dds-bp12c5b040dc****"
      }
    ]
  },
  "Rules": {
    "Rule": [
      {
        "RuleDescId": 11111111,
        "Title": "demo",
        "Name": "demoname"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError message
400MissingParameterDBInstanceId is mandatory for this action.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-19The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400