Specialized APIsAutomotive OEMAPI Reference

Billing Data Summary

Billing Data Summary by APN or RatingGroup

POST /v2/devices/usage/actions/billed

Use this endpoint to retrieve billed data by a user defined rating group or by Access Point Name (APN).

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/v2/devices/usage/actions/billed

Request Parameters

Parameter NameData TypeDescription
accountName (required)stringThe numeric name of the account. This value must include all leading zeros.
lineLevel (required)booleanIndicates if the response detail shows by line or by the overall account. true - Details for each line returned. false - Details for the account in general returned.
billingCycle (required)objectThe billing cycle object contains the starting (from) year, month and ending (to) year, month of the cycle being queried. Note: For all data in the same month, the same month value is used as the start and end month. "from" and "to" are inclusive.
from (required)objectThe billing cycle start date.
year (required)integerThe 4 digit year of the billing cycle being queried.
month (required)integerThe numeric month value, 1 through 12, of the billing cycle being queried. 1 is January, 2 is February, etc.
to (required)objectThe billing cycle end date.
year (required)integerThe 4 digit year of the billing cycle being queried.
month (required)integerThe numeric month value, 1 through 12, of the billing cycle being queried. 1 is January, 2 is February, etc.
deviceId (optional)objectThe Device ID object contains an ID value as well as a definition (kind) of what the type of ID value is listed. Valid values are: EID - Electronic ID. a 32 digit ID of the device, ICCID - Integrated Circuit Card Identification Number. The 18 to 22 digit idenitfier of the SIM card in the device.
deviceIds (optional)objectThe Device IDs (multiple) object contains an ID value as well as a definition (kind) of what the type of ID value is listed. Valid values are: IMEI - 15-digit International Mobile Equipment Identifier. Note: deviceId and deviceIds CANNOT be in the same request. If deviceIds is used, lineLevel MUST be set to "true".
label (optional)objectThe label object contains a user defined name and value. The example uses Vehicle ID Number (VIN), a 17-character alphanumeric value. Note: labels are not valid for APN.

Request Body

Example Request (no Device ID or Label)

{
    "accountName": "0000123456-00001",
    "lineLevel": true,
    "billingCycle": {
        "from": {
            "year": 2024,
            "month": 8
        },
        "to": {
            "year": 2024,
            "month": 9
        }
    }
}

Example Request (with Device ID)

{
   "accountName":"0000123456-00001",
   "billingCycle":{
      "from":{
         "year":2024,
         "month":8
      },
      "to":{
         "year":2024,
         "month":9
      }
   },
   "deviceId":{
      "kind":"EID",
      "id":"32-digit Electronic ID"
   }
}

Example Request (with Label)

{
   "accountName":"0000123456-00001",
   "billingCycle":{
      "from":{
         "year":2024,
         "month":8
      },
      "to":{
         "year":2024,
         "month":9
      }
   },
   "label":{
      "name":"VIN",
      "value":"17-character Vehicle ID Number"
   }
}

Example Request (with Device IDs)

{
    "accountName": "0000123456-00001",
    "lineLevel": true,
    "billingCycle": {
        "from": {
            "year": 2024,
            "month": 8
        },
        "to": {
            "year": 2024,
            "month": 9
        }
    },
    "deviceIds": [
        {
            "kind": "imei",
            "id": "15-digit IMEI"
        },
        {
            "kind": "imei",
            "id": "15-digit IMEI"
        }
    ]
}

Success Responses

Status 200

{
"requestId": "be36accb-eeee-ffff-gggg-0af6c4ed256a"
}

Failure Responses

All error messages are returned in this format:

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

Callback Examples

Accounts that are subscribed to Real-time Rating (RTR) will see usageApns. Accounts that are not subscribed to RTR will see ratingGroups. Per APN (no Device ID or Label):

{
   "requestId":"be36accb-eeee-ffff-gggg-0af6c4ed256a",
   "deviceResponse":{
      "billingUsageSummary":{
         "accountName":"0000123456-00001",
         "totalBilledAmount":392.5,
         "totalBilledUsage":4080000,
         "totalUsage":408000,
         "unitOfMeasure":"BYTES",
         "usageApns":[
            {
               "billedAmount":200.5,
               "billedUsage":2160000,
               "totalUsage":2160000,
               "name":"name of the APN reporting",
               "pageNumber":0,
               "apnDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":179.5,
                        "totalBilledUsage":179.5,
                        "totalUsage":1950000
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":21.0,
                        "totalBilledUsage":21.0,
                        "totalUsage":210000
                     }
                  ]
               }
            },
            {
               "billedAmount":192.0,
               "billedUsage":1920000,
               "name":"name of the APN reporting",
               "pageNumber":0,
               "apnDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":0.0,
                        "totalBilledUsage":179.5,
                        "totalUsage":1795000
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":192.0,
                        "totalBilledUsage":179.5
                        "totalUsage":1795000
                     }
                  ]
               }
            }
         ],
         "billingCycle":{
            "from":{
               "year":2024,
               "month":8
            },
            "to":{
               "year":2024,
               "month":9
            }
         }
      }
   },
   "status":"SUCCESS",
   "callbackCount":1,
   "maxCallbackThreshold":4
}

Per APN (with Device ID):

{
   "requestId":"be36accb-eeee-ffff-gggg-0af6c4ed256a",
   "deviceResponse":{
      "billingUsageSummary":{
         "accountName":"0000123456-00001",
         "totalBilledAmount":392.5,
         "totalBilledUsage":4080000,
         "totalUsage":408000,
         "unitOfMeasure":"BYTES",
         "deviceIdentifier": {
           "id": "22-digit ICCID",
           "kind": "ICCID"
         "usageApns":[
            {
               "billedAmount":200.5,
               "billedUsage":2160000,
               "totalUsage":2160000,
               "name":"name of the APN reporting",
               "pageNumber":0,
               "apnDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":179.5,
                        "totalBilledUsage":179.5,
                        "totalUsage":1950000
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":21.0,
                        "totalBilledUsage":21.0,
                        "totalUsage":210000
                     }
                  ]
               }
            },
            {
               "billedAmount":192.0,
               "billedUsage":1920000,
               "name":"name of the APN reporting",
               "pageNumber":0,
               "apnDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":0.0,
                        "totalBilledUsage":179.5,
                        "totalUsage":1795000
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "countryCode":"US",
                        "totalChargeAmount":192.0,
                        "totalBilledUsage":179.5
                        "totalUsage":1795000
                     }
                  ]
               }
            }
         ],
         "billingCycle":{
            "from":{
               "year":2024,
               "month":8
            },
            "to":{
               "year":2024,
               "month":9
            }
         }
      }
   },
   "status":"SUCCESS",
   "callbackCount":1,
   "maxCallbackThreshold":4
}

Per ratingGroup (no Device ID or Label):

{
   "requestId":"be36accb-eeee-ffff-gggg-0af6c4ed256a",
   "deviceResponse":{
      "billingUsageSummary":{
         "accountName":"0000123456-00001",
         "totalBilledAmount":3821.3,
         "totalBilledUsage":30700000,
         "totalUsage":30700000,
         "unitOfMeasure": "BYTES",
         "usageSegments":[
            {
               "ratingGroup":"user defined group name",
               "ratingGroupBilledAmount":3821.3,
               "ratingGroupBilledUsage":30700000,
               "ratingGroupTotalUsage":30700000,
               "ratingGroupDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "chargeAmount":600.5,
                        "totalBilledUsage":5500000,
                        "totalUsage":5500000,
                        "countryCode":"MX"
                     },
                     {
                        "chargeAmount":1300.0,
                        "totalBilledUsage":10000000,
                        "totalUsage":5500000,
                        "countryCode":"US"
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "chargeAmount":610.4,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"CA"
                     },
                     {
                        "chargeAmount":710.4,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"MX"
                     },
                     {
                        "chargeAmount":600.0,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"US"
                     }
                  ]
               }
            }
         ],
         "billingCycle":{
            "from":{
               "year":2024,
               "month":8
            },
            "to":{
               "year":2024,
               "month":9
            }
         }
      }
   },
   "status":"SUCCESS",
   "callbackCount":1,
   "maxCallbackThreshold":4
}

Per ratingGroup (with Device ID):

{
   "requestId":"be36accb-eeee-ffff-gggg-0af6c4ed256a",
   "deviceResponse":{
      "billingUsageSummary":{
         "accountName":"0000123456-00001",
         "totalBilledAmount":3821.3,
         "totalBilledUsage":30700000,
         "totalUsage":30700000,
         "unitOfMeasure": "BYTES",
         "deviceIdentifier": {
            "id": "32-digit Electronic ID",
            "kind": "EID"
         "usageSegments":[
            {
               "ratingGroup":"user defined group name",
               "ratingGroupBilledAmount":3821.3,
               "ratingGroupBilledUsage":30700000,
               "ratingGroupTotalUsage":30700000,
               "ratingGroupDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "chargeAmount":600.5,
                        "totalBilledUsage":5500000,
                        "totalUsage":5500000,
                        "countryCode":"MX"
                     },
                     {
                        "chargeAmount":1300.0,
                        "totalBilledUsage":10000000,
                        "totalUsage":5500000,
                        "countryCode":"US"
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "chargeAmount":610.4,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"CA"
                     },
                     {
                        "chargeAmount":710.4,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"MX"
                     },
                     {
                        "chargeAmount":600.0,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"US"
                     }
                  ]
               }
            }
         ],
         "billingCycle":{
            "from":{
               "year":2024,
               "month":8
            },
            "to":{
               "year":2024,
               "month":9
            }
         }
      }
   },
   "status":"SUCCESS",
   "callbackCount":1,
   "maxCallbackThreshold":4
}

Per ratingGroup (with label):

{
   "requestId":"be36accb-eeee-ffff-gggg-0af6c4ed256a",
   "deviceResponse":{
      "billingUsageSummary":{
         "accountName":"0000123456-00001",
         "totalBilledAmount":3821.3,
         "totalBilledUsage":30700000,
         "totalUsage":30700000,
         "unitOfMeasure": "BYTES",
         "label": {
            "name": "VIN",
            "value": "17-character Vehicle ID Number"
         "usageSegments":[
            {
               "ratingGroup":"user defined group name",
               "ratingGroupBilledAmount":3821.3,
               "ratingGroupBilledUsage":30700000,
               "ratingGroupTotalUsage":30700000,
               "ratingGroupDetails":{
                  "totalDelayedUsageDetails":[
                     {
                        "chargeAmount":600.5,
                        "totalBilledUsage":5500000,
                        "totalUsage":5500000,
                        "countryCode":"MX"
                     },
                     {
                        "chargeAmount":1300.0,
                        "totalBilledUsage":10000000,
                        "totalUsage":5500000,
                        "countryCode":"US"
                     }
                  ],
                  "totalUsageDetails":[
                     {
                        "chargeAmount":610.4,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"CA"
                     },
                     {
                        "chargeAmount":710.4,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"MX"
                     },
                     {
                        "chargeAmount":600.0,
                        "totalBilledUsage":5100000,
                        "totalUsage" :5500000,
                        "countryCode":"US"
                     }
                  ]
               }
            }
         ],
         "billingCycle":{
            "from":{
               "year":2024,
               "month":8
            },
            "to":{
               "year":2024,
               "month":9
            }
         }
      }
   },
   "status":"SUCCESS",
   "callbackCount":1,
   "maxCallbackThreshold":4
}

Using lineLevel with value "true"

{
  "requestId": "be36accb-eeee-ffff-gggg-0af6c4ed256a",
  "deviceResponse": {
    "billingUsageSummary": {
      "accountName": "0000123456-00001",
      "totalBilledAmount": 1993.4,
      "totalBilledUsage": 59935,
      "totalUsage": 72378,
      "unitOfMeasure": "BYTES",
      "billingCycle": {
        "from": {
          "year": 2023,
          "month": 8
        },
        "to": {
          "year": 2023,
          "month": 9
        }
      },
      "pageNumber": 1,
      "totalPages": 1,
      "devices": [
        {
          "deviceIdentifier": {
            "id": "15-digit IMEI",
            "kind": "imei"
          },
          "totalBilledAmount": 1993.0,
          "totalBilledUsage": 59935,
          "totalUsage": 72378,
          "usageApns": [
            {
              "billedAmount": 1993.4,
              "billedUsage": 59935,
              "name": "APN name",
              "totalUsage": 72378,
              "apnDetails": {
                "totalUsageDetails": [
                  {
                    "countryCode": "USA",
                    "totalChargeAmount": 1993.4,
                    "totalBilledUsage": 59935,
                    "totalUsage": 72378
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  },
  "status": "SUCCESS",
  "callbackCount": 1,
  "maxCallbackThreshold": 4
}

Callback Parameters

Parameter NameData TypeDescription
requestIdstringThe system generated ID of the callback request.
deviceResponseobjectThe response back from an active device.
billingUsageSummaryobjectThe complete summary of billed usage in the account.
accountNamestringThe name of a billing account. An account name is usually numeric, and must include any leading zeros.
totalBilledAmountnumber (float)The total dollar amount billed for the specified billing cycle.
totalBilledUsageinteger (long)Total usage being billed in units defined by unitOfMeasure.
totalUsageinteger (long)The total amount of usage in the units defined in unitOfMeasure.
unitOfMeasurestringThe unit of measurement for values displayed.
labelobjectA user defined label containing a name and a value. Labels are only displayed if the request contained one or more labels. Note: labels are not valid for APN.
deviceIdentifierobjectEither the kind EID or ICCID and its ID value. Device IDs are only displayed if the request contained a device ID.
usageAPNsarrayThe array contains all of the usage information by APN value. Note: Usage by APN is only valid for accounts subscribed to RTR.
billedAmountnumber (float)The dollar amount the usage represents.
billedUsageinteger (long)Total of usage billed in units defined by unitOfMeasure.
totalUsageinteger (long)Total of usage in units defined by unitOfMeasure.
namestringThe name of the Access Point (APN) reporting.
pageNumberintegerThe number of pages returned. Note: This value will only be displayed for APN requests not using a device ID.
apnDetailsobjectBreaks down the billing and usage details by current and delayed usage.
totalDelayedUsageDetailsarrayUsage captured but not billed in this cycle.
countryCodestring2-letter country code of where the usage occured. Conforms to ISO-3166.
totalUsageinteger (long)Total usage in the units defined in unitOfMeasure.
totalChargeAmountnumber (float)Dollar value of the usage.
totalBilledUsagenumber (float)Total usage being billed in units defined by unitOfMeasure.
totalUsageDetailsarrayCurrent usage details.
countryCodestring2-letter country code of where the usage occured. Conforms to ISO-3166.
totalUsageinteger (long)Total usage in the units defined in unitOfMeasure.
totalChargeAmountnumber (float)Dollar value of the usage.
totalBilledUsagenumber (float)Total usage being billed in units defined by unitOfMeasure.
usageSegmentsarrayThe array contains all of the usage information by ratingGroup. Note: Details by ratingGroup are only valid for accounts that are not subscribed to RTR.
ratingGroupstringThe user defined name of the ratingGroup.
ratingGroupBilledUsageinteger (long)Total of usage billed for in units defined in unitOfMeasure.
ratingGroupTotalUsageinteger (long)Total of usage for the rating group in units defined in unitOfMeasure.
ratingGroupBilledAmountnumber (float)Dollar value of the usage.
ratingGroupDetailsobjectBreaks down the billing and usage details by current and delayed usage.
totalDelayedUsageDetailsarrayUsage captured but not billed in this cycle.
chargeAmountnumber (float)The dollar value of the billed amount.
totalBilledUsageinteger (long)Total usage billed for in the units defined in unitOfMeasure.
totalUsageinteger (long)Total usage recorded in the units defined in unitOfMeasure.
countryCodestring2-letter country code of where the usage occured. Conforms to ISO-3166.
totalUsageDetailsarrayCurrent usage details.
chargeAmountnumber (float)The dollar value of the billed amount.
totalBilledUsageinteger (long)Total usage being billed in units defined by unitOfMeasure.
totalUsageinteger (long)Total usage recorded in the units defined in unitOfMeasure.
countryCodestring2-letter country code of where the usage occured. Conforms to ISO-3166.
monthintegerThe numeric month value, 1 through 12, of the billing cycle being queried. 1 is January, 2 is February, etc.
toobjectThe billing cycle end date.
yearintegerThe 4 digit year of the billing cycle being queried.
monthintegerThe numeric month value, 1 through 12, of the billing cycle being queried. 1 is January, 2 is February, etc.
statusstringIndicates the status of the callback. Valid values are: SUCCESS or FAILED.
callbackCountintegerThe number of callbacks returned for this request.
maxCallbackThresholdintegerThe maximum number of callbacks allowed for this request.

On this page