# Qotien Flat Tax vs Barème Calculator

> Qotien Flat Tax vs Barème Calculator is a paid API for AI agents from app.qotien.fr, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Compares French flat tax (PFU/30%) against progressive income tax (barème) for a given capital income to determine the optimal taxation option for a French household.

## Facts

- Endpoint: POST https://app.qotien.fr/api/fiscal/v1/calc/flat_tax_vs_bareme
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/qotien-flat-tax-vs-bar-me-calculator-3560f1b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-h49qDyouu-gMJL6kCagX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability qotien-flat-tax-vs-bar-me-calculator-3560f1b4 -d '<json body>'
```

Example prompt: I received €12,000 in dividends this year and my household net taxable income is €45,000 — I'm married with 2 family quotient parts. Can you calculate whether the French flat tax (PFU) or the progressive barème is better for me?

## When to prefer this

Choose this endpoint when you need to compute the French flat tax (PFU 30%) vs progressive income tax (barème) comparison for capital income types including dividends, interest, capital gains, crypto, PEA, real estate, or life insurance (over or under 8 years). It sources data directly from Légifrance and BOFiP, making it suitable for compliance-adjacent financial advisory tools, CGP (wealth management) software, and French tax optimization workflows. Prefer this over generic tax calculators when dealing specifically with French fiscal law and capital income taxation.

## Known failure modes

- Missing required fields (type_revenu or montant not provided) — returns ok:false with error message
- Invalid enum value for situation or type_revenu — returns validation error
- montant below minimum (negative value) — schema validation failure
- Network timeout or service unavailability — HTTP 5xx error
- Payment not provided or insufficient — HTTP 402 response requiring x402 payment of $0.25 USDC

## How this service works

Simulateur IFI, PER, IR et retraite (32 régimes). Logiciel CGP : bilan patrimonial, déclaration 2042, LMNP. Chiffres sourcés Légifrance et BOFiP. 14 jours d'essai.

## Output

Returns a JSON object with: a boolean success flag, the comparison result (value in EUR showing the difference or optimal choice, with label and unit), confidence level (fiable/estime/partiel/variable), legal sources from CGI/BOFiP, the fiscal year applied, and a disclaimer that the result is not personalized financial advice.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "parts": {
   "type": "number",
   "default": 1,
   "minimum": 1,
   "description": "Parts de quotient familial."
  },
  "montant": {
   "type": "number",
   "minimum": 0,
   "description": "Montant du revenu / gain (€)."
  },
  "situation": {
   "enum": [
    "Célibataire",
    "Marié(e)",
    "Pacsé(e)",
    "Divorcé(e)",
    "Veuf(ve)"
   ],
   "type": "string",
   "default": "Célibataire",
   "description": "Situation familiale."
  },
  "av_encours": {
   "type": "number",
   "minimum": 0,
   "description": "Pour av_plus8ans : encours total des primes (détermine le taux réduit 7,5 % vs 12,8 %) (€)."
  },
  "type_revenu": {
   "enum": [
    "dividendes",
    "interets",
    "pv_mobiliere",
    "crypto",
    "pea",
    "immo",
    "av_plus8ans",
    "av_moins8ans"
   ],
   "type": "string",
   "description": "Nature du revenu du capital."
  },
  "revenu_net_imposable": {
   "type": "number",
   "minimum": 0,
   "description": "Revenu net imposable du foyer HORS ce revenu (€) — détermine la TMI pour l'option barème."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "ok",
   "domaine",
   "capability",
   "result",
   "confiance",
   "sources",
   "millesime_fiscal"
  ],
  "properties": {
   "ok": {
    "type": "boolean",
    "description": "true = succès ; false = erreur (champ \"error\" présent à la place de result)."
   },
   "result": {
    "type": "object",
    "properties": {
     "unit": {
      "type": "string",
      "description": "Unité de value (EUR, PERCENT, RATE…)."
     },
     "label": {
      "type": "string",
      "description": "Libellé lisible du résultat."
     },
     "value": {
      "type": "number",
      "description": "Valeur principale (quand le résultat est scalaire)."
     },
     "confiance": {
      "enum": [
       "fiable",
       "estime",
       "partiel",
       "non_calculable",
       "sourcee",
       "variable"
      ],
      "type": "string",
      "description": "Confiance propre au résultat retraite (prime sur la confiance de capacité)."
     }
    },
    "description": "Résultat. Contient typiquement { value:number, unit:string, label:string } ; les outils retraite ajoutent confiance, fourchette, et le détail par régime."
   },
   "domaine": {
    "enum": [
     "fiscal",
     "retraite",
     "referentiel",
     "qotien"
    ],
    "type": "string",
    "description": "Domaine de la capacité."
   },
   "sources": {
    "type": "array",
    "items": {
     "type": "string"
    },
    "description": "Sources primaires/légales du calcul."
   },
   "confiance": {
    "enum": [
     "fiable",
     "estime",
     "partiel",
     "non_calculable",
     "sourcee",
     "variable"
    ],
    "type": "string",
    "description": "Niveau de confiance de CE résultat (fiscal = fiable ; retraite = variable)."
   },
   "capability": {
    "type": "string",
    "description": "Nom de la capacité appelée."
   },
   "referentiel": {
    "type": "string",
    "description": "Version du référentiel sourcé utilisé."
   },
   "annee_revenus": {
    "type": "number",
    "description": "Année des revenus concernés."
   },
   "avertissement": {
    "type": "string",
    "description": "Avertissement d'usage (résultat brut, pas un conseil personnalisé)."
   },
   "millesime_fiscal": {
    "type": "string",
    "description": "Millésime fiscal (année des barèmes appliqués)."
   }
  }
 },
 "example": {
  "ok": true,
  "result": {
   "unit": "EUR",
   "label": "PFU (flat tax) vs barème progressif",
   "value": 0
  },
  "domaine":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/qotien-flat-tax-vs-bar-me-calculator-3560f1b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from app.qotien.fr](https://www.zero.xyz/host/app.qotien.fr/llms.txt)
