Billing: Subscriptions
Enable auto-renewal
Enable auto-renewal for a subscription.
Use this endpoint when enable auto-renewal for a subscription.
patch/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable
Path parameters
subscriptionIdstring required
Example:Cxy353Uhl1xC54pG6
Subscription ID
Response
Success response
Example response
{
"id": "Azz36nUfKX1S1MSF",
"name": "KVM 1",
"status": "active",
"billing_period": 1,
"billing_period_unit": "day",
"currency_code": "USD",
"total_price": 1799,
"renewal_price": 1799,
"is_auto_renewed": true,
"created_at": "2025-02-27T11:54:22Z",
"expires_at": "2025-03-27T11:54:22Z",
"next_billing_at": "2025-02-28T11:54:22Z"
}