get_acct_groups_by_client_m Sample Call and Response
This example retrieves the full list of account groups configured for a client, based on the get_acct_groups_by_client_m method as defined in plsql_m_r73.yml.
This example includes every required field. Because this method takes no filtering arguments beyond the client identifier, the call itself is intentionally minimal; the variety in this example comes from the response.
Sample call
{
"rest_call": "get_acct_groups_by_client_m",
"output_format": "json",
"client_no": 68219,
"auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
}
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. This method has no account-level or alternative-identifier arguments; client_no and auth_key are the only inputs it accepts.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"error_details": [],
"acct_groups": [
{
"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",
"group_mask": "WR-****",
"group_seq_no": 1,
"client_acct_group_id": "WEST-REGION"
},
{
"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"
},
{
"group_no": 4110,
"group_name": "East Region Customers",
"group_desc": "Functional account group for customers billed out of the eastern sales region.",
"group_type": "F",
"client_acct_group_id": "EAST-REGION",
"secondary_batch_sched_grp_no": 220,
"client_secondary_batch_sched_grp_id": "EAST-SBSG"
}
]
}
An error_code of zero and an error_msg of “OK” indicate that Aria returned the client's account groups successfully. The acct_groups array shows three entries here to illustrate the range of optional fields a group record can carry: a functional group (group_type of F) with a display mask and sequence number, a collections group (group_type of C) with only its core fields populated, and a second functional group that also carries a secondary batch schedule group assignment. A client configured with additional account groups would return further entries in this same array. This example does not show every optional field on every entry, since not every account group uses every optional attribute at once.