Skip to main content
Aria Knowledge Central

list_coa_m Sample Call and Response

This example shows a client retrieving the full list of client-defined Chart of Accounts entries configured in Aria. It is based on the list_coa_m method as defined in methods_m_r73.yml, Admin Tools API.

This example covers only the retrieval of existing Chart of Accounts entries. It does not cover creating or editing an entry, which the separate add_coa_m and edit_coa_m methods handle.

Sample call

{
  "rest_call": "list_coa_m",
  "output_format": "json",
  "client_no": 10023,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}

The rest_call and output_format fields are not part of the method’s own documented arguments. The REST layer adds them to every call: rest_call names the method being invoked, and output_format requests a JSON response rather than the default WDDX format. Within the method’s own arguments, client_no and auth_key identify and authenticate the client making the call. The method accepts no other arguments; it always returns every Chart of Accounts entry configured for the client.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "coa_list": [
    {
      "coa_id": 4501,
      "coa_code": "REV-1000",
      "coa_description": "Subscription Revenue - Enterprise Plans"
    },
    {
      "coa_id": 4502,
      "coa_code": "REV-2000",
      "coa_description": "Subscription Revenue - Standard Plans"
    },
    {
      "coa_id": 4503,
      "coa_code": "AR-1000",
      "coa_description": "Accounts Receivable - Trade"
    }
  ]
}

An error_code of zero, paired with an error_msg of “OK,” indicates that Aria retrieved the Chart of Accounts list successfully. The coa_list array is repeatable; this example shows three representative entries, but a client with a larger chart of accounts could return many more. Each entry consists only of coa_id, the Aria-assigned identifier, along with the client-defined coa_code and coa_description; the method returns no other fields.

TOP
  • Was this article helpful?