Skip to main content
GET
List accounting entries

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
status
enum<string>

Return only entries in this status.

Available options:
in_review,
ready_to_sync,
pending_sync,
syncing,
synced,
archived,
failed
sourceType
enum<string>

Return only entries created from transactions, or only from bills.

Available options:
transaction,
bill
transactionId
string

Return the entry that covers one transaction (agg_tx_ prefix). Can't be combined with billId, and combines only with status.

billId
string

Return the entry for one bill (bill_ prefix). Can't be combined with transactionId, and combines only with status.

cardId
string

Return only entries for transactions on one card (c_ prefix). Bill entries have no card, so they are never matched.

cardGroupId
string

Return only entries for transactions on cards in one card group (card_group_ prefix).

virtualAccountId
string

Return only entries for transactions on one virtual account (subaccount_ prefix).

currency
string

Return only entries whose source transaction was in this ISO-4217 currency, for example EUR for foreign-currency card spend.

Pattern: ^[A-Z]{3}$
dateFrom
string<date>

Return only entries with an accounting date on or after this YYYY-MM-DD date.

dateTo
string<date>

Return only entries with an accounting date on or before this YYYY-MM-DD date.

Response

A page of entries.

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