Retrieve detailed device-level usage

This endpoint provides detailed device-level usage data for specific contracts and invoices within a given timeframe.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

The detailed usage data is structured as a nested format, providing comprehensive records for all end customers (clients) associated with the MSP. Each client record includes:

  1. A list of devices with detailed information.
  2. Aggregated total usage by service for each customer, including metrics such as the amount of usage, price, and associated product features.

Response structure

ParameterDescriptionSupported values
AccountNameThe name of the account<std::string>
BpAccountIdThe unique identifier for the BpAccount<int> Integer
CidCID, part of contract number<int> Integer
ContractIdThe unique identifier for the contract<int> Integer
ContractNumberThe number of the contract<std::string>
ContractStatusThe status of the contract<std::string>
CreatedRecord created date<datetime>
PgaCode4-character numerical code for the product group<std::string>
PidProduct ID<int> Integer
ProductNameThe name of the product<std::string>
RateClassIdRate Class ID<int> Integer
SfdcAccountIdSalesforce Account ID for the requesting MSP<std::string>
TenantIdThe unique identifier for the Tenant<int> Integer
TimeFrameThe billing period in YYYYMM format<int> Integer
UpdatedLast update date<datetime>
TotalByContractsTotal usage (aggregated) of services under each contract

TotalByContracts (has child objects of its own see the

TotalByContracts child objects

table below)

ClientsA list of clients with all devices recorded under invoice

Clients (has child objects of its own see the

Clients child objects

table below)

TotalByContracts child objects

ParameterDescriptionSupported values
AccountNameThe name of the account<std::string>
BpAccountIdThe unique identifier for the Bp account<int> Integer
CidCID, part of contract number<int> Integer
ContractIdThe unique identifier for the contract<int> Integer
ContractNumberThe number of the contract<std::string>
InvoiceIdThe unique identifier for the invoice<int> Integer
SfdcAccountIdSalesforce Account ID for the requesting MSP<std::string>

Clients child objects

ParameterDescriptionSupported values
ClientIdClient ID<std::string>
DevicesThe list of all devices recorded under the invoice<array>
NameClient name<std::string>
TotalByServiceTotal usage of services by client<array>

Sample response

{
    "AccountName": "Best MSP",
    "BpAccountId": 12348,
    "Cid": "234578",
    "ContractId": 234578,
    "ContractNumber": "MSP-234578-01",
    "ContractStatus": "ACTIVE",
    "Created": "2021-01-04 20:02:13.470",
    "PgaCode": "0100",
    "Pid": "0118M-0000-0000-UK",
    "ProductName": "Cove Data Protection | Data Protection Plan | MSP",
    "RateClassId": "234567",
    "SfdcAccountId": "001H234578asdfIAS",
    "TenantId": "0100_678905",
    "TimeFrame": 202405,
    "Updated": "2023-12-31 22:09:37.204",
    "TotalByContracts": [
        {
            "AccountName": "Best MSP",
            "BpAccountId": "345678",
            "Cid": "234578",
            "ContractId": "234567",
            "ContractNumber": "MSP-234578-01",
            "InvoiceId": "123467",
            "SfdcAccountId": "001H234578asdfIAS"
        }
    ],
    "Clients": []
}

Possible errors

{
    "PSA Distributor Usage Detail Devices V1 ": "Failed",
    "SfdcAccountId": "001H234578asdfIAS",
    "Error": "Internal Error. Please contact support."
}
🚧

Internal Error: This error could mean you provided an invalid contract or invoice ID or combination of invoice ID and timeframe. Double-check your details. Otherwise, contact support.

{
    "message": "Unauthorized",
    "http_status_code": 401
}
🚧

The above error is 401 unauthorized: Check that you have entered your MSPID and API key correctly.

Path Params
string
required

Unique identifier for the contract. Example: '31244'.

string
required

Unique identifier for the invoice. Example: '3710464'.

string
required

The billing period in YYYYMM format. Example: '202401'.

string
required

Salesforce account ID for the requesting MSP. Example: '001Hs99902zVlkLIAS'.

Headers
string
required

API key for authorisation.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*