Quote a shared hosting renewal

Returns the renewal cost without creating an order, with active add-ons included in the total. An overdue account is quoted the extra months needed to bring expiry_at back into the future. A promo code already attached to the hosting account is applied when promo_code is omitted.

POST
/shared-hosting/{sharedHosting}/renew/calculate

Authorization

BearerToken
AuthorizationBearer <token>

In: header

Path Parameters

sharedHosting*integer

The shared hosting ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/shared-hosting/0/renew/calculate" \  -H "Content-Type: application/json" \  -d '{    "billing_cycle": 1  }'
{  "amount": "string",  "amount_with_vat": "string",  "discount": "string",  "discount_with_vat": "string",  "promo_code": {    "code": "string",    "percentage": 0,    "minimum_billing_cycle": 0  },  "due_today_amount": "string",  "due_today_amount_with_vat": "string"}