Skip to main content
Aria Knowledge Central

get_payment_applications_m Sample Call and Response

This example retrieves the charge transactions against which one credit transaction, such as a payment, has been applied. It is based on the get_payment_applications_m method as defined in plsql_m_r73.yml.

This example covers a lookup by account and source (credit) transaction ID, showing a payment applied against two invoice-based charge transactions. It does not cover a source transaction that has not yet been applied to any charge.

Sample call

{
  "rest_call": "get_payment_applications_m",
  "output_format": "json",
  "client_no": 100234,
  "auth_key": "8f3d2a19c6b74e0a9d1f5c6e7a8b9c0d",
  "acct_no": 5567890,
  "src_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 src_transaction_id field is required and identifies the credit transaction, in this case an electronic payment, whose applications are being retrieved. 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_applications": [
    {
      "transaction_id": 8845102,
      "transaction_type": 1,
      "description": "Invoice charge for Enterprise Gold Subscription",
      "amount": 249.99,
      "applied_amount": 200.00,
      "currency_code": "usd",
      "transaction_date": "2026-02-15",
      "is_voided": "false",
      "statement_no": 55210,
      "client_receipt_id": "RCPT-INV-8845102",
      "seq_statement_id": "STMT-2026-02-5567890",
      "invoice_no": 8845102,
      "invoice_line_no": 1,
      "invoice_line_service_no": 2210,
      "invoice_line_description": "Monthly recurring charge for Enterprise Gold"
    },
    {
      "transaction_id": 8861233,
      "transaction_type": 1,
      "description": "Invoice charge for Enterprise Gold Subscription and one-time order",
      "amount": 259.99,
      "applied_amount": 50.00,
      "currency_code": "usd",
      "transaction_date": "2026-03-15",
      "is_voided": "false",
      "statement_no": 55298,
      "client_receipt_id": "RCPT-INV-8861233",
      "seq_statement_id": "STMT-2026-03-5567890",
      "invoice_no": 8861233,
      "invoice_line_no": 1,
      "invoice_line_service_no": 2210,
      "invoice_line_description": "Monthly recurring charge for Enterprise Gold"
    }
  ]
}

An error_code of zero, paired with an error_msg of "OK", indicates the call succeeded. The transaction_type value of one indicates an invoice-type transaction; other allowable values in this legend include payments, checks, balance transfers, and write-offs, each with its own voided counterpart represented as a negative version of that value. The payment_applications array shown here contains two representative charge transactions because payment transaction 9988771 was split between them, two hundred dollars applied to the first invoice and the remaining fifty dollars to the second; a payment applied to more charges would return additional entries. The applied_amount on each entry reflects only the portion of that invoice's charge paid by this specific source transaction, not the invoice's total paid-to-date amount. The error_details field is left out of this response entirely because it is a nonpublic field not exposed to callers.

TOP
  • Was this article helpful?