Skip to main content
POST
Run a status action on many 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]+$

Body

application/json
action
enum<string>
required

The move to make. sync is only available on connections with a platform to post to; a CSV connection returns connection_not_syncable per entry.

Available options:
mark_ready,
mark_in_review,
archive,
sync
entryIds
string[]
required

The entries to move, 1 to 100 ids. Repeated ids are collapsed; ids the credential cannot see come back as not_found.

Required array length: 1 - 100 elements

Response

The outcome for every requested entry.

The outcome of one status action run over a batch of entries. Every entry is decided on its own, so a batch can be partly applied: results is in the order the ids were given, and the counts summarize it.

results
object[]
required

One result per requested entry, in request order.

updated
integer
required

How many entries moved.

unchanged
integer
required

How many entries were already in the target state.

failed
integer
required

How many entries could not move.