GET
/
cost
/
breakdown
/
{subscription_id}
Get cost breakdown
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
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

subscription_id
string
required

Subscription ID

Query Parameters

start_time
string

Start time (RFC3339)

end_time
string

End time (RFC3339)

Response

OK

items
object[]

Items contains the breakdown by meter

total_cost
number

TotalCost is the sum of all meter costs