All Products
Search
Document Center

Elastic Compute Service:Change the billing method from pay-as-you-go to subscription

Last Updated:Nov 07, 2025

After you create a pay-as-you-go Elastic Compute Service (ECS) instance, you can change its billing method to subscription to reserve resources at a discounted rate.

Prerequisites

  • The instance is not a retired instance type or a spot instance.

  • Pay for or cancel all unpaid orders for the instance.

  • If an automatic release time is set for the instance, you must first disable the automatic release setting.

  • The instance is in the Running or Stopped state. If the instance is in economical mode, start the instance.

    If you place an order while the instance is in the Running or Stopped state, but the instance enters a different state before you complete the payment, the payment and conversion fail. Go to the Order Hub and pay for the order again after the instance returns to the Running or Stopped state.

Procedure

Console

  1. Log on to the ECS console - Instances page. In the upper-left corner, select the region and resource group for the instance.

  2. Find the instance that you want to convert and click the instance ID. On the instance details page, choose All Actions > Switch To Subscription.

  3. On the page that opens, configure the following parameters:

    • Set the subscription duration.

    • Select whether to change the billing method of attached pay-as-you-go data disks to subscription.

    • Select whether to enable auto-renewal.

    • Read and select ECS Terms of Service.

  4. Click Confirm Order and complete the payment as prompted.

You can also perform a batch operation on the Instances page to convert up to 20 instances at once. When you perform a batch conversion, you can set only the same subscription duration for all instances.

API

Call the ModifyInstanceChargeType API operation to change the billing method of a pay-as-you-go ECS instance to subscription.

Impacts of the conversion

After the conversion is complete, the billing methods of the instance type, system disk, and image software license are changed to subscription. The conversion also has the following impacts on the instance:

  • If the instance has a public bandwidth plan or is associated with an Elastic IP Address (EIP) before the conversion, the billing method for the public bandwidth or the EIP remains unchanged. You will continue to be charged on a pay-as-you-go basis. Monitor your account balance to prevent service interruptions due to overdue payments. To change the billing method of your network resources to subscription, perform one of the following operations:

  • If data disks are attached to the pay-as-you-go instance and you do not select to convert them during the process, their billing method remains pay-as-you-go. You can later change the billing method of the disks separately as needed.