Skip to main content
Aria Knowledge Central

get_acct_groups_by_acct_m Sample Call and Response

This example retrieves the list of account groups to which a specific account belongs, based on the get_acct_groups_by_acct_m method as defined in plsql_m_r73.yml.

This example includes every required field. Because this method takes only an account identifier as input, there are no optional filters to add to the call.

Sample call

{
  "rest_call": "get_acct_groups_by_acct_m",
  "output_format": "json",
  "client_no": 68219,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "acct_no": 5004123
}

The rest_call and output_format fields are envelope fields that the REST layer adds; they do not appear in the method's own arguments list. The account is identified with acct_no, the Aria-assigned numeric identifier, which is one of a group of three alternative identifiers (acct_no, user_id, and client_acct_id); this example uses only acct_no and omits the other two.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "error_details": [],
  "acct_groups_by_acct": [
    {
      "group_no": 4021,
      "group_name": "West Region Customers",
      "group_desc": "Functional account group for customers billed out of the western sales region.",
      "group_type": "F",
      "client_acct_group_id": "WEST-REGION",
      "assigned_by": "jharmon",
      "assigned_date": "2025-03-11"
    },
    {
      "group_no": 4088,
      "group_name": "Gateway A Collections",
      "group_desc": "Collections account group routed to payment gateway A.",
      "group_type": "C",
      "client_acct_group_id": "GATEWAY-A-COLL",
      "assigned_by": "svalenti",
      "assigned_date": "2025-03-11"
    }
  ]
}

An error_code of zero and an error_msg of “OK” indicate that Aria found the account and returned its group memberships successfully. The acct_groups_by_acct array shows two entries here, a functional group (group_type of F) and a collections group (group_type of C), but an account belonging to additional groups would return further entries in the same array. This example omits the acct_groups array entirely, because that field carries a deprecate_version of fifty-five and has been superseded by acct_groups_by_acct, which this example uses instead.

TOP
  • Was this article helpful?