issue_refund_to_acct_m Sample Call and Response
This example issues a refund of a payment against an account, reversing one invoice line item that was charged in error, based on the method definition in plsql_m_r73.yml. All payment and receipt identifiers shown are clearly fake and are provided only to illustrate the shape of the request and response.
This example includes every required field and a representative set of commonly used optional fields, not every field the method accepts.
Sample call
{
"rest_call": "issue_refund_to_acct_m",
"output_format": "json",
"client_no": 10023,
"auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"acct_no": 3300481,
"payment_transaction_id": 55231087,
"total_refund_amount": 49.99,
"reason_code": 6,
"comments": "Customer was billed twice for the June invoice; refund approved by support.",
"do_write": "true",
"auto_calc_refund": "false",
"invoice_trans_to_reverse": [
{
"invoice_no": 8820044,
"invoice_line_no": 1,
"invoice_transaction_id": 78832201,
"invoice_line_reversing_amount": 49.99,
"invoice_line_reversing_date": "2026-07-24"
}
],
"client_receipt_id": "RCPT-2026-0719-0042",
"is_unlinked_refund": "false"
}
The envelope fields rest_call and output_format are added by the REST layer and are not part of the method’s own documented arguments. The account is identified with acct_no rather than its alternative, client_acct_id. The reason_code value of six means the refund reason is overpayment or duplicate payment; other values cover scenarios such as an error charge, undelivered goods or services, or customer dissatisfaction. The do_write value of true means Aria actually performs the refund rather than only calculating its effects. Because total_refund_amount is supplied explicitly, auto_calc_refund is set to false rather than having Aria calculate the refund amount from the reversed line items. The is_unlinked_refund value of false means the refund is processed against the specific payment_transaction_id rather than as a stand-alone refund; this style of refund is supported for the Payjunction and Cybersource payment processors, while stand-alone (unlinked) refunds are supported only for the Vantiv payment processor. This example leaves out the alternate payment method fields (alt_pay_method, cc_number, cc_expire_mm, cc_expire_yyyy, cvv, and the bill_* billing contact fields), since it refunds to the original form of payment rather than an alternate one, and it leaves out refund_check_number, soft_descriptor, soft_descriptor_customer_service, open_paid_line_items, refund_payment_ind, open_line_item_action, and apply_refunded_payment_on_refund_trans.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"error_details": "",
"applied_total_refund_amount": 49.99,
"applied_total_reversal_amount": 49.99,
"out_transaction_id_2": 90344521,
"reversed_invoice_transactions": [
{
"invoice_no": 8820044,
"invoice_line_no": 1,
"reversed_transaction_id": 78832201,
"service_no": 220156,
"reversed_amount": 49.99,
"reversing_date": "2026-07-24",
"transaction_comments": "Monthly service fee - June",
"client_service_id": "ACME-SVC-220156"
}
]
}
An error_code of zero and an error_msg of OK indicate that the call succeeded. The out_transaction_id_2 field holds the transaction identifier recorded for the refund; the older out_transaction_id field is left out of this example because the yml marks it as deprecated. The reversed_invoice_transactions array holds one entry per invoice line item that was reversed; this example shows a single reversed line item to match the single line item reversed in the call, but a real refund that reverses several line items would return one entry per line. This example leaves out the rebill_invoice_no, rebill_invoice_line_no, and rebill_invoice_line_transaction_id fields within that array, and it leaves out the open_paid_line_item_list response array, since the sample call does not open any paid line items.