Get a dimension value
Get one dimension value, whether it’s turned on or off.
Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.
^le_[a-zA-Z0-9]+$Path Parameters
A key from GET /v2/accounting/dimensions.
A value id on that dimension.
Query Parameters
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 value.
One selectable value of a dimension: a general-ledger account, a vendor record, a class, and so on. Use id when coding a line item.
Value id. The prefix depends on the dimension's type: accounting_account_, accounting_vendor_, and so on for platform dimensions; acc_dim_val_ for generic dimensions. A custom_field option's id is the option value itself, the string customFields takes.
"accounting_account_2rj4l7hmrrrcv"
The dimension this value belongs to.
"account"
"accounting_connection_2rj4l7hmrrrcv"
Display name, as shown in the dashboard and the platform.
"6100 Software Subscriptions"
The accounting platform's own id for this value, or the id in the imported file on CSV connections. For the few values a platform reports no id for, a stable id assigned when the value was synced.
"80"
Whether a user has switched this value on for coding. Disabled values are not offered in the dashboard but stay valid on existing entries.
The value's status on the accounting platform, when it reports one (for example active or archived). Whether Slash offers the value for coding is enabled.
"active"
The value on the dimension named by the dimension's parentKey that this value belongs under. Only set on nested dimensions.
"acc_dim_val_2rj4l7hmrrrcv"
Platform-specific details such as the account number, account type, or currency. Keys vary by platform and dimension; treat them as informational.