Standard APIsRules Engine 2.0API Reference

Retrieve Rate Plan List

Retrieve the Rate Plan List

GET /v2/triggers/rateplanlist/{ecpdId}

Retrieves the rate plans and rate plan details for an account.

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 bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token: VZ-M2M-Token: {M2Mtoken}
Content-Type (required)stringMust be application/json Content-Type: application/json

HTTP Request

GET https://thingspace.verizon.com/api/m2m/v2/triggers/rateplanlist/{ecpdId}

Resource Path and Query Parameters

Parameter NameData TypeDescription
ecpdId (required)stringThe Enterprise Customer Profile Database ID (ECPD ID), which is the same value as the accountName.

Success Responses

Status 200

Example Success Response:

{
    "ratePlanGroup": [
        {
            "ratePlanGroupDescription": "AGS Description_73",
            "ratePlanType": "AccountShareGroup",
            "ratePlan": [
                {
                    "description": "PlanDescription 1",
                    "sizeKb": 512000,
                    "carrierRatePlanCode": "6666893",
                    "zeroDollarBilling": false,
                    "promotionOffered": false,
                    "promotionDays": -2147483648,
                    "ratePlanType": "AccountShare",
                    "account": [
                        {
                            "accountName": "0000123456-00001",
                            "mtasAccountNumber": "0000123456-00001"
                        },
                        {
                            "accountName": "0000123456-00001",
                            "mtasAccountNumber": "0000123456-00001"
                        }
                    ]
                },
                {
                    "description": "PlanDescription 2",
                    "sizeKb": 1048576,
                    "carrierRatePlanCode": "6666894",
                    "zeroDollarBilling": false,
                    "promotionOffered": false,
                    "promotionDays": -2147483648,
                    "ratePlanType": "AccountShare",
                    "account": [
                        {
                            "accountName": "0000123456-00001",
                            "mtasAccountNumber": "0000123456-00001"
                        },
                        {
                            "accountName": "0000123456-00001",
                            "mtasAccountNumber": "0000123456-00001"
                        }
                    ]
                }
            ]
        }
    ]
}

Success Parameters

Parameter NameData TypeDescription
ratePlanGrouparrayAn array of the rate plan groups and the details of the rate plans within the group.
ratePlanGroup.ratePlanGroupDescriptionstringThe description of the rate plan group.
ratePlanGroup.ratePlanTypestringThe type of the rate plan group.
ratePlanGroup.ratePlanarrayContains all the rate plans and their details for a specific profile ID
ratePlanGroup.ratePlan.descriptionstringThe description of the service plan.
ratePlanGroup.ratePlan.sizeKbstringThe allowance of the service plan in increments of Kilobytes (1,024 Bytes).
ratePlanGroup.ratePlan.carrierRatePlanCodestringThe numeric service plan ID.
ratePlanGroup.ratePlan.zeroDollarBillingbooleanIf the rate plan bills for zero dollars:
true - The rate plan bills for zero dollars
false - the rate plan bills based on the rate plan code
ratePlanGroup.ratePlan.promotionOfferedbooleanIf there is a promotion associated with the rate plan:
true - there is a promotion offered
false - there is no promotion
ratePlanGroup.ratePlan.promotionDaysintegerThe number of whole days the promotion will last, if offered.
Note: if no promotion offered, this value will show as "-2147483648"
ratePlanGroup.ratePlan.ratePlanTypestringThis will show the type of rate plan the record is for. Valid values are:
StandAlone
AccountGroupShare
PayAsYouGo
AccountShare
DeviceGroupShare
ratePlanGroup.ratePlan.accountarrayAn array of the individual account IDs associated with the accountName
ratePlanGroup.ratePlan.account.accountNamestringThe numeric billing account name and must include any leading zeros
ratePlanGroup.ratePlan.account.mtasAccountNumberstringThe numeric billing account number and must include any leading zeros

Failure Responses

All error messages are returned in this format:

{
  "error": "error code string",
  "error_description": "error message string",
}

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page