Billing
Get volume hourly cost datapoints
Returns hourly cost datapoints for a Volume for a specified billing cycle. The response includes 'incurred_bill' graph datapoints.
get/billing/billing/history/volume/{volume_id}/graph
Request
- Base URL: https://infrahub-api.nexgencloud.com/v1
- URL: https://infrahub-api.nexgencloud.com/v1/billing/billing/history/volume/{volume_id}/graph
- Auth: API key in header api_key
Path parameters
volume_idinteger required
ID of the volume.
Query parameters
start_datestring required
Date should be formatted in YYYY-MM-DDTHH:MM:SS
end_datestring required
Date should be formatted in YYYY-MM-DDTHH:MM:SS
Response
Success
Example response
{
"status": true,
"message": "Biling Details Hourly Cost datapointsfor the Volume Retrieved Successfully.",
"billing_history_snapshot_details": {
"org_id": 5341,
"billing_history": [
{
"attributes": {
"id": "9d8a4f10-2c5d-4b14-8f5a-1e6c8e8b2d3f",
"infrahub_id": 8429,
"resource_name": "example-vm"
},
"metrics": {
"incurred_bill": 0.011612903333333001,
"incurred_bill_graph": [
{
"datetime": "2026-05-06T15:18:42Z",
"value": 0.011612903333333001
}
]
}
}
],
"granularity": 86400
}
}Changes
No recorded changes to this operation across all 1 revision of this API.