List tax codes
GET
/partners/taxesReturns every tax code in the workspace, optionally filtered by whether it is enabled.
HMAC signature + Bearer access token
Try this requestQuery parameters
enabledenumoptional`true` for the codes in use, `false` for disabled ones. Omit for all codes.
One of: true, false
updatedSincestringoptionalIncremental sync. Returns only records created or changed at or after this ISO 8601 date-time (read as UTC when it has no offset), oldest change first, with `nextUpdatedSince` and `hasMore` beside the rows. Pass `nextUpdatedSince` back as `updatedSince` to read the next page; once `hasMore` is false, keep it for the next poll. Cannot be combined with `page` above 1 or a sort parameter (400).
includeDeletedbooleanoptionalAlso return deleted records, each with `isDeleted: true`, so a sync can remove them. Records removed outright are listed by GET /partners/deleted-records instead.
Responses
200The workspace tax codes. `results` is the number of codes returned.400`enabled` is not `true` or `false`.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/taxesRequest
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 = '/taxes';
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/taxes`, {
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 finding taxes",
"data": {
"taxes": [
{
"id": "3f6c2a1e-8b4d-4e7a-9c2f-1d5e8a7b6c40",
"name": "CA Sales Tax",
"percentage": "7.2500",
"type": "Sales Tax",
"description": "California state sales tax",
"enabled": true,
"editable": true,
"systemCreated": false,
"country": "US",
"state": "CA",
"county": null,
"city": null,
"zipCode": null,
"locationCode": null
}
],
"results": 1
}
}