v1

latestOpenAPI 3.0.02026-07-241310301.1 KB

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

Query parameters

groupBystring required

The group by value that will be used for the results

startDatestring required

Start date of the cost and usage data examination

endDatestring 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

excludeFiltersstring

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

tokenstring

Pagination token, use the nextToken from previous response

Headers

Authorizationstring required
apikeystring required