Get billing cycles for multiple hosting accounts

Retrieve information about billing cycles for one or more hosting accounts simultaneously. This is useful when you need to see existing billing options and pricing to make decisions about future subscriptions. The API returns a `requestId` for tracking the operation and an `id` for specific billing cycles that may be needed for follow-up calls.

Headers

Accept Example
Content-Type Example

Body

required
application/json
accountIds array required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/hosting/billing-cycles/batch
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/hosting/billing-cycles/batch" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountIds": [
      "string"
    ]
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "accounts": {
      "18262": {
        "success": true,
        "current": "string",
        "currentName": "string",
        "cycles": [
          {
            "id": "string",
            "name": "string",
            "price": 0,
            "isCurrent": true
          }
        ],
        "monthlyPrice": 0,
        "yearlyPrice": 0
      }
    },
    "totalAccounts": 0
  }
}
Request Body
{
  "accountIds": [
    "string"
  ]
}