All Products
Search
Document Center

Cloud Phone:CreateCreditPackage

Last Updated:Jul 13, 2026

Purchases a credit booster pack.

Operation description

This operation involves billing. Before you call 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

GET  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.

6

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 your account.

Note

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

false

CreditAmount

string

No

The number of credits.

1000

PromotionId

string

No

The ID of the promotional campaign.

50003308011****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

F07A1DA1-E1EB-5CCA-8EED-12F85D32****

OrderId

string

The order ID.

223684716098****

CreditPackageId

string

The ID of the credit booster pack.

crp-bt7e2t4anbq50****

EffectiveTime

string

The effective period of the credit booster pack.

2026-04-30 00:00:00

ExpiredTime

string

The time when the credit booster pack expires.

2026-10-30 00:00:00

CreditPackageIds

array

string

Examples

Success response

JSON format

{
  "RequestId": "F07A1DA1-E1EB-5CCA-8EED-12F85D32****",
  "OrderId": "223684716098****",
  "CreditPackageId": "crp-bt7e2t4anbq50****",
  "EffectiveTime": "2026-04-30 00:00:00",
  "ExpiredTime": "2026-10-30 00:00:00",
  "CreditPackageIds": [
    ""
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.