Skip to main content
Aria Knowledge Central

get_acct_plans_m Sample Call and Response

This example retrieves the plan-level details of the master and supplemental plans assigned to an account, based on the get_acct_plans_m method defined in plsql_m_r73.yml.

This example includes every required field. Unlike get_acct_plans_all_m, this method takes only an account identifier and an optional locale as arguments, with no include_ flags or filter arrays, and its response covers plan-level fields only, without the nested service, rate schedule, product field, or surcharge arrays that get_acct_plans_all_m returns; this example reflects that narrower, plan-level scope rather than every optional field the method accepts.

Sample call

{
  "rest_call": "get_acct_plans_m",
  "output_format": "json",
  "client_no": 3001,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "acct_no": 900154321
}

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. You identify the account using acct_no, the Aria-assigned account identifier, which is one side of an alternative pair with the client-defined client_acct_id; this example uses acct_no. This example leaves out the locale_no and locale_name alternative pair, which would request translated field values for the response. It also does not set limit or offset, since both of those fields carry nonpublic: true in this method's own definition and are for internal use only here, unlike the public, client-settable limit and offset fields on get_acct_plans_all_m.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "acct_plans_m": [
    {
      "plan_no": 4021,
      "plan_name": "Enterprise Pro",
      "plan_desc": "Enterprise-tier subscription plan with premium support",
      "plan_instance_no": 7734101,
      "client_plan_instance_id": "MPI-ENT-9921",
      "plan_date": "2025-01-15",
      "plan_units": 1,
      "last_bill_date": "2026-07-01",
      "next_bill_date": "2026-08-01",
      "bill_thru_date": "2026-07-31",
      "bill_day": 1,
      "billing_ind": 1,
      "display_ind": 1,
      "prepaid_ind": 0,
      "currency_cd": "usd",
      "rate_schedule_no": 305,
      "rate_schedule_name": "Enterprise Monthly Rate Schedule",
      "rate_sched_is_default_ind": 1,
      "supp_plan_ind": 0,
      "plan_instance_status_cd": 1,
      "plan_instance_status_label": "Active",
      "plan_instance_status_date": "2025-01-15",
      "dunning_state": 0,
      "plan_assignment_date": "2025-01-15",
      "client_plan_id": "ENTERPRISE-PRO",
      "client_rate_schedule_id": "ENT-MONTHLY"
    },
    {
      "plan_no": 4550,
      "plan_name": "Additional Storage Add-on",
      "plan_desc": "Supplemental plan providing extra storage capacity",
      "plan_instance_no": 7734188,
      "client_plan_instance_id": "SPI-STORAGE-4471",
      "plan_date": "2025-06-01",
      "plan_units": 100,
      "last_bill_date": "2026-07-01",
      "next_bill_date": "2026-08-01",
      "bill_thru_date": "2026-07-31",
      "bill_day": 1,
      "billing_ind": 1,
      "display_ind": 1,
      "prepaid_ind": 0,
      "currency_cd": "usd",
      "rate_schedule_no": 410,
      "rate_schedule_name": "Storage Add-on Rate Schedule",
      "rate_sched_is_default_ind": 1,
      "supp_plan_ind": 1,
      "plan_instance_status_cd": 1,
      "plan_instance_status_label": "Active",
      "plan_instance_status_date": "2025-06-01",
      "plan_assignment_date": "2025-06-01",
      "client_plan_id": "ADDL-STORAGE",
      "client_rate_schedule_id": "STORAGE-STD",
      "master_plan_instance_no": 7734101,
      "client_master_plan_instance_id": "MPI-ENT-9921"
    }
  ],
  "acct_locale_name": "English (United States)"
}

An error_code value of 0 and an error_msg value of “OK” indicate that Aria processed the request successfully. The acct_plans_m array holds one entry per plan instance assigned to the account; this example shows two representative entries, a master plan (supp_plan_ind 0) and its supplemental plan (supp_plan_ind 1), though an account with more assigned plans would return more. The plan_instance_status_cd value of 1, paired with plan_instance_status_label “Active”, means both plan instances are currently active, and rate_sched_is_default_ind 1 on both entries means each plan instance is using its plan's default rate schedule rather than an alternate one. This example leaves out acct_locale_no entirely, since that field carries a deprecate_version in the yml, using acct_locale_no_2 or acct_locale_name instead where a locale identifier needs to be shown; here, only acct_locale_name is included. It also leaves out several optional fields on each plan entry, including rollover_months, rollover_plan_no, contract_rollover_plan_no and related contract rollover fields, dunning_step, dunning_degrade_date, and po_num.

TOP
  • Was this article helpful?