get_plan_group_details_m Sample Call and Response
This example retrieves the details of a single plan group, including the plans it contains, based on the get_plan_group_details_m definition in methods_m_r73.yml. The plan group in this example, Consumer Mobile Plans, is the same group referenced by group_no 8801 in the get_plan_groups_m example.
This example covers the required plan group identifier and the resulting group attributes and member plans. It does not cover the full list of every plan group a client has configured; that summary list is returned by the related get_plan_groups_m method, described separately.
Sample call
{
"rest_call": "get_plan_group_details_m",
"output_format": "json",
"client_no": 12345,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"group_no": 8801
}
The rest_call and output_format fields are envelope fields added by the REST layer rather than arguments defined in the yml file. Client_no and auth_key are required on every Admin Tools API call. Group_no is the required plan group identifier for this method; the yml file also allows client_plan_change_group_id as an alternative identifier, but this example uses the Aria-assigned numeric group_no. This example omits the optional locale_no, locale_name, and include_translations arguments, since it does not request translated field values.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"group_no": 8801,
"client_plan_change_group_id": "CONSUMER-MOBILE",
"group_name": "Consumer Mobile Plans",
"group_desc": "Master and supplemental plans available for consumer mobile subscribers.",
"group_usage": "3",
"plans": [
{
"plan_name": "Premium Unlimited 5G",
"plan_desc": "Master consumer plan offering unlimited 5G data and voice service with a twelve-month rollover to a legacy plan.",
"plan_no": 20456
},
{
"plan_name": "Standard Unlimited 4G",
"plan_desc": "Master consumer plan offering unlimited 4G data and voice service.",
"plan_no": 20120
},
{
"plan_name": "Basic Talk and Text",
"plan_desc": "Master consumer plan offering standard voice and text service without data.",
"plan_no": 19980
}
]
}
An error_code of 0 with error_msg of "OK" indicates the lookup succeeded. Group_usage of "3" means this plan group is shown in both the CSR tool and the USS portal; a value of "1" would mean CSR only and "2" would mean USS only. The plans array lists the master and supplemental plans currently assigned to this group; this example shows three representative entries rather than an exhaustive list, and plan 20456 matches the plan documented in the get_plan_details_m example. This example omits the optional plan_group_translation_info array, since the request does not set include_translations to request translated values, and it omits the nonpublic placeholder attributes plan_name, plan_level, client_plan_id, billing_interval, and active_ind that the yml file marks as unused duplicates within the plans array.