Skip to main content
Aria Knowledge Central

get_promo_plan_sets_m Sample Call and Response

This example shows a client retrieving the complete list of promotional plan sets defined for its account, based on the get_promo_plan_sets_m method defined in methods_m_r73.yml.

This example includes every required field for the call and a representative set of returned promotional plan set summaries. It does not cover the plans associated with each set; get_promo_plan_set_details_m covers that.

Sample call

{
  "rest_call": "get_promo_plan_sets_m",
  "output_format": "json",
  "client_no": 60123,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}

The rest_call and output_format fields are envelope fields that the REST layer adds to every call; neither appears in the method’s own documented arguments. The call requires only client_no, Aria’s identifier for the client requesting the list, and auth_key, the authentication key issued to that client. The method takes no filter arguments, since it always returns every promotional plan set defined for the client.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "promo_plan_set": [
    {
      "promo_plan_set_no": 5201,
      "promo_plan_set_name": "New Customer Welcome Set",
      "promo_plan_set_desc": "Plans eligible for the new customer welcome promotion.",
      "client_plan_type_id": "welcome-set"
    },
    {
      "promo_plan_set_no": 5202,
      "promo_plan_set_name": "Holiday Upgrade Set",
      "promo_plan_set_desc": "Plans eligible for the seasonal upgrade promotion.",
      "client_plan_type_id": "holiday-upgrade-set"
    }
  ]
}

An error_code of zero and an error_msg of “OK” indicate that the promotional plan set list was retrieved successfully. The promo_plan_set array holds one entry per set configured for the client; a real client could have more sets than the two entries shown here. Each entry carries only the set’s own identifying information (promo_plan_set_no, promo_plan_set_name, promo_plan_set_desc, and client_plan_type_id); the individual plans belonging to each set are returned only by get_promo_plan_set_details_m, not by this list-level method.

TOP
  • Was this article helpful?