CostSheets
CreditGrants
Credit Notes
Customers
Wallets
Invoices
Entitlements
Environments
Events
Features
Payments
Plans
Integrations
Subscriptions
Tenants
Users
CostSheets
Get cost breakdown
Get cost breakdown for a time period
GET
/
cost
/
breakdown
/
{subscription_id}
Copy
curl --request GET \
--url https://api.cloud.flexprice.com/v1/cost/breakdown/{subscription_id} \
--header 'x-api-key: <api-key>'
Copy
{
"items": [
{
"cost": 123,
"meter_id": "<string>",
"meter_name": "<string>",
"usage": 123
}
],
"total_cost": 123
}
Authorizations
Enter your API key in the format x-api-key <api-key>*
Path Parameters
Subscription ID
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request GET \
--url https://api.cloud.flexprice.com/v1/cost/breakdown/{subscription_id} \
--header 'x-api-key: <api-key>'
Copy
{
"items": [
{
"cost": 123,
"meter_id": "<string>",
"meter_name": "<string>",
"usage": 123
}
],
"total_cost": 123
}
Assistant
Responses are generated using AI and may contain mistakes.