Skip to main content
Aria Knowledge Central

remove_gl_code_m Sample Call and Response

This example shows a client removing previously set General Ledger, hereafter GL, code values for two financial transaction types, as part of the Revenue Recognition 2.0 functionality. It is based on the remove_gl_code_m method as defined in methods_m_r73.yml, Admin Tools API.

This example covers erasing both the debit and credit values for one financial transaction type, and only the credit value for another. It does not cover setting a new GL code value, which the separate set_gl_code_m method handles.

Sample call

{
  "rest_call": "remove_gl_code_m",
  "output_format": "json",
  "client_no": 10023,
  "auth_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "gl_code": [
    {
      "financial_transaction_type": 1,
      "gl_code_type": 2
    },
    {
      "financial_transaction_type": 5,
      "gl_code_type": 1
    }
  ]
}

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 gl_code array is repeatable, allowing you to remove GL codes for more than one financial transaction type in a single call. Each entry supplies financial_transaction_type, the Aria-assigned transaction type number, and gl_code_type, which controls which values Aria erases: zero erases the debit value only, one erases the credit value only, and two, used on financial_transaction_type 1 in this example, erases both. The second entry, financial_transaction_type 5, uses gl_code_type 1 to erase only the credit value, leaving the debit value untouched.

Sample response

{
  "error_code": 0,
  "error_msg": "OK"
}

An error_code of zero, paired with an error_msg of “OK,” indicates that Aria removed the specified GL code values successfully. The method returns no other fields; it does not echo back the resulting state of the GL code, so a client that needs to confirm which values remain must call get_gl_code_info_m separately.

TOP
  • Was this article helpful?