Get Usage Summary
Select
SaaS
This API can be used by MSP to query availble pooled usage summary for all customer accounts. Currently we suppot summary for M365 Storage SKU only. Empty list will be returned if pooled storage is not enbaled or customer account doesn't have M365 Storage SKU subscribed
Query Parameters
- usageMonth string
Optional - Month for which usage summary is returned If not provided, default to current month
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Get Usage Summary
Schema
data object[]
{
"data": [
{
"usageMonth": "string",
"skuId": "string",
"consumedQuantity": 0,
"entitledQuantity": 0,
"overageQuantity": 0,
"billableQuantity": 0,
"unitPrice": 0,
"billingUnit": "string",
"totalCost": 0,
"currency": "string",
"paymentOption": "string"
}
]
}
{
"data": [
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 300,
"entitledQuantity": 200,
"overageQuantity": 100,
"billableQuantity": 100,
"unitPrice": 4,
"billingUnit": "tb",
"totalCost": 400,
"currency": "USD"
}
]
}
GET /api/v1/partner/usage/summary
Authorization
Request
Request
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://api.metallic.io/api/v1/partner/usage/summary' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'