This API call allows the partner to Get all serial usage for partner.
Request Format
GET v2/partners/<username>/consumptionusage
Input Parameters
The following table provides the input parameter and description.
Parameter | Description |
username * | String, path. |
Output Parameters
The following table provides the output parameters and descriptions.
Parameter | Description | ||||||||||||||
data | Integer, data: Array of objects with:
|
Response Example
200 Data retrieved successfully.
{
"raw_records": [
{
"serial": "12454653654",
"skuId": 20729,
"uniqueName": "3334",
"accountName": "Account1",
"userName": "User1",
"usage": 100,
"bccAccountId": 1012720643
},
{
"serial": "12426123463",
"skuId": 20729,
"uniqueName": "3334",
"accountName": "Account2",
"userName": "User2",
"usage": 0,
"bccAccountId": 1012995426
}
]
}
401 Authentication Problem Example
{
"expired": {
"error": [
"Token expired."
]
},
"invalid": {
"error": [
"Not authenticated."
]
}
}
Output Data
Response status: 200 OK