get_supp_plans_by_supp_field_m Sample Call and Response
This example retrieves a list of supplemental plans associated with a specified value for a supplemental object field, based on the get_supp_plans_by_supp_field_m method defined in plsql_m_r73.yml.
This example includes every required field and one representative optional field used to identify the supplemental field by name. It does not cover every optional field the method accepts.
Sample call
{
"rest_call": "get_supp_plans_by_supp_field_m",
"output_format": "json",
"client_no": 1275,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"field_name": "loyalty_tier",
"field_val": "gold"
}
The rest_call and output_format fields form the envelope that the REST layer adds to every call; they are not part of the method's own documented arguments. The field_val field is required and holds the value that all returned plans must share for the specified supplemental field. The field_name field is one of two optional ways to identify the supplemental field itself; this example uses field_name rather than the Aria-assigned field_no, since the field's name is more readily available to a typical integrator. This example does not include the include_rs_summary field, which the yml still lists among this method's arguments but marks as unused in this release, so setting it would have no real effect on the response.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"supp_plans_dtl_by_supp_field": [
{
"plan_no": 30512,
"plan_name": "Gold Tier Concierge Add-On",
"plan_desc": "Supplemental plan available only to accounts flagged with the Gold loyalty tier.",
"billing_ind": 1,
"display_ind": 1,
"prepaid_ind": 0,
"currency_cd": "usd",
"client_plan_id": "LOY-GOLD-CONCIERGE"
},
{
"plan_no": 30513,
"plan_name": "Gold Tier Priority Support Add-On",
"plan_desc": "Supplemental plan providing priority support for Gold loyalty tier accounts.",
"billing_ind": 1,
"display_ind": 1,
"prepaid_ind": 0,
"currency_cd": "usd",
"client_plan_id": "LOY-GOLD-SUPPORT"
}
]
}
An error_code of zero, together with an error_msg of "OK," indicates that Aria located plans associated with the specified supplemental field value successfully. The supp_plans_dtl_by_supp_field array is shown here with two entries to illustrate that more than one supplemental plan can share the same supplemental field value; an actual response could contain additional entries beyond what is shown here. This example omits several optional plan-level fields the yml defines, including rollover_months, rollover_plan_no, plan_2_assign_on_susp, default_notify_method, proration_invoice_timing_cd, client_rollover_plan_id, client_plan_id_2_assign_on_susp, the contract_rollover fields, and plan_translation_info, to keep the example focused on a small, coherent set of plan details. It also excludes several fields the yml marks as internal and nonpublic for this method's returns, such as rollover_acct_status_days, early_cancel_min_months, suspension_period, new_acct_status, early_cancel_fee, rollover_acct_status, and init_free_months.