List monthly usage summary per CP code

GET https://{{host}}/billing/v1/contracts/:contractId/products/:productId/usage/by-cp-code/monthly-summary?start={{start}}&end={{end}}

Returns monthly usage summary details of the specified contract and product per CP code for the selected time frame. If you have products that are billed geographically, you can see monthly usage statistics by region.

Request Params

KeyDatatypeRequiredDescription
startstring(Required) The start (inclusive) of the billable usage period, expressed as an ISO 8601 datestamp (YYYY-MM).
endstring(Required) The end (exclusive) of the billable usage period, expressed as an ISO 8601 datestamp (YYYY-MM).
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"accountId":"A-CCT7890","contractId":"C-0N7RAC71","end":"2020-09","productId":"1-ABC012","productName":"Web Application Accelerator","requestDate":"2020-10-15T00:00:00Z","start":"2020-07","usagePeriods":[{"cpCodeStats":[{"cpCode":7654321,"stats":[{"isBillable":true,"statType":"GB","unit":"GB","value":106.3},{"isBillable":false,"statType":"Hits","unit":"Hits","value":430}]},{"cpCode":13243546,"stats":[{"isBillable":true,"statType":"GB","unit":"GB","value":221.3},{"isBillable":false,"statType":"Hits","unit":"Hits","value":400}]}],"dataStatus":"COLLECTING_DATA","end":"2020-07-31","month":"2020-07","region":"GLOBAL","start":"2020-07-01"},{"cpCodeStats":[{"cpCode":7563521,"stats":[{"isBillable":true,"statType":"GB","unit":"GB","value":115.22},{"isBillable":false,"statType":"Hits","unit":"Hits","value":500}]},{"cpCode":7654321,"stats":[{"isBillable":true,"statType":"GB","unit":"GB","value":76.3},{"isBillable":false,"statType":"Hits","unit":"Hits","value":320}]}],"dataStatus":"COLLECTING_DATA","end":"2020-08-31","month":"2020-08","region":"GLOBAL","start":"2020-08-01"}]}