Promotion Period Information

Retrieve the usage history.

POST
/m2m/v1/devices/usage/actions/promodeviceusage

Retrieves the usage history of a device during the promotion period.

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

application/json

Retrieve Aggregate Usage

Retrieve Aggregate Usage

deviceId?array<>
startTime?string
Formatdate-time
endTime?string
Formatdate-time

Response Body

application/json

application/json

curl -X POST "https://example.com/m2m/v1/devices/usage/actions/promodeviceusage" \  -H "Content-Type: application/json" \  -d '{}'
{  "hasmoredata": false,  "deviceId": {    "kind": "iccid",    "id": "20-digit iccid"  },  "usageHistory": [    {      "bytesUsed": 3072,      "serviceplan": "The serviceplan name",      "smsUsed": 0,      "moSMS": 0,      "mtSMS": 0,      "source": "Raw Usage",      "eventDateTime": "2021-08-15T00:00:00Z"    }  ]}