Skip to main content
GET
List accounting mappings

Authorizations

X-API-Key
string
header
required

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.

Pattern: ^le_[a-zA-Z0-9]+$

Query Parameters

connectionId
string

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.

cursor
string

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.

limit
integer

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.

Required range: 1 <= x <= 100
sourceType
enum<string>

Return only mappings keyed on this kind of source.

Available options:
account,
virtual_account,
card,
card_group,
merchant,
merchant_category,
contact,
accounts_payable
sourceId
string

Return only mappings keyed on this source id.

dimensionKey
string

Return only mappings that code this dimension.

Response

A page of mappings, oldest first.

items
AccountingMapping · object[]
required
metadata
PaginationMetadata · object
required