All Products
Search
Document Center

Edge Security Acceleration:PurchaseRatePlan

Last Updated:Nov 15, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Purchase New Package

Operation description

  1. The package name and code can be obtained from the DescribeRatePlanPrice interface.
  2. If the acceleration area is not overseas, the site must have successfully completed the filing process.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
esa:PurchaseRatePlancreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PlanNamestringNo

Package name.

basic
PlanCodestringNo

Package code.

entranceplan
SiteNamestringNo

Site name.

test.com
CoveragestringNo

The service location. Valid values:

  • domestic: the Chinese mainland.
  • global: global.
  • overseas: outside the Chinese mainland.
domestic
TypestringNo

The DNS setup option for the website. Valid values:

  • NS
  • CNAME
CNAME
AutoRenewbooleanNo

Auto-renewal:

  • true: Enable auto-renewal.
  • false: Disable auto-renewal.
true
PeriodintegerNo

Subscription period (in months).

1
ChargeTypestringNo

The billing method. Valid values:

  • PREPAY: subscription.
  • POSTPAY: pay-as-you-go.
PREPAY
AutoPaybooleanNo

Specifies whether to enable auto payment.

true

Response parameters

ParameterTypeDescriptionExample
object

Response structure.

RequestIdstring

Request ID.

30423A7F-A83D-1E24-B80E-86DD25790758
OrderIdstring

Order ID.

123123
InstanceIdstring

Instance ID.

esa-site-ads11w

Examples

Sample success responses

JSONformat

{
  "RequestId": "30423A7F-A83D-1E24-B80E-86DD25790758",
  "OrderId": 123123,
  "InstanceId": "esa-site-ads11w"
}

Error codes

HTTP status codeError codeError messageDescription
400CheckOrderFailedInvalid order parameter.Invalid order parameter.
400InternalErrorAn internal exception occurred, please try again later.An inner exception was triggered. Please try again later.
400InvalidSiteICPThe specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again.The specified website does not have an ICP filing or the filing information is invalid. Make sure your website is filed and try again.
400InvalidSiteNameInvalid website name. Check and try again.Invalid website name. Check and try again.
400SYSTEM.NoSpecificCodeFailedInvalid subscription duration. Check and try again.Invalid subscription duration. Check and try again.
400CheckPlanFailedInvalid plan name or code. Check and try again.Invalid plan name or code. Check and try again.
400SubSiteUnavailableSubdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA.Subdomains are allowed only in Enterprise plans. Upgrade your plan to add a subdomain to ESA.
400InsufficientAvailableQuotaYour account balance is insufficient.Your account is in arrears, please pay the arrears before purchasing.
400InsufficientBalanceYour account balance is insufficient.Your account balance is insufficient, please recharge before purchasing.
400InvalidComponentThe order parameters is invalid.The order parameters is invalid.
400RamAuthFailedThe sub-account has no operation permission.-
400BuyWithSiteAmountErrSite-based purchase plans do not support bulk purchasing.Site-based purchase plans do not support bulk purchasing.
400EnterpriseAmountErrEnterprise plans do not support bulk purchase.Enterprise plans do not support bulk purchase.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-02-20The Error code has changed. The request parameters of the API has changedView Change Details
2024-09-18The Error code has changedView Change Details