List monthly usage summary per contract and product
GET https://{{host}}/billing/v1/contracts/:contractId/products/:productId/usage/monthly-summary?start={{start}}&end={{end}}
Returns monthly usage summary details of the specified contract and product for the selected time frame. If you have products that are billed geographically, you can see monthly usage statistics by region.
Body
PARAM
Key | Datatype | Required | Description |
start
|
string | (Required) The start (inclusive) of the billable usage period, expressed as an ISO 8601 datestamp (YYYY-MM). | |
end
|
string | (Required) The end (exclusive) of the billable usage period, expressed as an ISO 8601 datestamp (YYYY-MM). | |
accountSwitchKey
|
string | (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys). |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"accountId": "A-CCT7890",
"contractId": "K-0N7RAK7",
"end": "2020-09",
"productId": "1-ABC012",
"productName": "Web Application Accelerator",
"requestDate": "2020-10-15T00:00:00Z",
"start": "2020-07",
"usagePeriods": [
{
"dataStatus": "DATA_FINALIZED",
"end": "2017-07-31",
"month": "2020-07",
"region": "GLOBAL",
"start": "2017-07-01",
"stats": [
{
"isBillable": true,
"statType": "Total MB",
"unit": "GB",
Curl curl -X GET 'https://host/billing/v1/contracts/:contractId/products/:productId/usage/monthly-summary?start=&end=?start=&end=&accountSwitchKey=' -H 'Accept: application/json' ENDPOINTS |