Skip to main content
Aria Knowledge Central

delete_plans_m Sample Call and Response

This example shows a client deleting two individual plans, identified by their Aria-assigned plan numbers, that no customer has ever subscribed to. It is based on the delete_plans_m method as defined in methods_m_r73.yml, Admin Tools API. This method removes individual plans; it is distinct from delete_plan_group_m, which removes an entire plan group instead of the plans within it.

This example includes the only substantive input field the method accepts, plan_nos, and shows a representative response for two deleted plans rather than an exhaustive list of every plan a client might delete in one call.

Sample call

{
  "rest_call": "delete_plans_m",
  "output_format": "json",
  "client_no": 10023,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "plan_nos": [88041, 88042]
}

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, and plan_nos carries the Aria-assigned plan numbers to delete. The yml models plan_nos with struct: array and type: long, the same pattern used elsewhere in this family, so this example represents it as a flat JSON array of long values.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "plans": [
    {
      "plan_no": 88041,
      "plan_name": "Starter Monthly - Legacy"
    },
    {
      "plan_no": 88042,
      "plan_name": "Starter Annual - Legacy"
    }
  ]
}

An error_code of zero, paired with an error_msg of “OK,” indicates that Aria deleted both plans successfully. The plans array holds one entry per deleted plan; a call that deletes more plans would return one entry for each. Each entry shown here includes only plan_no and plan_name, the two public fields on this return structure. The remaining fields the yml defines for this array (plan_level, client_plan_id, billing_interval, active_ind, and plan_desc) are internal placeholders not populated for client use, so this example leaves them out entirely.

TOP
  • Was this article helpful?