Get accounting intelligence settings

Changed on

Get which dimensions the accounting intelligence agent codes automatically.

get/v2/accounting/intelligence

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/accounting/intelligence
  • Auth
    API key in header X-API-Key

Query parameters

connectionIdstring

The accounting connection to read. Optional when the legal entity has exactly one connection; required (connection_id_required) when it has several. List them at GET /v2/accounting/connections.

Response

The connection's intelligence settings.

connectionIdstring required
mode'disabled' | 'all_fields' | 'selected_fields' required

disabled never auto-codes. all_fields auto-codes every dimension in supportedDimensionKeys. selected_fields auto-codes only the dimensions chosen in enabledDimensionKeys.

enabledDimensionKeysstring[] required

The dimensions the agent codes under the current mode: empty when disabled, every supported key when all_fields, the chosen keys when selected_fields.

supportedDimensionKeysstring[] required

The dimensions the agent can code on this platform.

Example response

{
  "connectionId": "accounting_connection_2rj4l7hmrrrcv",
  "enabledDimensionKeys": [
    "account",
    "class"
  ],
  "supportedDimensionKeys": [
    "account",
    "class",
    "vendor",
    "customer",
    "department",
    "location",
    "project"
  ]
}

Changes