Skip to main content
Aria Knowledge Central

update_acct_plan_status_m Sample Call and Response

This example shows a call that sets the status of a master or supplemental plan for a given account, based on the update_acct_plan_status_m method defined in plsql_m_r73.yml.

The example queues a plan instance for cancellation on a future date. It does not cover setting the dunning state directly, resetting billing dates, or queuing the change by a number of days rather than a specific date.

Sample call

{
  "rest_call": "update_acct_plan_status_m",
  "output_format": "json",
  "client_no": 1073,
  "auth_key": "b19b2b3a4c5d6e7f8091a2b3c4d5e6f7",
  "acct_no": 3300521,
  "plan_instance_no": 9004512,
  "status_cd": 2,
  "queue_date": "2026-08-15",
  "comments": "Customer requested cancellation effective at the end of the current billing term."
}

rest_call and output_format are envelope fields added by the REST layer. acct_no is one side of an alternative pair with client_acct_id, and plan_instance_no is one side of an alternative pair with client_plan_instance_id; this example uses the Aria-assigned identifiers for both. status_cd uses the enumerated value two, meaning cancellation pending; other allowable values include zero (inactive), one (active), three (termination pending), thirty-one (installation pending), thirty-two (registered pending activation), forty-one (active trial), sixty-one (active non-billable), negative one (suspended), negative two (cancelled), and negative three (terminated). queue_date is one side of an alternative pair with queue_days; this example schedules the change for a specific calendar date rather than a number of days out. Left out of this example: dunning_state and degrade_date, which apply only to master plan instances and are not needed alongside status_cd for this supplemental plan scenario; force_bill_date_reset; client_receipt_id; and new_dunning_step, config_dunning_late_fee_option, and config_dunning_email_option.

Sample response

{
  "error_code": 0,
  "error_msg": "OK"
}

An error_code of zero together with an error_msg of “OK” indicates that Aria queued the status change successfully. This method returns no other output fields beyond the error indicators, so there are no arrays or additional sections to illustrate.

TOP
  • Was this article helpful?