Resources
Taxes | FieldCamp API
List the tax codes applied to job line items.
Tax codes are IDs you reference from JobItem.taxIds. Each code has a
name (e.g. "VAT 20%") and a decimal rate.
Usage pattern
Fetch once at startup, cache, and map by name when constructing
jobItems.
const { data } = await fc.get('/api/taxes');
const taxByName = Object.fromEntries(data.data.taxes.map(t => [t.name, t.id]));
const vatId = taxByName['VAT 20%'];Endpoints
GET
/api/taxesAuthorizationBearer <token>
Pass your JWT API key as Authorization: Bearer <token>. Send
alongside X-API-Key: <token> for maximum compatibility.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/api/taxes"{ "success": true, "data": { "taxes": [ { "id": "string", "name": "VAT 20%", "rate": 0.2, "isActive": true } ] }}{ "success": false, "error": "Invalid or expired token"}