Get Usage V2
Usage API Documentation
Overview
The Usage API provides a way to obtain usage data with various search parameters. All dates in the Usage API refer to the UTC time zone. Usage data on each usage date shows the peak usage up to that usage date in the current calendar month.
Usage Retrieval
Partners can use the API in two ways:
- Directly call the API with no parameters to get usage data for yesterday (current calendar month peak usage up to yesterday).
- Specify date parameters to get historical peak usage data.
Usage Collection Schedule
Usage collection runs at 4 am UTC every day for yesterday's usage data. It is suggested for partners to call the Usage API for yesterday's data after 6 am UTC.
Database Usage
Database usage is metered by capacity unless the application is hosted on virtual machines, in which case it is metered as a VM instance.
File & Object Usage
File & Object usage is metered by capacity unless the application is hosted on Virtual Machines, in which case it is metered as a VM instance.
Metallic Backup for Microsoft 365 Service
Metallic Backup for Microsoft 365 service will incur storage usage. Each user with Metallic Backup for Microsoft 365 Standard (Not including no storage option) will have 5 GB storage capacity included, and each user with Metallic Backup for Microsoft 365 Standard (Not including no storage option) will have 50 GB storage capacity included.
Storage Usage Calculation Examples
Example 1:
Customer had 100 Standard users, 100 Enterprise users, and 5000 GB storage reported in usage.
- Storage included quantity: 100 5 + 100 50 = 5500 GB
- Since 5000 GB < 5500 GB, no storage usage will be charged.
Example 2:
Customer had 100 Standard users, 100 Enterprise users, and 6000 GB storage reported in usage.
- Storage included quantity: 100 5 + 100 50 = 5500 GB
- Since 6000 GB > 5500 GB, 500 GB storage usage will be charged.
Usage API Response
In the Usage API response, storage quantity will be shown in TB.
Absolutely! Here's the information presented in a tabular format:
Usage API Response Documentation
Response Body
Field | Description | Type | Notes |
---|---|---|---|
data | List of usage details | Usage Objects Array | See - Usage Object |
metadata | List usage metadata | Metadata Object | See - Metadata Object |
Usage Object
Field | Description | Type | Notes |
---|---|---|---|
usageDate | Date of this usage object | Date | Usage Data on usageDate means peak usage up to usageDate in the current calendar month. |
accountId | Account metallic id | UUID | |
externalAccountId | Account id in partner system | String / UUID | |
fulfillmentId | Fulfillment metallic id | UUID | |
externalFulfillmentId | Fulfillment id in partner system | String / UUID | |
skuId | Service sku in metallic | String | |
consumedQuantity | Usage quantity | Double | Peak usage quantity against billingUnit that was consumed up to usageDate in the current calendar month. |
entitledQuantity | Quantity committed upfront | Double | For non-commit service, this field is the included quantity from M365 for Metallic Storage service and 0 for the others. |
overageQuantity | Any quantity consumed more than entitled quantity | Double | For non-commit service, this field is Max(0, consumedQuantity minus entitledQuantity) for Metallic Storage service and 0 for the others. |
billableQuantity | Quantity to be charged for | Double | For non-commit service, this field is the same as overageQuantity for Metallic Storage service and consumedQuantity for the others. |
billingUnit | Unit of measure (1 user, 10 vm, etc.) | String | All quantity fields are measured in billingUnit. |
unitPrice | Price for a single billingUnit | Double | |
overageUnitPrice | Overage price for a single billingUnit when upfront service goes over entitled quantity | Double | |
totalCost | Total cost | Double | billableQuantity * unitPrice |
currency | Billing currency | String | |
paymentOption | Payment option | String | Currently supported values are "pay_as_you_go" and "upfront" |
partnerId | MSP's reseller Metallic ID | String | |
externalPartnerId | MSP's reseller reference ID | String |
Metadata Object
Field | Description | Type | Notes |
---|---|---|---|
filter | Filter string that contains search parameters | String | |
sort | Sort string that contains sorting criteria | String | |
pagination | Pagination Info | Pagination Object | See - Pagination Object |
Pagination Object
Field | Description | Type | Notes |
---|---|---|---|
pageNumber | Page number | Integer | 0 to x |
pageSize | Page size | Integer | |
totalRecords | Total number of records | Integer |
- 200
OK
- application/json
- Schema
- Example (from schema)
- Success - Single Account
- Success - Single Account with Metallic 365 with capacity overage
- Success - Single Account with term Metallic 365, no capacity overage
- Single Account with term Metallic 365 with capacity overage
Schema
data object[]
usageDate stringaccountId stringexternalAccountId stringfulfillmentId stringexternalFulfillmentId stringskuId stringconsumedQuantity integerentitledQuantity integeroverageQuantity integerbillableQuantity integerunitPrice integerbillingUnit stringtotalCost integercurrency string
{
"data": [
{
"usageDate": "string",
"accountId": "string",
"externalAccountId": "string",
"fulfillmentId": "string",
"externalFulfillmentId": "string",
"skuId": "string",
"consumedQuantity": 0,
"entitledQuantity": 0,
"overageQuantity": 0,
"billableQuantity": 0,
"unitPrice": 0,
"billingUnit": "string",
"totalCost": 0,
"currency": "string"
}
]
}
{
"data": [
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-VMKB-S-VM",
"consumedQuantity": 8,
"entitledQuantity": 0,
"overageQuantity": 0,
"billableQuantity": 8,
"unitPrice": 4,
"billingUnit": "10 vm",
"totalCost": 32,
"currency": "USD"
}
]
}
{
"data": [
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-M365E-USR",
"consumedQuantity": 10,
"entitledQuantity": 0,
"overageQuantity": 0,
"billableQuantity": 10,
"unitPrice": 4,
"billingUnit": "1 user",
"totalCost": 40,
"currency": "USD"
},
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 0.89,
"entitledQuantity": 0.49,
"overageQuantity": 0.4,
"billableQuantity": 0.4,
"unitPrice": 3,
"overageUnitPrice": 3,
"billingUnit": "tb",
"totalCost": 1.2,
"currency": "USD"
}
]
}
{
"data": [
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-M365E-USR",
"consumedQuantity": 10,
"entitledQuantity": 20,
"overageQuantity": 0,
"billableQuantity": 0,
"unitPrice": 3,
"overageUnitPrice": 5,
"billingUnit": "1 user",
"totalCost": 0,
"currency": "USD"
},
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 0.5,
"entitledQuantity": 0.98,
"overageQuantity": 0,
"billableQuantity": 0,
"unitPrice": 3,
"overageUnitPrice": 3,
"billingUnit": "tb",
"totalCost": 0,
"currency": "USD"
}
]
}
{
"data": [
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-M365E-USR",
"consumedQuantity": 30,
"entitledQuantity": 20,
"overageQuantity": 10,
"billableQuantity": 10,
"unitPrice": 3,
"overageUnitPrice": 5,
"billingUnit": "1 user",
"totalCost": 50,
"currency": "USD"
},
{
"usageDate": "2021-02-07",
"accountId": "cdb8a2a3-582b-449e-84fa-3c4f6a1745df",
"externalAccountId": "partnerxyz",
"fulfillmentId": "c640d069-9b20-41e7-bac7-b3a2af3a8729",
"externalFulfillmentId": "xyzw",
"skuId": "MTSP-STREXP-TB",
"consumedQuantity": 2.47,
"entitledQuantity": 1.47,
"overageQuantity": 1,
"billableQuantity": 1,
"unitPrice": 3,
"overageUnitPrice": 4,
"billingUnit": "tb",
"totalCost": 4,
"currency": "USD"
}
]
}