Skip to main content
Aria Knowledge Central

edit_installment_term_m Sample Call and Response

This example shows a client editing an existing, independent installment term used for a one thousand two hundred dollar phone purchase, adjusting its schedule, its due dates, and the lump sum charged toward the purchase. It is based on the edit_installment_term_m method as defined in methods_m_r73.yml, Admin Tools API.

This example includes the required identifier for the installment term being edited, plus a coherent, representative subset of the optional scheduling and lump sum fields that apply when the term is not aligned with a master plan instance. It does not cover the aligned_installment equals Y (Yes) scenario, whose fields, term_type, installment_term_interval, days_to_start, days_until_due, lump_sum_days, and aligned_lump_sum, either do not apply or carry different meaning in that mode.

Sample call

{
  "rest_call": "edit_installment_term_m",
  "output_format": "json",
  "client_no": 10023,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "installment_term_no": 9042,
  "installment_term_name": "Phone Purchase - 10 Month Plan",
  "installment_term_description": "Ten month installment schedule for a one thousand two hundred dollar phone purchase, with a two hundred dollar lump sum",
  "aligned_installment": "N",
  "term_type": "M",
  "term_length": 10,
  "installment_term_interval": 1,
  "days_to_start": 0,
  "days_until_due": 15,
  "lump_sum_type": "P",
  "lump_sum_amount": 200.00,
  "lump_sum_days": 3,
  "lump_sum_days_until_due": 5
}

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. The method accepts two alternative ways to identify the installment term being edited: installment_term_no, the Aria-assigned numeric identifier, or client_installment_term_id, a client-defined identifier. This example uses installment_term_no and omits client_installment_term_id, since the method requires exactly one of the two. The aligned_installment field is set to N (No), meaning the installment follows its own independent schedule and due dates rather than being aligned with an existing master plan instance's anniversary statements; the alternative value, Y (Yes), would make term_type, installment_term_interval, days_to_start, days_until_due, and lump_sum_days irrelevant and would instead bring aligned_lump_sum into play. With term_type set to M (Months), term_length of ten, and installment_term_interval of one, the ten month installment term charges once every month. The days_to_start value of zero means the first installment starts on the purchase or invoice date, and days_until_due of fifteen means each installment becomes due fifteen days after the customer is notified. The lump_sum_type value of P (proportionately split charge or tax) means the lump_sum_amount of two hundred dollars reduces the total amount spread across the installment schedule, matching the yml’s own example of a phone purchase where a lump sum lowers the remaining balance before it is divided across the term; the alternative value, T, would instead apply the lump sum to purchase tax only, and would not require lump_sum_amount. The lump_sum_days value of three means the lump sum is charged three days after the invoice date, and lump_sum_days_until_due of five means the lump sum becomes due five days after the customer is notified of it.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "installment_term_no": 9042,
  "client_installment_term_id": "PHONE-PLAN-1200"
}

An error_code of zero, paired with an error_msg of “OK,” indicates that Aria updated the installment term successfully. The response echoes back both installment_term_no, the Aria-assigned identifier used in this call, and client_installment_term_id, the corresponding client-defined identifier for the same term, even though this example identified the term by its numeric identifier alone. This example leaves out nothing else from the method’s return structure; the full response consists only of the error indicators and these two identifiers.

TOP
  • Was this article helpful?