Skip to main content
Aria Knowledge Central

record_external_payment_m Guide

The record_external_payment_m API records a payment transaction for a payment collected from an account holder.

API Specification: record_external_payment_m
Required Fields:
  • <client_no>
  • <auth_key>
  • <acct_no> or <client_acct_id>
  • <reference_code>
  • <payment_amount>

Additional Guidance

  • Aria deprecated the array <specific_installment_message_id> and array member field <installment_message_id> as of January 2026 (Release 68). Now, you can use the array <specific_message_id_list> with the array member field <message_id> to specify email message IDs for independent payment plan payments due notifications.
  • The parameters <client_payment_plan_id> and <payment_plan_no> do not support the statement-driven payment application method (method 4), consistent with <specific_charge_transaction_id>, <invoice_no>, and <specific_master_plan_instances_list>.
  • When provided, <client_payment_plan_id> or <payment_plan_no> takes precedence over <specific_charge_transaction_id>, <invoice_no>, and <specific_master_plan_instances_list>.
  • The client parameter "Allow Payments Prior to First Invoice and Prior to Previous External Payments" (Configuration > Payments > Payment Settings), when set to "true," allows you to record external payments on accounts that have not yet invoiced or where the payment date predates prior billing or external payments. This enables use cases such as accepting commitment payments on newly created, non-billable or inactive accounts and having those funds available to allocate to future invoices as they are generated.
Input Fields
Field Name Notes

<specific_charge_transaction_id> (array)

OR

<invoice_no> (array)

OR

<specific_master_plan_instances_list> (array)

You should call this API with only one of these three arrays populated to apply the payment as expected. If you populate values in more than one of these fields, Aria applies this order of precedence to select one value:

  1. <specific_charge_transaction_id> (array)
  2. <invoice_no> (array)
  3. <specific_master_plan_instances_list> (array)
<client_receipt_id> Use of special characters will result in an error.
<payment_application_method>

The value that you pass into the this field will override your selection for the Default Payment Collection Method parameter (in the Aria application under Configuration > Payments > Payment Settings).

(When the input fields <specific_invoice_no>, <specific_master_plan_instances_list> or <specific_charge_transaction_id> are passed, then those fields will be honored over <payment_application_method>).

Allowable Values
Values Description
Null (default) Value taken from client parameter
1 FIFO (First In, First Out). (default)
2 FDFO (First Due, First Out).
3 None (future manual allocation).
4 Statement FIFO
<payoff_installment_ind>

Indicates if a payment should be allocated to pay off a future installment early or not. Applicable only for installment; will be ignored for other non-installment charges.

This is applicable only when users pass <specific_charge_transaction_id>, <invoice_no>, or <specific_master_plan_instances_list>.

Allowable Values
Values Description
0 Pay off installment due (default)
1 Pay off installment (including future installment)

Error Codes

Error Code/Description Associated Inputs

1001: unexpected error

 

1004: authentication error

<client_no>, <auth_key>

1009: account does not exist, Account not found: AriaNo (acct_no), Account not found: Userid (userid), or Account not found: ClientId (client_acct_id)

<acct_no>, <client_acct_id>

5001: duplicate entry

Additional Comments: The acct_no or userid of the new account is already in use or the reference_code of a payment matches an existing value.

<reference_code>

1025: amount not positive

Additional Comments: This error occurs when the percent amount is greater than 100.

<payment_amount>

22006: Cannot enter data for only one field!  Both the external_destination_id and external_id fields must be valued.

 

22005: Invalid external destination id

<external_destination_id>

1024: invalid date format

Additional Comments: All date inputs must be in yyyy-mm-dd format.

<payment_received_date>

1016: invalid input

Additional Comments:  This error can be caused by the wrong type of input; for example, text in a numbers-only field, or specifying a value other than one of the documented allowable values.

<client_no>, <acct_no>, <payment_amount>, <external_destination_id>, <specific_charge_transaction_id>, <invoice_no>, <payment_application_method>, <master_plan_instance_no> 

TOP
  • Was this article helpful?