All Products
Search
Document Center

Cloud Phone:CreateMobileAgentPackage

Last Updated:Jul 13, 2026

Purchases a resource plan.

Operation description

This operation involves billing. Before you call this operation, make sure that you fully understand the billing methods and pricing of Alibaba Cloud CloudPhone.

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: enables automatic payment. Make sure that your account balance is sufficient.

  • false (default): generates an order without charging the account.

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 CloudPhone 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.aliyun.com/nodes

AutoRenew

boolean

No

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

  • true: enables auto-renewal.

  • false (default): disables auto-renewal.

false

BizRegionId

string

No

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

Valid values:

  • cn-hangzhou :

    China (Hangzhou)

cn-hangzhou

ImageId

string

No

PackageSpecId

integer

No

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

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

OrderId

string

The order ID.

22326560487****

MobileAgentPackageIds

array

The list of resource plan IDs.

string

The resource plan ID.

cmag-sbbhdajsds****

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.