Deleted RecordsList deleted records

List deleted records

GET/partners/deleted-records

Returns the records removed outright since a point in time, oldest first.

HMAC signature + Bearer access token
Try this request

Query parameters

updatedSincestringrequired

An ISO 8601 date-time within the last 90 days (read as UTC when it has no offset), or the `nextUpdatedSince` value of the previous page.

resourceTypesstringoptional

Comma-separated resource types to return: `account`, `bill`, `budget`, `customer`, `customer_address`, `customer_contact`, `customer_note`, `expense_receipt`, `invoice`, `journal_entry`, `person`, `product`, `project`, `recurring_invoice_template`, `tag`, `tag_group`, `task`, `tax`, `time_entry`, `transaction`, `vendor`. Omit for every type the app may read.

limitintegeroptional

Records per page, 1–500. Defaults to 100.

Responses

200`hasMore` is true when more deletions follow; read them with `updatedSince` set to `nextUpdatedSince`.
400`updatedSince` is missing or is neither a date-time nor a cursor, `resourceTypes` names an unknown type, or `limit` is outside 1–500.
410`updatedSince` is older than 90 days. Run a full load of each list endpoint again.
401Missing or invalid HMAC signature, expired timestamp, or invalid Bearer token. Troubleshoot
403The credential does not have access to this workspace or resource. Troubleshoot
429Rate limit exceeded (100 requests per minute per user of each app, or 10,000 per minute per app). Retry after the Retry-After header. Troubleshoot
GEThttps://api.getcount.com/partners/deleted-records
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 ACCESS_TOKEN = process.env.COUNT_ACCESS_TOKEN;

const method = 'GET';
const signingPath = '/deleted-records';
const timestamp = Math.floor(Date.now() / 1000).toString();
const bodyString = '';

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

const response = await fetch(`${BASE_URL}/partners/deleted-records`, {
  method,
  headers: {
    'x-client-id': CLIENT_ID,
    'x-timestamp': timestamp,
    'x-signature': signature,
    Authorization: `Bearer ${ACCESS_TOKEN}`,
  },
});

console.log(await response.json());
Response · 200
{
  "status": "success",
  "message": "Success on reading deleted records",
  "data": {
    "deletedRecords": [
      {
        "id": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
        "resourceType": "tag",
        "deletedAt": "2026-11-18T08:14:02.000Z"
      },
      {
        "id": "0193a1c2-7b4d-7e10-9a2f-5c6d7e8f9a01",
        "resourceType": "journal_entry",
        "deletedAt": "2026-11-18T08:20:45.000Z"
      }
    ],
    "nextUpdatedSince": "cursor_eyJ1cGRhdGVkQXQiOiIyMDI2LTExLTE4VDA4OjIwOjQ1LjAwMDAwMFoiLCJyZWNvcmRVdWlkIjpudWxsfQ",
    "hasMore": false
  }
}