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

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. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeRenewalPrice

The operation that you want to perform. Set the value to DescribeRenewalPrice.

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

BusinessInfo String No {“ActivityId":"000000000"}

The business information. This is an additional parameter.

CouponNo String No youhuiquan_promotion_option_id_for_blank

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

DBInstanceId String Yes dds-bp12c5b040dc****

The ID of the instance.

Response parameters

Parameter Type Example Description
Order Object

The list of orders.

Coupons Array of Coupon

Details about the coupons.

Coupon
Description String coupondemo

The description of the coupon.

IsSelected String true

Indicates whether the coupon was selected.

CouponNo String youhuiquan_promotion_option_id_for_blank

The coupon number.

Name String youhuiquan111

The name of the coupon.

OriginalAmount Float 1144.8

The original price of the order.

DiscountAmount Float 1144.8

The discount amount of the order.

RuleIds Array of String 11111111

The IDs of the matched rules.

TradeAmount Float 0

The actual price of the order.

Currency String USD

The type of the currency. Valid values:

  • USD: United States dollar
  • JPY: Japanese Yen
RequestId String EFD65226-08CC-4C4D-B6A4-CB3C382F67B0

The ID of the request.

SubOrders Array of SubOrder

The rules matching the coupons.

SubOrder
OriginalAmount Float 1144.8

The original price of the order.

DiscountAmount Float 1144.8

The discount amount of the order.

RuleIds Array of String null

The IDs of the matched rules.

TradeAmount Float 0

The actual price of the order.

InstanceId String dds-bp12c5b040dc****

The ID of the instance.

Rules Array of Rule

Details about the promotion rules.

Rule
RuleDescId Long 11111111

The ID of the rule.

Title String demo

The title of the rule.

Name String demoname

The name of the rule.

Examples

Sample requests

http(s)://mongodb.aliyuncs.com/?Action=DescribeRenewalPrice
&DBInstanceId=dds-bp12c5b040dc****
&<Common request parameters>
``

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeRenewalPriceResponse>
    <SubOrders>
        <SubOrder>
            <RuleIds>
                <RuleId>11111111</RuleId>
                <RuleId>11111111</RuleId>
                <RuleId>11111111</RuleId>
            </RuleIds>
            <OriginalAmount>1144.8</OriginalAmount>
            <TradeAmount>0</TradeAmount>
            <InstanceId>dds-bp12c5b040dc****</InstanceId>
            <DiscountAmount>1144.8</DiscountAmount>
        </SubOrder>
    </SubOrders>
    <RequestId>C45C9E98-289B-42F4-84C8-03FD5E29B3EB</RequestId>
    <Order>
        <RuleIds>
            <RuleId>11111111</RuleId>
        </RuleIds>
        <OriginalAmount>1144.8</OriginalAmount>
        <TradeAmount>0</TradeAmount>
        <Coupons>
        </Coupons>
        <DiscountAmount>1144.8</DiscountAmount>
        <Currency>USD</Currency>
    </Order>
    <Rules>
        <Rule>
            <Name>demo</Name>
            <RuleDescId>11111111</RuleDescId>
        </Rule>
    </Rules>
</DescribeRenewalPriceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "SubOrders" : {
    "SubOrder" : [ {
      "RuleIds" : {
        "RuleId" : [ 11111111, 11111111, 11111111 ]
      },
      "OriginalAmount" : 1144.8,
      "TradeAmount" : 0,
      "InstanceId" : "dds-bp12c5b040dc****",
      "DiscountAmount" : 1144.8
    } ]
  },
  "RequestId" : "C45C9E98-289B-42F4-84C8-03FD5E29B3EB",
  "Order" : {
    "RuleIds" : {
      "RuleId" : [ 11111111 ]
    },
    "OriginalAmount" : 1144.8,
    "TradeAmount" : 0,
    "Coupons" : {
      "Coupon" : [ ]
    },
    "DiscountAmount" : 1144.8,
    "Currency" : "USD"
  },
  "Rules" : {
    "Rule" : [ {
      "Name" : "demo",
      "RuleDescId" : 11111111
    } ]
  }
}

Error codes

For a list of error codes, visit the API Error Center.