Skip to main content
Aria Knowledge Central

get_coa_m Sample Call and Response

This example shows an administrative client retrieving a single client-defined chart of accounts entry, identified by its Aria-assigned coa_id, based on the get_coa_m method defined in methods_m_r73.yml.

This example covers the full scope of the method: a lookup of exactly one chart of accounts entry by its numeric identifier. It does not cover listing all chart of accounts entries for a client or editing an entry, both of which are handled by separate methods.

Sample call

{
  "rest_call": "get_coa_m",
  "output_format": "json",
  "client_no": 400218,
  "auth_key": "7f3a9c1d2e4b5f6a8c9d0e1f2a3b4c5d",
  "coa_id": 5021
}

Besides client_no and auth_key, the only argument this method accepts is coa_id, the Aria-assigned identifier for the chart of accounts entry, which is required (nullable: false in the yml). There is no client-defined alternative identifier for this lookup, so coa_id is the only way to specify which entry to retrieve.

Sample response

{
  "error_code": 0,
  "error_msg": "OK",
  "coa": {
    "coa_id": 5021,
    "coa_code": "REV-SVC-4000",
    "coa_description": "Revenue account for recurring service charges, subscription tier"
  }
}

An error_code of zero with an error_msg of “OK” indicates the request succeeded. The yml marks the coa field with struct: single, so the response returns one chart of accounts object rather than an array, even though the underlying field definitions are the same ones used by list-style methods in this family. The coa_code value is the client-specific code that this chart of accounts entry maps to in the client's own financial system, and coa_description is the free-text label the client assigned to that entry. No fields are omitted from this response; all three of the coa object's fields are shown.

TOP
  • Was this article helpful?