Get Usage Summary
This API can be used by MSP to get an overview of all service usage and cost summary from all customer accounts. For SaaS Storage and any volume commit services, customer can see the pooled usage and cost; for utility services and Account commit services, customer can see the aggregated usage and cost.
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 - Utility
- Get Usage Summary - Account level commit
- Get Usage Summary - Org level Volume commit
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-M365E-USR",
"consumedQuantity": 300,
"entitledQuantity": 0,
"overageQuantity": 0,
"billableQuantity": 300,
"unitPrice": 4,
"totalCost": 1200,
"currency": "USD",
"type": "utility"
},
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 300,
"entitledQuantity": 200,
"overageQuantity": 100,
"billableQuantity": 100,
"unitPrice": 4,
"billingUnit": "tb",
"totalCost": 400,
"currency": "USD",
"type": "pool"
}
]
}
{
"data": [
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-M365E-USR-UP",
"consumedQuantity": 200,
"entitledQuantity": 200,
"overageQuantity": 0,
"billableQuantity": 0,
"unitPrice": 1,
"totalCost": 0,
"currency": "USD",
"type": "Term"
},
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-M365E-USR",
"consumedQuantity": 100,
"entitledQuantity": 0,
"overageQuantity": 100,
"billableQuantity": 100,
"unitPrice": 4,
"totalCost": 400,
"currency": "USD",
"type": "Term Overage"
},
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 300,
"entitledQuantity": 200,
"overageQuantity": 100,
"billableQuantity": 100,
"unitPrice": 4,
"billingUnit": "tb",
"totalCost": 400,
"currency": "USD",
"type": "Pool"
}
]
}
{
"data": [
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-M365E-USR-UP",
"consumedQuantity": 200,
"entitledQuantity": 200,
"overageQuantity": 0,
"billableQuantity": 0,
"unitPrice": 1,
"totalCost": 0,
"currency": "USD",
"type": "Volume"
},
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-M365E-USR",
"consumedQuantity": 100,
"entitledQuantity": 0,
"overageQuantity": 100,
"billableQuantity": 100,
"unitPrice": 4,
"totalCost": 400,
"currency": "USD",
"type": "Volume Overage"
},
{
"usageMonth": "2023-08-01",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 300,
"entitledQuantity": 200,
"overageQuantity": 100,
"billableQuantity": 100,
"unitPrice": 4,
"billingUnit": "tb",
"totalCost": 400,
"currency": "USD",
"type": "Pool"
}
]
}
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>'