Disable auto-renewal
Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
Disable auto-renewal for a subscription.
Use this endpoint when disable auto-renewal for a subscription.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
subscriptionIdstringRequiredExample:
Subscription ID
Cxy353Uhl1xC54pG6Responses
200
Success response
application/json
idstringOptionalExample:
Subscription ID
Azz36nUfKX1S1MSFnamestringOptionalExample:
KVM 1statusstring · enumOptionalExample:
activePossible values: billing_periodintegerOptionalExample:
1billing_period_unitstringOptionalExample:
daycurrency_codestringOptionalExample:
USDtotal_priceintegerOptionalExample:
Total price in cents
1799renewal_priceintegerOptionalExample:
Renewal price in cents
1799is_auto_renewedbooleanOptionalExample:
truecreated_atstring · date-timeOptionalExample:
2025-02-27T11:54:22Zexpires_atstring · date-time · nullableOptionalExample:
2025-03-27T11:54:22Znext_billing_atstring · date-time · nullableOptionalExample:
2025-02-28T11:54:22Z401
Unauthenticated response
application/json
500
Error response
application/json
delete/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable
DELETE /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}Last updated
Was this helpful?