Skip to main content
Aria Knowledge Central

list_promo_sets_m Sample Call and Response

This example shows a client retrieving the list of promotional plan sets configured for its account. It is based on the list_promo_sets_m method as defined in methods_m_r73.yml, Admin Tools API.

This example covers only the retrieval of the promotional plan set list. It does not cover the plans contained within a given set or the promotions built on top of a set, which other methods in the Admin Tools API handle.

Sample call

{
  "rest_call": "list_promo_sets_m",
  "output_format": "json",
  "client_no": 10023,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}

The rest_call and output_format fields are not part of the method’s own documented arguments. The REST layer adds them to every call: rest_call names the method being invoked, and output_format requests a JSON response rather than the default WDDX format. Within the method’s own arguments, client_no and auth_key identify and authenticate the client making the call. The method accepts no other arguments; it always returns every promotional plan set configured for the client.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "promo_plan_set": [
    {
      "promo_plan_set_no": 7801,
      "promo_plan_set_name": "Spring Growth Bundle",
      "promo_plan_set_desc": "Discounted plan bundle offered during the spring acquisition campaign",
      "client_plan_type_id": "SPRING_GROWTH"
    },
    {
      "promo_plan_set_no": 7802,
      "promo_plan_set_name": "Enterprise Onboarding Set",
      "promo_plan_set_desc": "Plans made available to new enterprise accounts during their first contract term",
      "client_plan_type_id": "ENT_ONBOARD"
    }
  ]
}

An error_code of zero, paired with an error_msg of “OK,” indicates that Aria retrieved the promotional plan set list successfully. The promo_plan_set array is repeatable; this example shows two representative entries, but a client account could have additional sets configured. Each entry consists of promo_plan_set_no, the Aria-assigned identifier, promo_plan_set_name, promo_plan_set_desc, and the optional client_plan_type_id, a client-defined identifier for the set. This example leaves out plan_group, group_no, group_name, group_desc, client_plan_change_group_id, group_usage, and group_plans_count, all of which the yml file marks as unused placeholders that Aria does not populate.

TOP
  • Was this article helpful?