Taxes

Get tax stats

Aggregated KPIs for the tax rates available to your company: total tax count, active count, and breakdown by type (vat, retention, surcharge, other). Returned as { "data": TaxStats }.

get/companies/{company}/taxes/stats

Request

  • Base URL: https://api.factuarea.com/v1
  • URL: https://api.factuarea.com/v1/companies/{company}/taxes/stats
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

companystring uuid required

Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).

Headers

Factuarea-Versionstring date
Example:2026-06-01

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Response

Example response

{
  "data": {
    "object": "tax_stats",
    "total": 12,
    "active": 10,
    "inactive": 2,
    "system_count": 7,
    "custom_count": 5,
    "by_type": {
      "vat": 6,
      "retention": 4,
      "surcharge": 2,
      "other": 0
    },
    "by_aeat_code": {
      "S1": 4,
      "E1": 1,
      "N1": 1,
      "(null)": 6
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.