Skip to main content
Aria Knowledge Central

get_refund_information_m Sample Call and Response

This example calls get_refund_information_m to retrieve information about refund disbursements made to an account, based on the Object Query API definition in app_m_r73.yml (release seventy-three). A refund disbursement is money returned to the end user, distinct from the underlying transaction ledger entries that get_transaction_information_m returns.

This example includes every required argument, plus a representative pair of refund entries, one issued electronically back to a credit card and one issued as an external check, rather than an exhaustive field reference.

Sample call

{
  "rest_call": "get_refund_information_m",
  "output_format": "json",
  "client_no": 60123,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "query_string": "acct_no = 500347",
  "limit": 10,
  "offset": 0
}

The rest_call and output_format fields form the REST envelope, with output_format also documented in param_defaults as an optional field defaulting to wddx, so json must be requested explicitly. The client_no and auth_key fields are the required identifiers for this call. The query_string field is required (nullable is false in param_defaults). The method’s own description recommends including both acct_no and aria_event_no for optimal performance when a specific refund event is already known; this example filters on acct_no alone, both because it is queryable and because it is meant to illustrate several refunds for one account rather than a single known event. The username and password fields are not included, because param_defaults marks both as deprecated as of version 5.6. The optional limit and offset fields are included to show typical paging usage.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "starting_record": 0,
  "total_records": 2,
  "refund_information": [
    {
      "aria_event_no": 9004521,
      "acct_no": 500347,
      "user_id": "jsmith_biz",
      "refund_amount": 45.00,
      "create_date": "2026-06-20",
      "create_user": "csr_agent_12",
      "refund_reason_code": 4,
      "refund_reason_label": "Billing Error",
      "refund_reason_description": "Account was charged for a plan instance that had already been canceled.",
      "currency_cd": "usd",
      "aria_statement_no": 3300456,
      "ref_payment_event_no": 9004498,
      "ref_payment_transaction_type": 5,
      "ref_payment_transaction_desc": "Electronic Payment",
      "ref_payment_amount": 45.00,
      "refund_transaction_type": 12,
      "refund_transaction_desc": "Electronic Refund",
      "refund_bill_seq_no": 2,
      "refund_pay_method_id": 1,
      "refund_pay_method_name": "Credit Card",
      "refund_cc_id": 2,
      "refund_cc_type": "MasterCard",
      "refund_payment_src_suffix": "4444",
      "refund_is_voided_ind": 0
    },
    {
      "aria_event_no": 9004610,
      "acct_no": 500347,
      "user_id": "jsmith_biz",
      "refund_amount": 20.00,
      "create_date": "2026-06-22",
      "create_user": "csr_agent_07",
      "refund_reason_code": 9,
      "refund_reason_label": "Goodwill Credit",
      "refund_reason_description": "Service outage credit issued at the customer's request.",
      "currency_cd": "usd",
      "aria_statement_no": 3300512,
      "ref_payment_event_no": 9004555,
      "ref_payment_transaction_type": 5,
      "ref_payment_transaction_desc": "Electronic Payment",
      "ref_payment_amount": 20.00,
      "refund_transaction_type": 13,
      "refund_transaction_desc": "External Check Refund",
      "refund_check_num": "100245",
      "refund_is_voided_ind": 0
    }
  ]
}

An error_code of zero with an error_msg of “OK” indicates that the call succeeded. The starting_record value of zero and total_records value of two indicate that both matching refunds are shown here; a query matching more refunds would return additional entries in this same array. A refund_is_voided_ind of zero on both entries means neither refund has since been voided; a value of one would indicate the opposite. The first entry represents an electronic refund back to a credit card on file, so it carries the refund_bill_seq_no, refund_pay_method_id, refund_pay_method_name, refund_cc_id, refund_cc_type, and refund_payment_src_suffix fields, while the second represents an external check refund, so it carries refund_check_num instead. This example leaves out the bill_email field entirely, because the yml documents it as populated only when the payment method is PayPal Express Checkout configured to update the billing email address, which does not apply to either refund shown.

TOP
  • Was this article helpful?