Update firm webhook subscription
PATCH
/firm-partners/firm/webhooks/{uuid}Updates callback URL, status, or signing secret.
HMAC signature only
Path parameters
uuiduuidrequiredSubscription UUID.
Request body
callbackUrlstringNew public HTTPS callback URL.
eventsarrayReplaces the events the subscription receives: event names, or `["*"]` alone.
statusenumNew subscription status. Setting `active` resumes a suspended subscription and clears its failure record.
One of: active, paused, disabled
signingSecretstringA new signing secret, to rotate it. A secret cannot be removed: an empty string or null returns 400.
Responses
200Subscription updated. Returned under data.webhook.400Invalid callback URL, an empty or null `signingSecret`, or an empty body.401Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. Troubleshoot403The 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. Troubleshoot404No firm-wide subscription of your app has this UUID.429Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). TroubleshootPATCH
https://api.getcount.com/firm-partners/firm/webhooks/{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 = 'PATCH';
const signingPath = '/firm/webhooks/e0f1a2b3-c4d5-6789-ef01-234567890abc';
const timestamp = Math.floor(Date.now() / 1000).toString();
const body = {
"status": "active"
};
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/firm/webhooks/e0f1a2b3-c4d5-6789-ef01-234567890abc`, {
method,
headers: {
'x-client-id': CLIENT_ID,
'x-timestamp': timestamp,
'x-signature': signature,
'Content-Type': 'application/json',
},
body: bodyString,
});
console.log(await response.json());Response · 200
{
"status": "success",
"data": {
"webhook": {
"uuid": "e0f1a2b3-c4d5-6789-ef01-234567890abc",
"event": null,
"events": [
"customer.created",
"customer.updated",
"invoice.paid"
],
"callbackUrl": "https://webhook.site/your-unique-id",
"status": "active",
"hasSigningSecret": true,
"lastDeliveredAt": "2026-03-01T12:00:02.000Z",
"lastError": null,
"lastErrorAt": null,
"suspendedAt": null,
"createdAt": "2026-03-01T09:00:00.000Z",
"updatedAt": "2026-03-01T09:00:00.000Z"
}
}
}