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.
Accept Example Content-Type Example accountIds array required success boolean timestamp string requestId string data object https://cloud.hostup.se/api/hosting/billing-cycles/batch 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"
]
}' {
"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
}
} {
"accountIds": [
"string"
]
}