Firm Time EntriesDelete a firm time entry

Delete a firm time entry

DELETE/firm-partners/firm/time-entries/{uuid}

Deletes a firm time entry.

The entry stops appearing in lists and returns 404 afterwards. Billed entries can be deleted too, so check `isBilled` first.

HMAC signature only

Path parameters

uuiduuidrequired

Firm time entry UUID.

Responses

200The time entry was deleted.
401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot
403The API key is inactive, its scope does not cover this route, or it is limited to selected client workspaces and the route is firm-wide. Troubleshoot
404No time entry with this UUID exists in the firm’s workspace.
429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). Troubleshoot
DELETEhttps://api.getcount.com/firm-partners/firm/time-entries/{uuid}
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 = 'DELETE';
const signingPath = '/firm/time-entries/6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f';
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}/firm-partners/firm/time-entries/6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f`, {
  method,
  headers: {
    'x-client-id': CLIENT_ID,
    'x-timestamp': timestamp,
    'x-signature': signature,
  },
});

console.log(await response.json());
Response · 200
{
  "status": "success",
  "message": "Time entry deleted successfully",
  "data": {
    "deleted": true
  }
}