Queries pricing information about Global Accelerator (GA).

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 DescribeCommodityPrice

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

RegionId String Yes cn-hangzhou

The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou.

Orders.N.CommodityCode String No ga_gapluspre_public_cn

The commodity code.

Examples for the China site (aliyun.com):

  • ga_gapluspre_public_cn: GA instance.
  • ga_plusbwppre_public_cn: basic bandwidth plan.

Examples for the international site (alibabacloud.com):

  • ga_pluspre_public_intl: GA instance.
  • ga_bwppreintl_public_intl: basic bandwidth plan.
Orders.N.OrderType String No BUY

The type of the order. Valid values:

  • BUY: purchase
  • RENEW: renewal
  • UPGRADE: upgrade
Orders.N.ChargeType String No PREPAY

The billing method.

Set the value to PREPAY, which specifies the subscription billing method.

Orders.N.PricingCycle String No Month

The billing cycle. Valid values:

  • Month: billed on a monthly basis.
  • Year: billed on an annual basis.
Orders.N.Duration Long No 1

The subscription duration.

  • If the PricingCycle parameter is set to Month, the valid values for the Duration parameter are 1 to 9.
  • If the PricingCycle parameter is set to Year, the valid values for the Duration parameter are 1 to 3.
Orders.N.Quantity Long No 1

The number of instances that you want to purchase.

Orders.N.Components.N.ComponentCode String No instance

The code of the commodity module.

Information varies based on the commodity module.

Examples: instance (GA instance) and ord_time (subscription duration).

Orders.N.Components.N.Properties.N.Code String No instance

The code of the attribute.

Information varies based on the commodity module.

Examples: instance (GA instance) and ord_time (subscription duration).

Orders.N.Components.N.Properties.N.Value String No instance_fee

The value of the attribute.

Information varies based on the commodity module.

Examples: 1:Month (one-month subscription) and instance_fee (GA instance fee).

PromotionOptionNo String No 50003298014****

The coupon code.

Note This parameter is not available on the China site (aliyun.com).

Response parameters

Parameter Type Example Description
Currency String CNY

The currency unit.

  • China site: CNY.
  • International site: USD.
OriginalPrice double 2099

The original price.

DiscountPrice double 419.8

The discount.

TradePrice double 1679.2

The transaction price, which is equal to the original price minus the discount.

OrderDetails Array of orderDetails

The details of the pricing module.

CommodityCode String ga_gapluspre_public_cn

The commodity code.

CommodityName String Global Accelerator_Instance Type (Subscription)

The name of the commodity.

OriginalPrice double 2099

The original price.

DiscountPrice double 419.8

The discount.

TradePrice double 1679.2

The transaction price, which is equal to the original price minus the discount.

Quantity Long 1

The number of instances that you want to purchase.

ModuleDetails Array of moduleDetails

The information about the pricing module.

ModuleCode String spec

The code of the pricing module.

ModuleName String Specifications

The name of the pricing module.

OriginalPrice double 200000.0

The original price.

DiscountPrice double 40000.0

The discount.

TradePrice double 160000.0

The discounted price.

RuleIds Array of Long 102104100786****

The ID of the discount rule.

PromDetails Array of promDetails

The details about the discount.

Note This parameter is not available on the China site (aliyun.com).
PromotionId String 50003298014****

The ID of the discount item.

Note This parameter is not available on the China site (aliyun.com).
PromotionName String coupon

The name of the discount item.

Note This parameter is not available on the China site (aliyun.com).
FinalPromFee double 0.01

The discounted price.

Note This parameter is not available on the China site (aliyun.com).
PromType String deduct

The sub-type of the discount.

Note This parameter is not available on the China site (aliyun.com).
OptionCode String youhui_quan

The code of the discount option.

Note This parameter is not available on the China site (aliyun.com).
RuleDetails Array of ruleDetails

The details about the discount rule.

RuleId String 102104100786****

The ID of the discount rule.

RuleName String GA New Customer Small II Specification Monthly Subscription - 20% Discount

The name of the discount rule.

Promotions Array of promotionDetails

The list of coupons.

Note This parameter is not available on the China site (aliyun.com).
PromotionOptionNo String 50003298014****

The coupon code.

Note
  • youhuiquan_promotion_option_id_for_blank indicates coupons that do not apply.
  • This parameter is not available on the China site (aliyun.com).
PromotionName String youhuiquan_promotion_option_id_for_blank

The name of the coupon.

Note This parameter is not available on the China site (aliyun.com).
CanPromFee double 0

The discounted amount.

Note This parameter is not available on the China site (aliyun.com).
Selected Boolean false

Indicates whether an item is selected.

  • true: yes
  • false: no
Note This parameter is not available on the China site (aliyun.com).
OptionCode String youhui_quan

The code of the commodity to which the coupon applies.

Note This parameter is not available on the China site (aliyun.com).
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeCommodityPrice
&RegionId=cn-hangzhou
&Orders=[{"CommodityCode":"ga_gapluspre_public_cn","OrderType":"BUY","ChargeType":"PREPAY","PricingCycle":"Month","Duration":1,"Quantity":1,"Components":[{"ComponentCode":"instance","Properties":[{"Code":"instance","Value":"instance_fee"}]}]}]
&PromotionOptionNo=50003298014****
&Common request parameters

Sample success responses

XML format

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

<DescribeCommodityPriceResponse>
    <Currency>CNY</Currency>
    <OriginalPrice>2099</OriginalPrice>
    <DiscountPrice>419.8</DiscountPrice>
    <TradePrice>1679.2</TradePrice>
    <OrderDetails>
        <CommodityCode>ga_gapluspre_public_cn</CommodityCode>
        <CommodityName>Global Accelerator_Instance Type (Subscription)</CommodityName>
        <OriginalPrice>2099</OriginalPrice>
        <DiscountPrice>419.8</DiscountPrice>
        <TradePrice>1679.2</TradePrice>
        <Quantity>1</Quantity>
        <ModuleDetails>
            <ModuleCode>spec</ModuleCode>
            <ModuleName>Specifications </ModuleName>
            <OriginalPrice>200000</OriginalPrice>
            <DiscountPrice>40000</DiscountPrice>
            <TradePrice>160000</TradePrice>
        </ModuleDetails>
        <PromDetails>
            <PromotionId>50003298014****</PromotionId>
            <PromotionName>coupon</PromotionName>
            <FinalPromFee>0.01</FinalPromFee>
            <PromType>deduct</PromType>
            <OptionCode>youhui_quan</OptionCode>
        </PromDetails>
    </OrderDetails>
    <RuleDetails>
        <RuleId>102104100786****</RuleId>
        <RuleName>GA New Customer Small II Specification Monthly Subscription - 20% Discount</RuleName>
    </RuleDetails>
    <Promotions>
        <PromotionOptionNo>50003298014****</PromotionOptionNo>
        <PromotionName>youhuiquan_promotion_option_id_for_blank</PromotionName>
        <CanPromFee>0</CanPromFee>
        <Selected>false</Selected>
        <OptionCode>youhui_quan</OptionCode>
    </Promotions>
    <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</DescribeCommodityPriceResponse>

JSON format

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

{
  "Currency" : "CNY",
  "OriginalPrice" : 2099,
  "DiscountPrice" : 419.8,
  "TradePrice" : 1679.2,
  "OrderDetails" : [ {
    "CommodityCode" : "ga_gapluspre_public_cn",
    "CommodityName" : "Global Accelerator_Instance Type (Subscription)",
    "OriginalPrice" : 2099,
    "DiscountPrice" : 419.8,
    "TradePrice" : 1679.2,
    "Quantity" : 1,
    "ModuleDetails" : [ {
      "ModuleCode" : "spec",
      "ModuleName" : "Specifications",
      "OriginalPrice" : 200000,
      "DiscountPrice" : 40000,
      "TradePrice" : 160000
    } ],
    "RuleIds" : [ ],
    "PromDetails" : [ {
      "PromotionId" : "50003298014****",
      "PromotionName" : "coupon",
      "FinalPromFee" : 0.01,
      "PromType" : "deduct",
      "OptionCode" : "youhui_quan"
    } ]
  } ],
  "RuleDetails" : [ {
    "RuleId" : "102104100786****",
    "RuleName" : "GA New Customer Small II Specification Monthly Subscription - 20% Discount"
  } ],
  "Promotions" : [ {
    "PromotionOptionNo" : "50003298014****",
    "PromotionName" : "youhuiquan_promotion_option_id_for_blank",
    "CanPromFee" : 0,
    "Selected" : false,
    "OptionCode" : "youhui_quan"
  } ],
  "RequestId" : "04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

HttpCode Error code Error message Description
500 UnknownError An error occurred while processing your request. Please try again. If the error persists, please submit a ticket. The error message returned because an error occurred while the request was being processed. Try again later. If the error persists, submit a ticket.

For a list of error codes, see Service error codes.