Tax regimes
Tax regimes describe the invoicing rules and structured taxes available to an account. The account's tax_regime identifies which catalog applies when FiscalRail resolves invoice-line tax references.
For structured regimes such as Spain, send tax and rule when issuing an invoice. FiscalRail resolves the percentage, description, authority metadata, effect and treatment effective on the invoice date. The catalog includes every effective-dated version so integrations do not need to hard-code current rates.
effect controls the arithmetic: added increases the invoice total and withheld reduces the amount payable. treatment describes the fiscal result: taxable, exempt, reverse_charge or not_subject. Only taxable treatments calculate a tax amount.
The global regime has an empty tax catalog because it accepts custom tax definitions at invoice issuance. Tax-regime data describes capabilities supported by FiscalRail and is not tax or legal advice.
For workflow context and the exact supported catalog, read the Global tax regime or Spain tax regime guide.
The Tax Regime object
id
enum
global
Flexible global regime whose custom taxes are supplied when issuing an invoice.
es
Spanish regime with FiscalRail-defined IVA and IRPF rules.
object
string
tax_regime.live
boolean
taxes
array of objects
Show child propertiesHide child properties
tax
string
taxes[].tax during invoice issuance.name
string
effect
enum
added
The tax amount is added to the invoice total.
withheld
The tax amount is withheld from the amount payable to the supplier.
rules
array of objects
Show child propertiesHide child properties
rule
string
taxes[].rule during invoice issuance.description
string
treatment
enum
taxable
Tax applies to the taxable base at the stated rate.
exempt
The taxable operation is exempt from the tax.
reverse_charge
The recipient accounts for the tax.
not_subject
The operation is outside the scope of the tax.
rate
string or null
%, or null when a percentage does not apply.authority_code
string or null
legal_reference
string or null
effective_from
string
effective_until
string or null
{
"id": "es",
"object": "tax_regime",
"live": true,
"taxes": [
{
"tax": "vat",
"name": "IVA",
"effect": "added",
"rules": [
{
"rule": "general",
"description": "IVA 21%",
"treatment": "taxable",
"rate": "21%",
"authority_code": null,
"legal_reference": "Ley 37/1992, artículo 90",
"effective_from": "2012-09-01",
"effective_until": null
}
]
}
]
}
Retrieve a tax regime
/v1/tax-regimes/{id}Returns the regime's supported tax definitions and every effective-dated rule version.
id
string
required
es.
200
A Tax Regime object.
JSON
curl --request GET \
'https://api.fiscalrail.com/v1/tax-regimes/example' \
--header "Authorization: Bearer ak_test_..."
{
"id": "es",
"object": "tax_regime",
"live": true,
"taxes": [
{
"tax": "vat",
"name": "IVA",
"effect": "added",
"rules": [
{
"rule": "general",
"description": "IVA 21%",
"treatment": "taxable",
"rate": "21%",
"authority_code": null,
"legal_reference": "Ley 37/1992, artículo 90",
"effective_from": "2012-09-01",
"effective_until": null
}
]
}
]
}
List tax regimes
/v1/tax-regimesReturns every tax regime currently supported by FiscalRail and its structured tax catalog.
200
A list of Tax Regime objects.
JSON
curl --request GET \
'https://api.fiscalrail.com/v1/tax-regimes' \
--header "Authorization: Bearer ak_test_..."
{
"object": "list",
"has_more": null,
"data": [
{
"id": "es",
"object": "tax_regime",
"live": true,
"taxes": [
{
"tax": "vat",
"name": "IVA",
"effect": "added",
"rules": [
{
"rule": "general",
"description": "IVA 21%",
"treatment": "taxable",
"rate": "21%",
"authority_code": null,
"legal_reference": "Ley 37/1992, artículo 90",
"effective_from": "2012-09-01",
"effective_until": null
}
]
}
]
}
]
}