All Products
Search
Document Center

Cloud Phone:CreateMobileAgentPackage

Last Updated:Sep 11, 2026

Purchases a resource plan by placing an order.

Operation description

This operation involves billing. Before using this operation, make sure that you fully understand the billing methods and pricing of Elastic Cloud Phone.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Period

integer

No

The duration for which you want to purchase the resource. The unit is specified by PeriodUnit.

1

PeriodUnit

string

No

The unit of the duration for which you want to purchase the resource.

Valid values:

  • Month: month.

  • Year: year.

Valid values:

  • Month :

    Month.

  • Year :

    Year.

Month

AutoPay

boolean

No

Specifies whether to enable automatic payment. Valid values:

  • true: Automatic payment is enabled. Make sure that your account balance is sufficient.

  • false (default): Only an order is generated. No payment is made.

Note

If your payment method has an insufficient balance, set this parameter to false. An unpaid order is generated. You can log on to the Elastic Cloud Phone console to complete the payment.

false

CreditAmount

string

No

The credit quota.

10000.0

PromotionId

string

No

The ID of the promotional campaign.

50003308011****

MobileAgentPackageSpec

string

No

The resource plan specification.

Valid values:

  • advanced :

    Advanced Edition.

  • ultimate :

    Ultimate Edition.

advanced

InstanceName

string

No

The name of the node instance.

CloudPhone

CreditConfig

string

No

The credit limit configuration.

1

Amount

string

No

The number of resource plans.

1

PaidCallbackUrl

string

No

The redirect URL after a successful payment.

https://aim.wuying.alibabacloud.com/nodes

AutoRenew

boolean

No

Specifies whether to enable auto-renewal for the instance. Valid values:

  • true: Auto-renewal is enabled.

  • false (default): Auto-renewal is disabled.

false

BizRegionId

string

No

The region where the instance resides. Currently, only cn-hangzhou is supported.

Valid values:

  • cn-hangzhou :

    China (Hangzhou)

cn-hangzhou

ImageId

string

No

PackageSpecId

integer

No

ChannelCookie

string

No

No

The tags.

Response elements

Element

Type

Description

Example

object

Schema of Response

MobileAgentPackageIds

array

The list of resource plan IDs.

string

The resource plan ID.

cmag-sbbhdajsds****

OrderId

string

The order ID.

22326560487****

RequestId

string

The request ID.

69BCBBE4-FCF2-59B8-AD9D-531EB422****

Examples

Success response

JSON format

{
  "MobileAgentPackageIds": [
    "cmag-sbbhdajsds**** "
  ],
  "OrderId": "22326560487****",
  "RequestId": "69BCBBE4-FCF2-59B8-AD9D-531EB422****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.