TransactionsBulk review transactions

Bulk review transactions

POST/firm-partners/workspace/transactions/review-bulk

Marks transactions as reviewed, or clears the reviewed flag, by UUID list.

Reviewing is the sign-off step that moves a categorised transaction out of the "to review" queue. Rows are processed independently with partial success: a UUID that does not resolve in this workspace, or a row the ledger refuses, comes back under `failures` with its reasons while the rest still apply. Capped at 100 UUIDs per request.

HMAC signature only

Headers

count-workspace-iduuidrequired

UUID of the client workspace to act on. It must be one of your firm's client workspaces (or the firm's own workspace) and within the API key's client workspaces.

Request body

transactionUuidsarrayrequired

Non-empty array of transaction UUIDs, max 100. Every entry must be a non-empty string.

reviewedbooleanrequired

true to mark the transactions reviewed, false to clear the flag.

Responses

200Batch processed. Check successCount and per-row failures.
400reviewed is not a boolean, transactionUuids is empty or over 100 entries, or an entry is not a UUID string.
401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot
403The key is inactive or its scope does not allow this request, the workspace is not managed by your firm or is outside the key's client workspaces, the workspace has no active subscription, or it is portal-only and the route needs bookkeeping. Troubleshoot
404No workspace exists with the `count-workspace-id` UUID.
429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). Troubleshoot
POSThttps://api.getcount.com/firm-partners/workspace/transactions/review-bulk
Request
import crypto from 'node:crypto';

const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;

const method = 'POST';
const signingPath = '/workspace/transactions/review-bulk';
const timestamp = Math.floor(Date.now() / 1000).toString();
const body = {
  "transactionUuids": [
    "b7c8d9e0-f1a2-3456-bcde-678901234567"
  ],
  "reviewed": true
};
const bodyString = JSON.stringify(body);

const bodyHash = crypto.createHash('sha256').update(bodyString).digest('hex');
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');

const response = await fetch(`${BASE_URL}/firm-partners/workspace/transactions/review-bulk`, {
  method,
  headers: {
    'x-client-id': CLIENT_ID,
    'x-timestamp': timestamp,
    'x-signature': signature,
    'Content-Type': 'application/json',
    'count-workspace-id': '5e4d3c2b-1a09-4f8e-8d7c-6b5a49382716',
  },
  body: bodyString,
});

console.log(await response.json());
Response · 200
{
  "status": "success",
  "message": "Bulk review processed.",
  "data": {
    "updatedTransactions": [
      "b7c8d9e0-f1a2-3456-bcde-678901234567"
    ],
    "successCount": 1,
    "failedCount": 0,
    "failures": []
  }
}