Devices Location Subscriptions

Obtain billable usage for accounts during a specified date range

POST
/loc/v1/usage

This endpoint allows user to search for billable usage for accounts based on the provided date range.

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Request Body

*/*

Request to obtain billable usage for accounts.

Request to obtain billable usage for accounts.

accountName*string

Account identifier.

startDate*string

Start date to search for billable usage, mm-dd-yyyy.

endDate*string

End date to search for billable usage, mm-dd-yyyy.

usageForAllAccounts?boolean

Request usage for single or multiple accounts.

Response Body

application/json

application/json

curl -X POST "https://example.com/loc/v1/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": []}