update_acct_plan_multi_m Sample Call and Response
This example shows a call that performs multiple plan operations on an account in a single atomic request, based on the update_acct_plan_multi_m method defined in plsql_m_r73.yml.
The example combines two entries in the plan_updates array: one that assigns a new supplemental plan, and one that updates the unit count on an existing plan instance, illustrating why this method is the “multi” counterpart to update_acct_plan_m. It does not cover billing group or dunning group directives, payment method changes, coupon or surcharge updates, non-subscription order items, or installment updates, all of which can also appear as entries in the same array.
Sample call
{
"rest_call": "update_acct_plan_multi_m",
"output_format": "json",
"client_no": 1073,
"auth_key": "b19b2b3a4c5d6e7f8091a2b3c4d5e6f7",
"acct_no": 3300521,
"plan_updates": [
{
"plan_directive": 1,
"new_plan_no": 50231,
"plan_units": 1,
"promo_cd": "ADDCARE10"
},
{
"plan_directive": 3,
"existing_plan_instance_no": 9004512,
"plan_units": 10,
"effective_date": "2026-08-01"
}
]
}
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; this example uses the Aria-assigned account number. auth_key is required for this method, unlike some other methods where it is optional. plan_updates is the required array carrying every plan operation in the call; internally Aria transmits this array as an XML-encoded value, but at the REST layer it is expressed as a JSON array as shown here. Each entry’s plan_directive selects the operation to perform: one assigns a new plan instance, two replaces the plan on an existing instance, three updates attributes on an existing instance without changing the plan, and four cancels an instance. The first entry assigns a new supplemental plan (directive one) using new_plan_no, one purchased unit, and a promotion code; it needs no existing_plan_instance_no because it creates a new instance. The second entry updates the master plan instance identified by existing_plan_instance_no (directive three), adding ten units effective the given date. Left out of this example: billing_group_directive and its related billing group fields, dunning_group_directive and its related dunning group fields, the primary and backup payment method fields (primary_payment_method_no, cc_num, bank account fields, and so on), coupon_code_updates, surcharge_updates, custom_rates, nso_item_array, plan_service_updates, installment_updates, order_line_items and the related order fields, plan_status_cd, dunning_state, degrade_date, resp_level_cd and related responsible-account fields, alt_rate_schedule_no, proration_invoice_timing, usage_pooling, usage_threshold_applicability, plan_instance_field_update, and the plan unit instance assignment/removal arrays.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"out_acct_no": 3300521,
"plans_updated": [
{
"plan_instance_no": 9007788,
"plan_no": 50231,
"plan_name": "Overage Protection Add-On",
"plan_operation": 1
},
{
"plan_instance_no": 9004512,
"plan_no": 40110,
"plan_name": "Business Pro Subscription",
"plan_operation": 3
}
]
}
An error_code of zero together with an error_msg of “OK” indicates that Aria applied every entry in the request successfully. plans_updated is a repeatable array with one entry per plan instance affected by the call; this example shows two entries, matching the two entries submitted in the request. Each entry’s plan_operation confirms which operation Aria actually performed: one means the plan was assigned and a new plan instance was created, and three means an existing plan instance was updated. Additional entries would appear in the same array if more plan instances were affected. Left out of this response: out_client_acct_id, billing_errors, plan_unit_instance_details, the proration amount fields (proration_credit_result_amount, proration_credit_amount, proration_tax_amount), plan_service_proration_results, billing_groups_updated, dunning_groups_updated, multi_plan_invoice_details, billing_contact_details, statement_contact_details, other_contact_details, plan_instance_queue, third_party_errors, cc_auth_details, installments_updated, payment_method_proc_response, and mpi_orders_created.