get_acct_charges_paid_status_m Sample Call and Response
This example shows a call to get_acct_charges_paid_status_m, based on the plsql_m_r73.yml Core API definition file for release 73. The example retrieves invoice-level charges that are currently due for payment on an account, so that a subset of them can subsequently be selected for payment.
This example uses charge_level_type value 1 (invoice level and other non-invoice charges) together with charge_retrieval_type value 1 (charges due for payment), and includes the optional limit field to cap the number of records returned. It does not cover the invoice-line-level retrieval mode (charge_level_type value 2), the unpay retrieval mode (charge_retrieval_type value 2), or the optional master_plan_instance_no, invoice_no, payment_transaction_id, and offset filters, all of which are left out and explained below.
Sample call
{
"rest_call": "get_acct_charges_paid_status_m",
"output_format": "json",
"client_no": 34281,
"auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
"acct_no": 7001452,
"charge_level_type": 1,
"charge_retrieval_type": 1,
"limit": 50
}
acct_no and client_acct_id are alternatives (alt_required_field); this example uses acct_no, the Aria-assigned numeric identifier, rather than the client-defined client_acct_id. charge_level_type is an enumerated field; value 1 returns charges at invoice level along with non-invoice charges (such as balance transfers and dunning charges), while value 2 returns charges at the invoice line level instead. charge_retrieval_type is also enumerated; value 1 retrieves charges that are due for payment, while value 2 retrieves charges that were previously paid and are eligible to be unpaid (and requires either invoice_no or payment_transaction_id when used). This example leaves out master_plan_instance_no and client_master_plan_instance_id, an alt_required_field pair used only to filter invoice lines when charge_level_type is 2; invoice_no and payment_transaction_id, used only to filter which charges are considered; and offset, used only to page past earlier records.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"acct_charges": [
{
"transaction_id": 98234400,
"transaction_date": "2026-06-01",
"transaction_type": 1,
"transaction_desc": "Invoice charge",
"invoice_no": 5501122,
"source_no": null,
"amount": 129.99,
"paid_amount": 0.00,
"balance_due": 129.99
},
{
"transaction_id": 98234512,
"transaction_date": "2026-06-15",
"transaction_type": 9,
"transaction_desc": "Dunning charge",
"invoice_no": null,
"source_no": 3,
"amount": 15.00,
"paid_amount": 0.00,
"balance_due": 15.00
}
]
}
error_code of 0 combined with an error_msg of "OK" indicates that the retrieval succeeded. Because this example requests charge_level_type value 1, only the acct_charges array is populated; the invoice_lines array, which is populated only when charge_level_type is 2, is left out of this response entirely. acct_charges is an array; a real response could contain many more entries than the two representative ones shown here, one an ordinary invoice charge with a positive balance due and the other a non-invoice dunning charge (source_no identifies the originating source for non-invoice charges such as this one).