v1

latestOpenAPI 3.0.02026-07-241310301.1 KB
Cost & Usage

Get Cost & Usage

The call is used to retrieve cloud invoice data grouped and filters by different values

get/api/v1/invoices/cost-and-usage

Query parameters

groupBystring required

The group by value that will be used for the results

startDatestring date required

Start date of the cost and usage data examination

endDatestring date required

End date of the cost and usage data examination

periodGranLevelstring required

Granularity level of the period in the output data. Possible values are: day, week, month

costTypestring required

Type of cost to get the report for. Possible options are: cost, discount, refund, credit

isNetUnblendedboolean
isAmortizedboolean
isNetAmortizedboolean
wheresstring

conditions of type if x equals y when retrieving data

filtersstring

conditions of type if x in (y,z,w) when retrieving data

excludeFilters string

conditions of type if x not in (y,z,w) when retrieving data

Headers

Authorizationstring required
apikeystring required

Response

group_bystring
usage_datestring
account_idstring
total_costinteger
total_usage_quantityinteger
resource_namestring
resource_idstring