Tax
Core tax definition entity. Represents a tax type with its basic configuration (rate, type, jurisdiction). Base entity for tax management system.
Properties
| Property | Type | Mode | Description | Required |
|---|---|---|---|---|
| code | string | stored | Unique tax code identifier Example: | Required |
| name | string | stored | Display name of the tax Example: | Required |
| description | string | stored | Detailed description of the tax and when it applies Example: | Optional |
| taxType | string | enum | Category of tax Values: Example: | Required |
| rate | number | stored | Tax rate as percentage (e.g., 20 for 20%) Example: | Required |
| calculationMethod | string | enum | Method used to calculate the tax Values: Example: | Required |
| jurisdictionRef | TaxJurisdiction | stored | Reference to the tax jurisdiction entity with authority details and hierarchy | Required |
| jurisdiction | string | stored | Tax jurisdiction code (ISO country code, state, province, city) - Deprecated: use jurisdictionRef Example: | Optional |
| jurisdictionLevel | string | enum | Level of the tax jurisdiction - Deprecated: use jurisdictionRef.level Values: Example: | Optional |
| isActive | boolean | stored | Whether this tax is currently active Example: | Optional |
| effectiveFrom | Date | stored | Date from which this tax rate is effective Example: | Required |
| effectiveUntil | Date | stored | Date until which this tax rate is valid (null if indefinite) Example: | Optional |
| displayOrder | number | stored | Order in which to display this tax on documents Example: | Optional |
Examples
Example 1
{
"@type": "Tax",
"code": "VAT-STD-20",
"name": "VAT Standard Rate",
"description": "Standard VAT rate in France",
"taxType": "vat",
"rate": 20,
"calculationMethod": "percentage",
"jurisdiction": "FR",
"jurisdictionLevel": "country",
"isActive": true,
"effectiveFrom": "2014-01-01",
"displayOrder": 1
}Example 2
{
"@type": "Tax",
"code": "NY-SALES-8.875",
"name": "New York Sales Tax",
"taxType": "sales_tax",
"rate": 8.875,
"calculationMethod": "percentage",
"jurisdiction": "NY",
"jurisdictionLevel": "state",
"isActive": true,
"effectiveFrom": "2024-01-01",
"displayOrder": 1
}Example 3
{
"@type": "Tax",
"code": "DZ-TVA-19",
"name": "TVA Algérie",
"description": "Taxe sur la Valeur Ajoutée en Algérie",
"taxType": "vat",
"rate": 19,
"calculationMethod": "percentage",
"jurisdiction": "DZ",
"jurisdictionLevel": "country",
"isActive": true,
"effectiveFrom": "2024-01-01",
"displayOrder": 1
}