POST /dashboard/services/{id}/renew

Create renewal invoice

Creates an invoice to renew the service for the specified billing cycle.

Parameters

NameTypeInDescription
id*
integerpathThe service ID

Request Body

cyclestringRequired

Billing cycle for renewal

monthlyquarterlysemiannuallyannuallybienniallytriennially

Response

200
403
successboolean
dataobject
invoice_idinteger

ID of the created invoice

Request

curl -X POST "https://api.royalehosting.net/dashboard/services/{id}/renew" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{
  "success": true,
  "data": {
    "invoice_id": 12345
  }
}