get_unapplied_payments_m Sample Call and Response
This example retrieves the total unapplied payment amount for a given account, based on the get_unapplied_payments_m method defined in plsql_m_r73.yml.
This example includes every required field for a straightforward lookup by account number. It does not cover every optional field the method accepts.
Sample call
{
"rest_call": "get_unapplied_payments_m",
"output_format": "json",
"client_no": 1275,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"acct_no": 900412233
}
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. The acct_no field identifies the account and is one of two alternative fields for this purpose; this example uses the Aria-assigned acct_no rather than the client-defined client_acct_id.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"unapplied_payment_summary": 245.00
}
An error_code of zero, together with an error_msg of "OK," indicates that Aria located the account and returned its unapplied payment summary successfully. Unlike the similarly scoped get_unapplied_credits_payments_m method, which returns an itemized array of individual unapplied payment records, this method's own yml declaration lists its unapplied_payment_summary return field with no further attributes, so its type and description come from the shared param_defaults block; there, it is defined as a single double-precision value representing the total sum of unapplied payments for the account, not an array of individual payment records. This example shows that single total rather than a breakdown by payment.