curl --location --request GET 'https://api-staging.tenbyte.io/v1/organization/billing/usage/52c39572-1c4e-45c3-a38b-c61811fb0a68' \
--header 'Authorization: Bearer <token>'{
"data": {
"current_usage": {
"period": {
"start": "2025-09-01T00:00:00Z",
"end": "2025-10-01T23:59:59Z"
},
"note": "View the October 1 invoice preview. It may change with any subscription updates."
},
"accounts": [
{
"usage": {
"storage": {
"allocated": "2 TB",
"used_percent": 90
},
"concurrent_viewers": {
"allocated": "",
"used_percent": 80,
"count": 250
}
},
"billing": {
"items": [
{
"description": "Standard Plan",
"unit_price": 25,
"amount": 25
},
{
"quantity": "10 TB",
"description": "Storage Overage",
"unit_price": 0.02,
"amount": 20
},
{
"quantity": "3.234M Events",
"description": "Addon: Advance Analytics",
"unit_price": 0.00005,
"amount": 50
}
],
"total": 95
},
"name": "Vidinfra",
"plan": "Standard Plan",
"upgrade_available": true
},
{
"usage": {
"bandwidth": {
"allocated": "1 TB",
"used_percent": 75
}
},
"billing": {
"items": [
{
"quantity": "1 TB",
"description": "Basic Plan",
"unit_price": 50,
"amount": 50
},
{
"quantity": "50 TB",
"description": "Bandwidth Overage - Tier 1",
"unit_price": 0.02,
"amount": 1
},
{
"quantity": "100 TB",
"description": "Bandwidth Overage - Tier 2",
"unit_price": 0.015,
"amount": 1.5
},
{
"quantity": "500 TB",
"description": "Bandwidth Overage - Tier 3",
"unit_price": 0.01,
"amount": 5
},
{
"quantity": "1000 TB",
"description": "Bandwidth Overage - Tier 4",
"unit_price": 0.0075,
"amount": 7.5
},
{
"quantity": "2000 TB",
"description": "Bandwidth Overage - Tier 5",
"unit_price": 0.005,
"amount": 10
},
{
"quantity": "3000 TB",
"description": "Bandwidth Overage - Tier 6",
"unit_price": 0.00394,
"amount": 11.82
},
{
"description": "Image Add-on",
"unit_price": 2.5,
"amount": 2.5
}
],
"total": 89.32
},
"name": "Container",
"plan": "Basic Plan",
"upgrade_available": true
}
]
},
"message": "Billing usage fetched successfully.",
"success": true
}