get_supp_plans_by_promo_code_m Sample Call and Response
This example retrieves a summary list of supplemental plans associated with a specified promotion code, based on the get_supp_plans_by_promo_code_m method defined in plsql_m_r73.yml.
This example includes every required field and one representative optional field. It does not cover every optional field the method accepts.
Sample call
{
"rest_call": "get_supp_plans_by_promo_code_m",
"output_format": "json",
"client_no": 1275,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"promo_code": "SUMMER2026",
"include_translations": "false"
}
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 promo_code field is required and identifies the promotion whose associated supplemental plans you want to retrieve. The include_translations field is set to false, meaning the response does not include translated plan name and description fields for other locales; this example also leaves out the locale_no and locale_name fields, which form an alternative pair used only when include_translations is requested for a specific locale. 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",
"plans_details": [
{
"plan_no": 30442,
"plan_name": "Streaming Add-On - Standard",
"plan_desc": "Supplemental streaming plan bundled with the Summer 2026 promotion.",
"billing_ind": 1,
"display_ind": 1,
"currency_cd": "usd",
"client_plan_id": "STREAM-STD-2026"
},
{
"plan_no": 30443,
"plan_name": "Streaming Add-On - Premium",
"plan_desc": "Higher-tier supplemental streaming plan bundled with the Summer 2026 promotion.",
"billing_ind": 1,
"display_ind": 1,
"currency_cd": "usd",
"client_plan_id": "STREAM-PRM-2026"
}
]
}
An error_code of zero, together with an error_msg of "OK," indicates that Aria located the promotion code and returned its associated supplemental plans successfully. The plans_details array is shown here with two entries to illustrate that a promotion code can grant access to more than one supplemental plan; an actual response could contain additional entries beyond what is shown here. This example omits several optional plan-level fields the yml defines, including prepaid_ind, proration_invoice_timing_cd, rollover_months, rollover_plan_no, early_cancel_fee, suspension_period, new_acct_status, default_notify_method, the rollover_acct_status fields, init_free_months, plan_2_assign_on_susp, client_rollover_plan_id, client_plan_id_2_assign_on_susp, the contract_rollover fields, plan_rate_schedules_details, and plan_translation_info, to keep the summary focused on a small, coherent set of plan details.
To distinguish this method from the similarly named get_supp_plans_by_promo_code_all_m: this method's own description calls its output a "summary list" of supplemental plans, and the include_rs_summary argument it lists is marked as unused for this method in this release, so it has no real effect here, and this method does not offer the retrieve_bundled_nso or retrieve_included_nso arguments at all. get_supp_plans_by_promo_code_all_m, by contrast, describes its output as a "detailed list" and lets the caller actually pull in rate schedule summaries and bundled or included inventory items for each plan.