List deleted records
GET
/partners/deleted-recordsReturns the records removed outright since a point in time, oldest first.
HMAC signature + Bearer access token
Try this requestQuery parameters
updatedSincestringrequiredAn 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.
resourceTypesstringoptionalComma-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.
limitintegeroptionalRecords 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. Troubleshoot403The credential does not have access to this workspace or resource. Troubleshoot429Rate limit exceeded (100 requests per minute per user of each app, or 10,000 per minute per app). Retry after the Retry-After header. TroubleshootGET
https://api.getcount.com/partners/deleted-recordsRequest
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
}
}