Updated on 2026-05-21 GMT+08:00

Renewing a Yearly/Monthly APS

Description

When a yearly/monthly resource is about to expire, you can renew it by calling the API of renewing subscription to yearly/monthly resources.

For example:

To renew a yearly/monthly APS for another month, set the billing mode to pay-per-use after the renewal period expires, and enable automatic payment.

POST https://bss.myhuaweicloud.com/v2/orders/subscriptions/resources/renew
{
    "resource_ids": [
        "wksapp-ee96725a-e403-4c0f-88b3-0083b2a685ce"
    ],
    "period_type": 2,
    "period_num": 1,
    "expire_policy": 1,
    "is_auto_pay": 1
}

After the renewal is successful, an order ID order_id is returned.

{
  "order_ids": [
    "CS2311173xxxxxxxx"
  ]
}

In the preceding request body, the value of is_auto_pay is 1, indicating automatic payment. If this parameter is left blank or set to 0, manual payment is required. For manual payment, you can enter information such as vouchers and discount coupons. expire_policy indicates an expiration policy. (This field has been discarded. Do not use it. Although this parameter is mandatory, its enumerated value does not take effect.)