All Products
Search
Document Center

GetResourcePackagePrice

Last Updated: Oct 17, 2018

API Name

GetResourcePackagePrice

Overview

You can call this operation to query the price of a user’s resource package.

Request parameters

Name Type Required Description
ProductCode String Yes The type of the specified product. The value is the same as the value of productType returned by DescribeResourcePackageProduct.
packageType String Yes The type of the specified resource package. The value is the same as the value of the Code value of the ResourcePackage object returned by DescribeResourcePackageProduct.
specification String Yes The sizes of the specified resource package. The value is the same as the value of Specification returned by DescribeResourcePackageProduct.
duration Integer Yes The validity of the specified resource package. The value is the same as the validity of Specification.
PricingCycle String No The validity of the resource package. Default value: Month. Valid values: Month, Year
effectiveDate String No The effective date of the resource package. The resource package will take effect immediately if the effective date is unspecified. The date format follows the ISO8601 standard and uses UTC time. Format:

yyyy-MM-ddTHH:mm:ssZ|

Response parameters

Name Type Description
Currency String The currency used for payment.
OriginalPrice Float The original price. Unit: RMB.
TradePrice Float The trade price. Unit: RMB.
DiscountPrice Float The discount price. Unit: RMB.
Promotions Promotion The details of promotions. For more information, see Data dictionary 8.5.6

Error codes

Error code Description HTTP status code Description
NotApplicable This API is not applicable for caller. 400 The error message returned when you are not authorized to use the API.
MissingParameter The specified parameter xx is mandatory for this request. 400 The error message returned when the xx parameter is not specified.
InvalidParameter The specified parameter xx is not valid. 400 The error message returned when the xx parameter is invalid.
InvalidModuleCode The specified moduleCode is not valid. 400 The error message returned when the specified moduleCode parameter is invalid.
InvalidConfigCode The specified configCode is not valid. 400 The error message returned when the specified configCode parameter is invalid.
InvalidOwner The specified owner doesn’t belong to caller. 400 The error message returned when the specified owner does not belong to the caller.
InvalidCaller The specified caller doesn’t exists. 400 The error message returned when the caller is invalid.
InternalError The request processing has failed due to some unknown error, exception or failure. 400 The error message returned when an unknown internal error occurs.
ProductNotFind Can not find inquired product, it may not exist. 400 The error message returned when the specified product is invalid.

Sample requests

  1. https://business.ap-southeast-1.aliyuncs.com/?Action=GetResourcePackagePrice
  2. &ProductCode=flowpack
  3. &PackageType=FPT_generalnetwork_deadlineAcc_overseas_intl
  4. &Duration=1
  5. &PricingCycle=Month

Sample responses

  1. "Data": {
  2. "DiscountPrice": 0,
  3. "Promotions": {
  4. "Promotion": []
  5. },
  6. "OriginalPrice": 33,
  7. "TradePrice": 33,
  8. "Currency": "USD"
  9. },