Specialized APIsAutomotive OEMAPI Reference

Get Rated Usage

POST /api/m2m/v1/devices/usage/actions/ratedusage

Use this endpoint to retrieve rated (billable) usage for Automotive OEM.

Header Parameters

The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

HTTP Request

POST https://thingspace.verizon.com/api/m2m/v1/devices/usage/actions/ratedusage

Request Parameters

Parameter NameData TypeDescription
deviceId (required)objectAn object containing device ID information.
id (required)stringThe ID of a device.
kind (required)stringThe type of device ID. The example is Mobile Directory Number, or MDN. For supported device Id and Kind please refer to the Retrieve Device Information API.

Request Body

Example Request

{
   "deviceId":{
      "id":"10-digit phone number",
      "kind":"mdn"
   }
}

Success Responses

Status 200

{
   "deviceInformation":{
      "billingEndDate":"2024-08-29T00:00:00.000",
      "billingResetDate":"2024-08-29T00:00:00.000",
      "billingStartDate":"2024-08-01T00:00:00.000",
      "dataUsage":1.0990909989,
      "mdn":10-digit phone number,
      "unit":"GB"
   }
}

Success Parameters

Parameter NameData TypeDescription
deviceInformationobjectAn object containing the details for rated usage.
billingEndDatestring ($datetime)The defined end of the billing period.
billingResetDatestring ($datetime)The date when data usage measurement restarted for the next billing period.
billingStartDatestring ($datetime)The defined start of the billing period.
dataUsagenumber (double precision)The measured amount of data used in decimal format.
mdninteger (long)The phone number (Mobile Directory Number) of the device being queried for usage.
unitstringThe units defining the measured amount of data used. Valid values include: KB for Kilobytes, MB for Megabytes or GB for Gigabytes.

Failure Responses

All error messages are returned in this format:

{
      "errorCode": "error code string",
      "errorMessage": "error message string"
    }

On this page