List accounting mappings

Changed on

List the mappings that code entries automatically, including the ones the accounting intelligence agent created. On platforms that keep account mappings per subsidiary, such as NetSuite, the account mappings of account and accounts_payable sources listed are the default subsidiary's.

get/v2/accounting/mappings

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/accounting/mappings
  • 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.

cursorstring

The opaque metadata.nextCursor value from the previous page. It carries that page's filters, page size and ordering, so pass it on its own; see Pagination.

limitinteger

Number of items per page, from 1 to 100. The page size is carried inside metadata.nextCursor, so later pages keep the same size unless limit is passed again to change it.

sourceType'account' | 'virtual_account' | 'card' | 'card_group' | 'merchant' | 'merchant_category' | 'recipient' | 'accounts_payable'

Return only mappings keyed on this kind of source.

sourceIdstring

Return only mappings keyed on this source id.

dimensionKeystring

Return only mappings that code this dimension.

Response

A page of mappings, oldest first.

Example response

{
  "items": [
    {
      "id": "accounting_mapping_2rj4l7hmrrrcv",
      "connectionId": "accounting_connection_2rj4l7hmrrrcv",
      "source": {
        "id": "c_2rj4l7hmrrrcv"
      },
      "dimensionKey": "account",
      "valueId": "accounting_account_2rj4l7hmrrrcv"
    }
  ]
}

Changes