Skip to main content
Aria Knowledge Central

get_payment_application_dtls_m Sample Call and Response

This example retrieves the invoices, and the specific invoice line transactions on those invoices, to which one payment transaction has been applied. It is based on the get_payment_application_dtls_m method as defined in plsql_m_r73.yml.

This example covers a lookup by account and payment transaction ID, showing the invoice-level and line-level detail returned for a payment split across two invoices. It does not cover a payment that has been applied to only one invoice or one that has not yet been applied at all.

Sample call

{
  "rest_call": "get_payment_application_dtls_m",
  "output_format": "json",
  "client_no": 100234,
  "auth_key": "8f3d2a19c6b74e0a9d1f5c6e7a8b9c0d",
  "acct_no": 5567890,
  "transaction_id": 9988771
}

The acct_no field is one of a pair of alternatives with client_acct_id; this example uses the Aria-assigned identifier. The transaction_id field is required and identifies the payment transaction whose invoice applications are being retrieved; in this example, transaction 9988771 is an electronic payment of two hundred fifty dollars. The rest_call and output_format fields are added by the REST layer and are not part of the method's own argument list.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "payment_application_details": [
    {
      "invoice_no": 8845102,
      "invoice_date": "2026-02-15",
      "invoice_from_date": "2026-02-15",
      "invoice_to_date": "2026-03-14",
      "invoice_pay_applied_amount": 200.00,
      "invoice_overall_paid_amount": 200.00,
      "invoice_charge": 249.99,
      "invoice_credit": 0.00,
      "invoice_bal_due": 49.99,
      "invoice_due_date": "2026-03-01",
      "applied_transactions": [
        {
          "transaction_id": 8845102,
          "original_amount": 249.99,
          "amount_applied": 200.00,
          "date_applied": "2026-03-05"
        }
      ]
    },
    {
      "invoice_no": 8861233,
      "invoice_date": "2026-03-15",
      "invoice_from_date": "2026-03-15",
      "invoice_to_date": "2026-04-14",
      "invoice_pay_applied_amount": 50.00,
      "invoice_overall_paid_amount": 50.00,
      "invoice_charge": 259.99,
      "invoice_credit": 10.00,
      "invoice_bal_due": 199.99,
      "invoice_due_date": "2026-03-29",
      "applied_transactions": [
        {
          "transaction_id": 8861233,
          "original_amount": 259.99,
          "amount_applied": 50.00,
          "date_applied": "2026-03-05"
        }
      ]
    }
  ]
}

An error_code of zero, paired with an error_msg of "OK", indicates the call succeeded. The payment_application_details array shown here contains two invoices because payment transaction 9988771 was split across them: two hundred dollars applied to invoice 8845102 and the remaining fifty dollars applied to invoice 8861233; a payment applied to more invoices would return additional entries in this array, and a single invoice can likewise show more than one entry in its own applied_transactions array if a payment was split across more than one transaction on that invoice. The error_details field is left out of this response entirely because it is a nonpublic field not exposed to callers. The nonpublic, internal-use single_payment_context request field and the applied_transactions_h1 internal array index field are also left out entirely, as is the do_logging_ind request field, which is nonpublic and used only for internal logging.

TOP
  • Was this article helpful?