All Products
Search
Document Center

ApsaraDB for MongoDB:DescribePrice

Last Updated:Oct 19, 2026

Queries pricing information.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dds:DescribePrice

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID. You can call the DescribeRegions operation to query the region ID.

cn-hangzhou

OrderType

string

Yes

The order type. Valid values:

  • BUY: Create an instance.

  • UPGRADE: Upgrade instance configurations.

  • RENEW: Renew an instance.

Valid values:

  • BUY :

    Create an instance.

  • UPGRADE :

    Upgrade configurations.

  • RENEW :

    Renew an instance.

BUY

DBInstances

string

Yes

The JSON-formatted string that contains multiple pieces of information about instances. For metric descriptions and more JSON format examples, see DBInstances metric description for the DescribePrice operation.

[ { "DBInstanceId":"dds-bp1b6e54e7cc****", "RegionId":"cn-hangzhou", "ZoneId":"cn-hangzhou-h", "Engine":"MongoDB", "EngineVersion":" 5.0", "DBInstanceClass":"mdb.shard.2x.xlarge.d", "DBInstanceStorage":30, "ChargeType":"PrePaid", "Period":1, "StorageType":"cloud_essd1" } ]

CommodityCode

string

No

The commodity code. Valid values:

  • dds: pay-as-you-go replica set instance

  • badds: subscription replica set instance

  • dds_sharding: pay-as-you-go sharded cluster instance

  • badds_sharding: subscription sharded cluster instance

  • badds_sharding_intl: subscription sharded cluster instance on the international site

  • dds_sharding_intl: pay-as-you-go sharded cluster instance on the international site

  • badds_sharding_jp: subscription sharded cluster instance on the Japan site

  • badds_intl: subscription replica set instance on the international site

  • dds_intl: pay-as-you-go replica set instance on the international site

badds

ProductCode

string

No

The product code. Default value: dds.

dds

BusinessInfo

string

No

The additional parameter for business information.

{"AccountPassword":"Pw123456","DBInstanceDescription":"test"}

CouponNo

string

No

Specifies whether to use a coupon. Valid values:

  • default or null (default): Use a coupon.

  • youhuiquan_promotion_option_id_for_blank: Do not use a coupon.

default

OrderParamOut

string

No

Specifies whether to return order parameters. Valid values:

  • false (default): Do not return order parameters.

  • true: Return order parameters.

Valid values:

  • false :

    Do not return order parameters.

  • true :

    Return order parameters.

true

ResourceGroupId

string

No

The resource group ID. For more information about resource groups, see View the basic information of a resource group.

rg-acfmyiu4ekp****

Response elements

Element

Type

Description

Example

object

The order information list.

Order

object

The order information list.

Coupons

object

Coupon

array<object>

The coupon information list.

array<object>

The order coupon information.

Description

string

The remarks.

ceshi

IsSelected

string

Indicates whether the coupon is selected. Valid values:

  • true: The coupon is selected.

  • false: The coupon is not selected.

true

CouponNo

string

The coupon code.

youhuiquan_promotion_option_id_for_blank

Name

string

The coupon name.

youhuiquan111

PromotionRuleIdList

object

PromotionRuleId

array

The list of rule IDs corresponding to the coupon.

integer

The rule ID corresponding to the coupon.

18772041****

PromotionOptionCode

string

The promotion option code.

youhui_quan

OptionCode

string

The coupon option code.

youhui_quan

ActivityCategory

string

The activity type of the coupon. Valid values:

  • payondemand: Subscription.

  • payasyougo: Pay-as-you-go.

payondemand

Effective

boolean

Indicates whether the coupon is valid.

true

ActivityExtInfo

object

The additional information about the coupon.

OriginalAmount

string

The original price of the order.

322.4

DiscountAmount

string

The discount amount of the order.

322.4

RuleIds

object

RuleId

array

The order rule information.

string

The list of activity rule IDs.

{ "RuleId": [ 2075**** ] }

TradeAmount

string

The actual transaction price of the order.

0

Currency

string

The currency.

USD

ShowDiscountInfo

boolean

Indicates whether the discount information is displayed.

true

OptionalPromotions

string

The list of promotion information.

"[{\"activityCategory\":\"discount\",\"activityExtInfo\":{\"noUseYouhuiquan\":\"true\",\"activityId\":\"191156098xxxx\",\"activityExtraAttr\":\"{\\\"forbiddenCpsProfit\\\":\\\"true\\\",\\\"forbiddenCouponsRestricted\\\":\\\"true\\\",\\\"forbiddenAmbassadorProfit\\\":\\\"true\\\"}\",\"isActivityIdFromWanHuaTong\":\"true\",\"isContractActivity\":\"false\"},\"canPromFee\":906130,\"optionCode\":\"wanhua_activity\",\"promotionName\":\"FY24--MongoDB replica set--first purchase--1-year * discount--ft first purchase benefit\",\"promotionOptionNo\":\"19115609882xxxx\",\"promotionRuleIdList\":[2091xxxx],\"selected\":true,\"targetArticleItemCodes\":[]},{\"activityCategory\":\"discount\",\"activityExtInfo\":{\"activityId\":\"1018040010xxxxx\",\"wanHuaOrderExpireSec\":\"604800\",\"isActivityIdFromWanHuaTong\":\"true\",\"isContractActivity\":\"false\"},\"canPromFee\":339799,\"optionCode\":\"wanhua_activity\",\"promotionName\":\"FY24--MongoDB annual discount\",\"promotionOptionNo\":\"10180400107xxxxx\",\"promotionRuleIdList\":[xxxxx],\"selected\":false,\"targetArticleItemCodes\":[]}]"

PromDetailList

string

The matched promotions.

[{\"finalPromFee\":90xxx,\"optionCode\":\"wanhua_activity\",\"promType\":\"discount\",\"promotionId\":2091xxxx,\"promotionName\":\"New users purchasing ApsaraDB for MongoDB replica set for 1 year enjoy * discount, limited to 1 instance\"}]"

DepreciateInfo

object

The price reduction information.

ListPrice

number

The list price.

1*

OriginalStandAmount

number

The original total price on the official website.

12*

CheapStandAmount

number

The total price on the official website after the price reduction.

9*

CheapRate

number

The price reduction ratio.

30%

Differential

number

The price difference discount (displayed in the total order price).

**

DifferentialName

string

The name of the price difference discount.

XXXXX

MonthPrice

number

The equivalent monthly price.

**

IsContractActivity

boolean

Indicates whether a contract discount is applied.

false

IsShow

string

Indicates whether the price reduction margin is displayed.

true

ContractActivity

object

The contract discount.

FinalPromFee

number

The total discount amount.

3621.6

FinalFee

number

The price after discount.

20522.4

ProdFee

number

The original price.

24144.0

ActivityId

integer

The activity ID.

41120065996xxxxx

OptionCode

string

The promotion ID.

wanhua_activity

ActivityName

string

The activity name.

Contract discount_entire order_xxx% off

OptionIds

object

OptionId

array

The list of promotion IDs.

integer

The promotion ID.

200000614xxxx

StandDiscountPrice

number

The discounted price.

0

StandPrice

number

The standard discounted price.

0

ContractActivity

boolean

Indicates whether a contract discount is applied.

false

Code

string

The order code.

""

Message

string

The order message.

""

IsContractActivity

boolean

Indicates whether a contract discount is applied.

false

TotalCostAmount

number

The aggregated price of the order.

483.14

RequestId

string

The request ID.

27227A3D-6B86-56F3-9E03-9E60F001CE12

SubOrders

object

SubOrder

array<object>

The list of rules corresponding to the coupon.

array<object>

The coupon rule information.

OriginalAmount

string

The original price of the order.

322.4

DiscountAmount

string

The discount amount of the order.

322.4

RuleIds

object

RuleId

array

The list of activity rules.

string

The list of activity rule IDs.

{ "RuleId": [ 2075**** ] }

TradeAmount

string

The actual transaction price of the order.

0

InstanceId

string

The instance ID.

dds-bp1b6e54e7cc****

DepreciateInfo

object

The price reduction information.

ListPrice

number

The list price.

1*

OriginalStandAmount

number

The original total price on the official website.

12*

CheapStandAmount

number

The total price on the official website after the price reduction.

9*

CheapRate

number

The price reduction ratio.

30%

Differential

number

The price difference discount (displayed in the total order price).

**

DifferentialName

string

The name of the price difference discount.

XXXXX

MonthPrice

number

The equivalent monthly price.

**

IsContractActivity

boolean

Indicates whether a contract discount is applied.

false

IsShow

string

Indicates whether the price reduction margin is displayed.

true

ContractActivity

object

The activity information.

FinalPromFee

number

The total discount amount.

3621.6

FinalFee

number

The price after discount.

20522.4

ProdFee

number

The original price.

24144.0

ActivityId

integer

The activity ID.

41120065996xxxxx

OptionCode

string

The promotion ID.

wanhua_activity

ActivityName

string

The activity name.

Contract discount_entire order_xxx% off

OptionIds

object

OptionId

array

The list of discount IDs.

integer

The promotion ID.

2388xxxx

StartTime

string

The start time of the promotion, in the YYYY-MM-DD HH:mm:ss format.

2024-02-29 10:30:00

IsNewOfficialActivity

string

Indicates whether the price reduction discount is applied.

The price reduction discount is applied

ModuleInstance

object

ModuleInstance

array<object>

The instance configuration of the order line.

array<object>

The child object of the instance configuration for the order line.

CycleFee

string

The cycle fee of the module.

0.0

PromDetailList

object

PromDetail

array<object>

The discount details.

array<object>

The discount information.

FinalPromFee

number

The discount amount.

0.0

ActivityExtInfo

object

The additional information of the discount details.

{ "activityId": "1512010241743170" }

OptionCode

string

The commodity code of the coupon.

wanhua_activity

PromType

string

The discount subtype.

discount

PromotionId

integer

The promotion ID.

8105187xxxx

PromotionName

string

The promotion name.

[xxxx-x Month Price Reduction Project] MongoDB all specifications--xxxxx

PromotionCode

string

The promotion code.

aliwood-xxx

DerivedPromType

string

The discount subtype.

subPrice

DepreciateInfo

object

The activity information.

ListPrice

number

The list price.

1*

OriginalStandAmount

number

The original total price on the official website.

12*

CheapStandAmount

number

The total price on the official website after the price reduction.

9*

CheapRate

number

The price reduction ratio.

30%

Differential

number

The price difference discount (displayed in the total order price).

**

DifferentialName

string

The name of the price difference discount.

XXXXX

MonthPrice

number

The equivalent monthly price.

**

IsContractActivity

boolean

Indicates whether a contract discount is applied.

false

IsShow

string

Indicates whether the price reduction margin is displayed.

true

DiscountFee

string

The discount fee.

0.0

ModuleAttrs

object

moduleAttr

array<object>

The module attributes.

object

The subscription parameters.

Code

string

The attribute code.

dds_dbtype

Name

string

The attribute name.

MongoDB

Type

string

The attribute type.

3

Value

string

The attribute value.

MongoDB

ModuleCode

string

The module code.

dds_dbtype

ModuleId

integer

The module ID.

1017110000415xxx

ModuleName

string

The module name.

Database type

NeedOrderPay

boolean

Indicates whether payment is required in the order.

true

PayFee

number

The actual paid amount.

0.0

PricingModule

boolean

Indicates whether the item is a billable item.

false

StandPrice

number

The standard discounted price.

0

TotalProductFee

number

The original price of the product.

0.0

ContractActivity

boolean

Indicates whether a contract discount is applied.

false

StandDiscountPrice

number

The discount price.

451.00

priceUnit

string

The price unit.

xxxx

priceType

string

The price type.

monthPrice

UnitPriceUnit4Buy

string

The price unit.

USD/Hour

ContractActivity

boolean

Indicates whether a contract discount is applied.

false

OptionalPromotions

object

OptionalPromotion

array<object>

The list of available discount options.

array<object>

ActivityCategory

string

The promotion type.

discount

ActivityExtInfo

object

The additional information of the promotion.

{ "activityId": "1512010241743170" }

CanPromFee

number

The discountable amount.

4560789

OptionCode

string

The discount type.

wanhua_activity

PromotionName

string

The promotion name.

[xxx Month Price Reduction Project] MongoDB all specifications--xxx

PromotionOptionNo

string

The promotion option number.

1512010241xxxxx

Selected

boolean

Indicates whether the option is selected externally.

false

Show

boolean

Indicates whether the discount is displayed.

true

TargetArticleItemCodes

object

targetArticleItemCode

array

The list of target commodity specification codes.

string

The target commodity specification code.

""

PromotionRuleIdList

object

promotionRuleId

array

The list of promotion IDs.

string

The promotion ID.

43289909

PromDetailList

object

PromDetail

array<object>

The discount details.

array<object>

The discount information.

FinalPromFee

number

The discount amount.

0.0

ActivityExtInfo

object

The additional information of the promotion.

{ "activityId": "1512010241743170" }

OptionCode

string

The coupon option code.

youhui_quan

PromType

string

The discount subtype.

discount

PromotionId

integer

The promotion ID.

233xxxxx

PromotionName

string

The promotion name.

[xxxx-x Month Price Reduction Project] MongoDB all specifications--xxxxx

PromotionCode

string

The promotion code.

ali-wood

DerivedPromType

string

The discount subtype.

subPrice

StandDiscountPrice

number

The standard discounted price.

8687

StandPrice

number

The standard discounted price.

62982

IsContractActivity

boolean

Indicates whether a contract discount is applied.

false

TraceId

string

The trace ID.

27227A3D-6B87-56F3-9E03-9E60F001****

OrderParams

string

The order parameters.

Note

This parameter is returned only when the OrderParamOut parameter is set to true.

{\"autoPay\":false}"

Rules

object

Rule

array<object>

The list of activity rules.

object

The activity rule information.

RuleDescId

integer

The policy ID.

2075****

Title

string

The rule title.

demo

Name

string

The rule name.

demoname

Examples

Success response

JSON format

{
  "Order": {
    "Coupons": {
      "Coupon": [
        {
          "Description": "ceshi",
          "IsSelected": "true",
          "CouponNo": "youhuiquan_promotion_option_id_for_blank",
          "Name": "youhuiquan111",
          "PromotionRuleIdList": {
            "PromotionRuleId": [
              0
            ]
          },
          "PromotionOptionCode": "youhui_quan",
          "OptionCode": "youhui_quan",
          "ActivityCategory": "payondemand",
          "Effective": true,
          "ActivityExtInfo": {
            "test": "test",
            "test2": 1
          }
        }
      ]
    },
    "OriginalAmount": "322.4",
    "DiscountAmount": "322.4",
    "RuleIds": {
      "RuleId": [
        "{ \"RuleId\": [ 2075**** ] }"
      ]
    },
    "TradeAmount": "0",
    "Currency": "USD",
    "ShowDiscountInfo": true,
    "OptionalPromotions": "\"[{\\\"activityCategory\\\":\\\"discount\\\",\\\"activityExtInfo\\\":{\\\"noUseYouhuiquan\\\":\\\"true\\\",\\\"activityId\\\":\\\"191156098xxxx\\\",\\\"activityExtraAttr\\\":\\\"{\\\\\\\"forbiddenCpsProfit\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"forbiddenCouponsRestricted\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"forbiddenAmbassadorProfit\\\\\\\":\\\\\\\"true\\\\\\\"}\\\",\\\"isActivityIdFromWanHuaTong\\\":\\\"true\\\",\\\"isContractActivity\\\":\\\"false\\\"},\\\"canPromFee\\\":906130,\\\"optionCode\\\":\\\"wanhua_activity\\\",\\\"promotionName\\\":\\\"FY24--MongoDB 副本集--首购--1年*折--ft首购权益\\\",\\\"promotionOptionNo\\\":\\\"19115609882xxxx\\\",\\\"promotionRuleIdList\\\":[2091xxxx],\\\"selected\\\":true,\\\"targetArticleItemCodes\\\":[]},{\\\"activityCategory\\\":\\\"discount\\\",\\\"activityExtInfo\\\":{\\\"activityId\\\":\\\"1018040010xxxxx\\\",\\\"wanHuaOrderExpireSec\\\":\\\"604800\\\",\\\"isActivityIdFromWanHuaTong\\\":\\\"true\\\",\\\"isContractActivity\\\":\\\"false\\\"},\\\"canPromFee\\\":339799,\\\"optionCode\\\":\\\"wanhua_activity\\\",\\\"promotionName\\\":\\\"FY24--MongoDB年付折扣\\\",\\\"promotionOptionNo\\\":\\\"10180400107xxxxx\\\",\\\"promotionRuleIdList\\\":[xxxxx],\\\"selected\\\":false,\\\"targetArticleItemCodes\\\":[]}]\"",
    "PromDetailList": "[{\\\"finalPromFee\\\":90xxx,\\\"optionCode\\\":\\\"wanhua_activity\\\",\\\"promType\\\":\\\"discount\\\",\\\"promotionId\\\":2091xxxx,\\\"promotionName\\\":\\\"New users who purchase ApsaraDB for MongoDB replica set instances for 1 year enjoy a * discount, limited to 1 instance\\\"}]\"",
    "DepreciateInfo": {
      "ListPrice": 0,
      "OriginalStandAmount": 0,
      "CheapStandAmount": 0,
      "CheapRate": 0,
      "Differential": 0,
      "DifferentialName": "XXXXX",
      "MonthPrice": 0,
      "IsContractActivity": false,
      "IsShow": "true",
      "ContractActivity": {
        "FinalPromFee": 3621.6,
        "FinalFee": 20522.4,
        "ProdFee": 24144,
        "ActivityId": 0,
        "OptionCode": "wanhua_activity",
        "ActivityName": "合同优惠_整单_xxx折",
        "OptionIds": {
          "OptionId": [
            0
          ]
        }
      }
    },
    "StandDiscountPrice": 0,
    "StandPrice": 0,
    "ContractActivity": false,
    "Code": "\"\"",
    "Message": "\"\"",
    "IsContractActivity": false,
    "TotalCostAmount": 483.14
  },
  "RequestId": "27227A3D-6B86-56F3-9E03-9E60F001CE12",
  "SubOrders": {
    "SubOrder": [
      {
        "OriginalAmount": "322.4",
        "DiscountAmount": "322.4",
        "RuleIds": {
          "RuleId": [
            "{ \"RuleId\": [ 2075**** ] }"
          ]
        },
        "TradeAmount": "0",
        "InstanceId": "dds-bp1b6e54e7cc****",
        "DepreciateInfo": {
          "ListPrice": 0,
          "OriginalStandAmount": 0,
          "CheapStandAmount": 0,
          "CheapRate": 0,
          "Differential": 0,
          "DifferentialName": "XXXXX",
          "MonthPrice": 0,
          "IsContractActivity": false,
          "IsShow": "true",
          "ContractActivity": {
            "FinalPromFee": 3621.6,
            "FinalFee": 20522.4,
            "ProdFee": 24144,
            "ActivityId": 0,
            "OptionCode": "wanhua_activity",
            "ActivityName": "合同优惠_整单_xxx折",
            "OptionIds": {
              "OptionId": [
                0
              ]
            }
          },
          "StartTime": "2024-02-29 10:30:00"
        },
        "IsNewOfficialActivity": "Hits a price reduction promotion",
        "ModuleInstance": {
          "ModuleInstance": [
            {
              "CycleFee": "0.0",
              "PromDetailList": {
                "PromDetail": [
                  {
                    "FinalPromFee": 0,
                    "ActivityExtInfo": {
                      "activityId": "1512010241743170"
                    },
                    "OptionCode": "wanhua_activity",
                    "PromType": "discount",
                    "PromotionId": 0,
                    "PromotionName": "【xxxx-x月降价项目】MongoDB全规格--xxxxx",
                    "PromotionCode": "aliwood-xxx",
                    "DerivedPromType": "subPrice"
                  }
                ]
              },
              "DepreciateInfo": {
                "ListPrice": 0,
                "OriginalStandAmount": 0,
                "CheapStandAmount": 0,
                "CheapRate": 0,
                "Differential": 0,
                "DifferentialName": "XXXXX",
                "MonthPrice": 0,
                "IsContractActivity": false,
                "IsShow": "true"
              },
              "DiscountFee": "0.0",
              "ModuleAttrs": {
                "moduleAttr": [
                  {
                    "Code": "dds_dbtype",
                    "Name": "MongoDB",
                    "Type": "3",
                    "Value": "MongoDB"
                  }
                ]
              },
              "ModuleCode": "dds_dbtype",
              "ModuleId": 0,
              "ModuleName": "Database type",
              "NeedOrderPay": true,
              "PayFee": 0,
              "PricingModule": false,
              "StandPrice": 0,
              "TotalProductFee": 0,
              "ContractActivity": false,
              "StandDiscountPrice": 451,
              "priceUnit": "xxxx",
              "priceType": "monthPrice",
              "UnitPriceUnit4Buy": "USD/Hour"
            }
          ]
        },
        "ContractActivity": false,
        "OptionalPromotions": {
          "OptionalPromotion": [
            {
              "ActivityCategory": "discount",
              "ActivityExtInfo": {
                "activityId": "1512010241743170"
              },
              "CanPromFee": 4560789,
              "OptionCode": "wanhua_activity",
              "PromotionName": "【xxx月降价项目】MongoDB全规格--xxx",
              "PromotionOptionNo": "1512010241xxxxx",
              "Selected": false,
              "Show": true,
              "TargetArticleItemCodes": {
                "targetArticleItemCode": [
                  "\"\""
                ]
              },
              "PromotionRuleIdList": {
                "promotionRuleId": [
                  "43289909"
                ]
              }
            }
          ]
        },
        "PromDetailList": {
          "PromDetail": [
            {
              "FinalPromFee": 0,
              "ActivityExtInfo": {
                "activityId": "1512010241743170"
              },
              "OptionCode": "youhui_quan",
              "PromType": "discount",
              "PromotionId": 0,
              "PromotionName": "【xxxx-x月降价项目】MongoDB全规格--xxxxx",
              "PromotionCode": "ali-wood",
              "DerivedPromType": "subPrice"
            }
          ]
        },
        "StandDiscountPrice": 8687,
        "StandPrice": 62982,
        "IsContractActivity": false
      }
    ]
  },
  "TraceId": "27227A3D-6B87-56F3-9E03-9E60F001****",
  "OrderParams": "{\\\"autoPay\\\":false}\"",
  "Rules": {
    "Rule": [
      {
        "RuleDescId": 0,
        "Title": "demo",
        "Name": "demoname"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 MissingParameter Period is mandatory for this action.
400 InvalidParam Specified parameter Period is not valid.
400 OriginPriceError Origin price error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.