curl --request GET \
--url https://api.cloud.flexprice.io/v1/cost/breakdown/{subscription_id} \
--header 'x-api-key: <api-key>'
{
"items": [
{
"cost": 123,
"meter_id": "<string>",
"meter_name": "<string>",
"usage": 123
}
],
"total_cost": 123
}
Get cost breakdown for a time period
curl --request GET \
--url https://api.cloud.flexprice.io/v1/cost/breakdown/{subscription_id} \
--header 'x-api-key: <api-key>'
{
"items": [
{
"cost": 123,
"meter_id": "<string>",
"meter_name": "<string>",
"usage": 123
}
],
"total_cost": 123
}
Enter your API key in the format x-api-key <api-key>*
Subscription ID
OK
The response is of type object
.