Run a status action on many accounting entries

Changed on

Run one action (mark_ready, mark_in_review, sync or archive) on up to 100 entries. Each entry gets its own result, so one that can't move doesn't stop the rest.

post/v2/accounting/entries/bulk

Request

  • Base URL
    https://api.slash.com
  • URL
    https://api.slash.com/v2/accounting/entries/bulk
  • Auth
    API key in header X-API-Key

Request body

action'mark_ready' | 'mark_in_review' | 'archive' | 'sync' 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.

entryIdsstring[] required

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

Example request

{
  "entryIds": [
    "accounting_entry_2rj4l7hmrrrcv"
  ]
}

Response

The outcome for every requested entry.

updatedinteger required

How many entries moved.

unchangedinteger required

How many entries were already in the target state.

failedinteger required

How many entries could not move.

Example response

{
  "results": [
    {
      "entryId": "accounting_entry_2rj4l7hmrrrcv",
      "error": {
        "message": "The entry is not ready to sync: Line 1 has no account."
      }
    }
  ]
}

Changes