DescribePrice

Updated at:

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: creates an instance.

  • UPGRADE: modifies the configurations.

  • RENEW: renews an instance.

Valid values:

  • DOWNGRADE :

    Downgrades configurations.

  • BUY :

    Creates an instance.

  • UPGRADE :

    Upgrades configurations.

  • RENEW :

    Renews an instance.

BUY

DBInstances

string

Yes

The JSON-formatted string that contains multiple pieces of information about the instance. 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): uses a coupon.

  • youhuiquan_promotion_option_id_for_blank: does not use a coupon.

default

OrderParamOut

string

No

Specifies whether to return order parameters. Valid values:

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

  • true: returns order parameters.

Valid values:

  • false :

    Does not return order parameters.

  • true :

    Returns 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 list of order information.

Order

object

The order information.

Coupons

object

Coupon

array<object>

The list of coupon information.

array<object>

The order coupon information.

Description

string

The remarks.

ceshi

IsSelected

string

Specifies 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

Specifies whether the coupon is valid.

true

ActivityExtInfo

object

The additional information of 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

Specifies whether to display the discount information.

true

OptionalPromotions

string

The list of promotion activity 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 Privilege\",\"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 promotion activities.

[{\"finalPromFee\":90xxx,\"optionCode\":\"wanhua_activity\",\"promType\":\"discount\",\"promotionId\":2091xxxx,\"promotionName\":\"New users who purchase ApsaraDB for MongoDB Replica Set for 1 year enjoy a * 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 rate.

0.26

Differential

number

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

0

DifferentialName

string

The name of the price difference discount.

Sample discount

MonthPrice

number

The equivalent monthly price.

847.66

IsContractActivity

boolean

Specifies whether a contract discount is applied.

false

IsShow

string

Specifies whether to display the price reduction percentage.

true

ContractActivity

object

The contract discount.

FinalPromFee

number

The total discount amount.

3621.6

FinalFee

number

The discounted amount.

20522.4

ProdFee

number

The original price.

24144.0

ActivityId

integer

The activity ID.

41120065996xxxxx

OptionCode

string

The discount 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 discount ID.

200000614xxxx

StandDiscountPrice

number

The discounted price.

0

StandPrice

number

The discounted price.

0

ContractActivity

boolean

Specifies whether a contract discount is applied.

false

Code

string

The order code.

""

Message

string

The order information.

""

IsContractActivity

boolean

Specifies 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 rate.

0.26

Differential

number

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

**

DifferentialName

string

The name of the price difference discount.

Sample discount

MonthPrice

number

The equivalent monthly price.

847.66

IsContractActivity

boolean

Specifies whether a contract discount is applied.

false

IsShow

string

Specifies whether to display the price reduction percentage.

true

ContractActivity

object

The activity information.

FinalPromFee

number

The total discount amount.

3621.6

FinalFee

number

The discounted amount.

20522.4

ProdFee

number

The original price.

24144.0

ActivityId

integer

The activity ID.

41120065996xxxxx

OptionCode

string

The discount 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 discount 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 promotion is applied.

The price reduction promotion 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 promotion detail information.

array<object>

The promotion information.

FinalPromFee

number

The discount amount.

0.0

ActivityExtInfo

object

The additional information of the promotion details.

{ "activityId": "1512010241743170" }

OptionCode

string

The commodity code of the coupon.

wanhua_activity

PromType

string

The promotion 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 promotion 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 rate.

0.26

Differential

number

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

**

DifferentialName

string

The name of the price difference discount.

Sample discount

MonthPrice

number

The equivalent monthly price.

**

IsContractActivity

boolean

Specifies whether a contract discount is applied.

false

IsShow

string

Specifies whether to display the price reduction percentage.

true

DiscountFee

string

The discount amount.

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

Specifies whether payment is required in the order.

true

PayFee

number

The actual paid amount.

0.0

PricingModule

boolean

Specifies whether it is a billable item.

false

StandPrice

number

The discounted price.

0

TotalProductFee

number

The original price of the product.

0.0

ContractActivity

boolean

Specifies whether a contract discount is applied.

false

StandDiscountPrice

number

The discounted price.

451.00

priceUnit

string

The price unit.

CNY/unit

priceType

string

The price type.

monthPrice

UnitPriceUnit4Buy

string

The price unit.

USD/Hour

ContractActivity

boolean

Specifies whether a contract discount is applied.

false

OptionalPromotions

object

OptionalPromotion

array<object>

The list of available promotion 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 promotion 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

Specifies whether it is selected externally.

false

Show

boolean

Specifies whether the promotion 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 discount IDs.

string

The discount ID.

43289909

PromDetailList

object

PromDetail

array<object>

The promotion detail information.

array<object>

The promotion 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 promotion subtype.

discount

PromotionId

integer

The discount 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 promotion subtype.

subPrice

StandDiscountPrice

number

The discounted price.

8687

StandPrice

number

The discounted price.

62982

IsContractActivity

boolean

Specifies 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 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": "[{\\\"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": {
      "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": "Contract discount_entire order_xxx% off",
        "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": "Contract discount_entire order_xxx% off",
            "OptionIds": {
              "OptionId": [
                0
              ]
            }
          },
          "StartTime": "2024-02-29 10:30:00"
        },
        "IsNewOfficialActivity": "The price reduction discount is applied",
        "ModuleInstance": {
          "ModuleInstance": [
            {
              "CycleFee": "0.0",
              "PromDetailList": {
                "PromDetail": [
                  {
                    "FinalPromFee": 0,
                    "ActivityExtInfo": {
                      "activityId": "1512010241743170"
                    },
                    "OptionCode": "wanhua_activity",
                    "PromType": "discount",
                    "PromotionId": 0,
                    "PromotionName": "[xxxx-x Month Price Reduction Project] MongoDB all specifications--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 Month Price Reduction Project] MongoDB all specifications--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 Month Price Reduction Project] MongoDB all specifications--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.