Skip to main content
Aria Knowledge Central

get_cm_list_m Sample Call and Response

This example shows a call to get_cm_list_m that retrieves all credit memos associated with an account, based on the plsql_m_r73.yml definition file for release 73.

This example includes every required field and shows three of the account’s credit memos, rather than a full account history.

Sample call

{
  "rest_call": "get_cm_list_m",
  "output_format": "json",
  "client_no": "10021",
  "auth_key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
  "acct_no": 900412
}

The account is identified by one of two alternative fields, acct_no or client_acct_id; this example uses acct_no, the Aria-assigned numeric identifier. This method takes no other arguments beyond client_no, auth_key, and the account identifier, since it always returns the complete set of credit memos for the account rather than a filtered subset.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "cm_details_all": [
    {
      "cm_no": 55031,
      "created_by": "csr.jmartin",
      "created_date": "2026-07-10 14:32:05",
      "cm_total": 89.99,
      "cm_tax_total": 7.42,
      "invoice_no": 780215,
      "is_voided": 0,
      "cm_reason_code_2": 4
    },
    {
      "cm_no": 54810,
      "created_by": "csr.tobrien",
      "created_date": "2026-05-22 09:14:41",
      "cm_total": 15.00,
      "cm_tax_total": 0.0,
      "invoice_no": 774932,
      "is_voided": 0,
      "cm_reason_code_2": 2
    },
    {
      "cm_no": 53660,
      "created_by": "csr.jmartin",
      "created_date": "2026-02-03 11:02:19",
      "cm_total": 42.50,
      "cm_tax_total": 3.51,
      "invoice_no": 762104,
      "is_voided": 1,
      "cm_reason_code_2": 4
    }
  ],
  "error_details": null
}

An error_code of 0 with an error_msg of OK indicates that Aria found the account and returned its credit memos successfully. The cm_details_all array holds one entry per credit memo; this example shows three representative entries, including one that was later voided, indicated by an is_voided value of 1, but an account with a longer billing history would return correspondingly more entries, and the array is not exhaustive. This example uses cm_reason_code_2 rather than cm_reason_code, since the yml file marks cm_reason_code deprecated with an explicit deprecate_version.

TOP
  • Was this article helpful?