Manually renews a subscription instance.

Make sure that you fully understand the billing methods and pricing of ApsaraDB for MongoDB before you call this operation.

This parameter is only applicable to Subscription instances.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No RenewDBInstance

The operation that you want to perform. Set the value to RenewDBInstance.

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

Period Integer Yes 1

The period you set for the instance to implement payment renewal. Unit: months. Valid values: 1-9, 12, 24, and 36.

CouponNo String No 1111111111111111

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

AutoPay Boolean No true

Specifies whether to enable automatic payment for the instance. Valid values:

  • true: enables automatic payment. Make sure that you have sufficient balance within your account.
  • false: disables automatic payment. You must perform the following operations to pay for the instance: Payment instructions: Log on to the console. In the upper-right corner, click Billing Management and select Billing Management from the drop-down list. The Billing Management page appears. In the left-side navigation pane, click Bills. On the Unpaid tab, click Make a Payment in the Actions column corresponding to the bill you want to pay.

Default value: true.

BusinessInfo String No {“ActivityId":"000000000"}

The business information.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxxxxx

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of an instance.

Response parameters

Parameter Type Example Description
OrderId String 203317xxxxxxxx

The ID of the order.

RequestId String B118EF45-9633-4EE3-8405-42ED4373721B

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "OrderId": "2033xxxxxxxx",
    "RequestId": "B118EF45-9633-4EE3-8405-42ED4373721B"

Error codes

For a list of error codes, visit the API Error Center.