Retrieves the usage history of a device during the promotion period.
thingspace_oauth VZ-M2M-Token In: header
M2M Session Token (How to generate an M2M session token?)
In: header
application/json
Retrieve Aggregate Usage
TypeScript Definitions
Use the request body type in TypeScript.
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-15T 00:00:00Z" } ]}{ "errorCode": "The 3-digit HTML error code", "errorMessage": "More details about the error"}date-timedate-time