This endpoint allows user to search for billable usage for accounts based on the provided date range.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
*/*
Request to obtain billable usage for accounts.
TypeScript Definitions
Use the request body type in TypeScript.
Bill usage request.
application/json
application/json
curl -X POST "https://example.com/usage" \ -H "Content-Type: */*" \ -d '<accountName>1234567890-00001</accountName> <startDate>04-01-2018</startDate> <endDate>04-30-2018</endDate> <usageForAllAccounts>true</usageForAllAccounts>'{ "accountName": "1223334444-00001", "usageForAllAcounts": false, "skuName": "TS-LOC-COARSE-CellID-Aggr", "transactionsAllowed": "5000", "totalTransactionCount": "350", "PrimaryAccount": { "accountName": "1223334444-00001", "transactionsCount": "125" }, "ManagedAccounts": []}{ "errorCode": "The type of error, such as INVALID_REQUEST.", "errorMessage": "Additional error information."}Account identifier.
Start date to search for billable usage, mm-dd-yyyy.
End date to search for billable usage, mm-dd-yyyy.
Request usage for single or multiple accounts.