{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/obolusfinanz-de/json-schema/obolusfinanz-de-berechne-response-schema.json",
  "title": "BerechneResponse",
  "description": "Output schema for one-country detailed Obolus payroll calculations. Interpret person1, person2, and gesamt with the original request Land; stable field names such as ST, LSTLZZ, RSV, KSV, PSV, ASV, and VTL have country-specific meanings rather than one global meaning. Monetary amounts are minor units. Output country-specific usage: DE outputs keep German payroll meanings: ST/LSTLZZ are wage tax, SOLZLZZ is solidarity surcharge, KST is church tax, and RSV/KSV/PSV/ASV are statutory pension, health, care, and unemployment insurance. AT outputs emphasize Austrian wage tax plus social insurance; BK, STS, STX, and NETX can represent annual or special-payment handling such as 13th/14th salary paths. CH outputs can represent federal, cantonal, municipal, withholding, AHV/IV/EO, ALV, accident, sickness, and pension-fund payroll deductions; private KVG/LAMal health bills are not modeled as payroll health insurance. US outputs map stable Obolus fields to federal/state income tax, Social Security/OASDI, Medicare, additional withholding, supplemental income, and pre-tax retirement/HSA-style deduction context. UK outputs map stable Obolus fields to PAYE income tax, National Insurance, student loan where enabled, salary sacrifice or pension, and regional/tax-code context. IE outputs map stable Obolus fields to PAYE, USC, PRSI, pension contribution, tax credits, and student-loan-style deductions where modeled. CA outputs map stable Obolus fields to federal/provincial tax, CPP/QPP, EI, RRSP or pension deductions, province-specific credits, and additional withholding. AU outputs map stable Obolus fields to PAYG tax, Medicare Levy, HELP/HECS where enabled, voluntary super salary sacrifice, bonus pay, and employer super information.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/obolusfinanz-de-openapi.yml#/components/schemas/BerechneResponse",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "calculated_at": {
      "type": "string",
      "format": "date-time",
      "description": "UTC timestamp when this response was assembled."
    },
    "contract_version": {
      "type": "string",
      "description": "Obolus public contract version used to shape this response."
    },
    "tax_data_version": {
      "type": "string",
      "description": "Tax-data or backend-engine revision used for this response."
    },
    "method_version": {
      "type": "string",
      "description": "Calculation method or benchmark method version used for this response."
    },
    "orientation_note": {
      "type": "string",
      "description": "Reminder that the result is an orientation estimate, not professional advice."
    },
    "person1": {
      "type": "object",
      "additionalProperties": true,
      "description": "Payroll result for the first person. Interpret stable output codes with the original request Land and the output country-specific usage notes.",
      "properties": {
        "info": {
          "type": "string",
          "description": "Backend note, warning, or informational message for the calculation."
        },
        "BK": {
          "type": "integer",
          "description": "Country-polymorphic special payment, bonus-related gross component, or total package component in minor units. AT commonly represents 13th/14th salary handling; AU can represent total package including super."
        },
        "BKS": {
          "type": "integer",
          "description": "Country-polymorphic tax or contribution value related to special payment handling, in minor units."
        },
        "SOLZLZZ": {
          "type": "integer",
          "description": "Country-specific payroll-period surcharge or informational deduction in minor units. DE=solidarity surcharge, CH=municipal tax, CA=tax withholding, IE=student loan where modeled."
        },
        "SOLZS": {
          "type": "integer",
          "description": "Solidarity surcharge or country-specific equivalent on special payments, in minor units. Interpret by original request Land."
        },
        "STS": {
          "type": "integer",
          "description": "Country-polymorphic social contribution or country-specific charge on special payments, in minor units. Interpret by original request Land."
        },
        "LSTLZZ": {
          "type": "integer",
          "description": "Country-specific period tax or deduction in minor units. Interpret by original request Land: DE/AT=period wage tax, CH=cantonal tax, US/CA=federal tax, UK=student loan, AU=HELP/HECS repayment, IE=USC."
        },
        "KST": {
          "type": "integer",
          "description": "Church tax or country-specific religious levy deducted from payroll, in minor units. Mainly relevant for DE and CH; most other systems have no payroll church tax."
        },
        "ST": {
          "type": "integer",
          "description": "Primary payroll tax in minor units. Interpret by original request Land: DE/AT/UK=income tax, CH=federal or withholding tax component, US=federal plus state or state component depending response mapping, CA=provincial component, AU=PAYG tax, IE=PAYE."
        },
        "STJ": {
          "type": "integer",
          "description": "Annualized income tax value after child allowance or country-specific adjustment logic, in minor units. Interpret by original request Land."
        },
        "ZVE": {
          "type": "number",
          "description": "Taxable income used as the basis for the wage, payroll, or income tax calculation, in minor units. Interpret by original request Land."
        },
        "ZVEJ": {
          "type": "number",
          "description": "Taxable income after child allowances or country-specific adjustment logic, in minor units. Interpret by original request Land."
        },
        "KFBP": {
          "type": "string",
          "description": "Child allowance, child benefit, tax-credit, or favorable-test information returned by the calculator. Interpret by original request Land."
        },
        "RSV": {
          "type": "integer",
          "description": "Employee pension or retirement contribution for the selected payroll period in minor units. DE/AT=statutory pension, CH=AHV/IV/EO and possibly pension fund, US=Social Security/OASDI, CA=CPP/QPP, UK=workplace or state-pension-related contribution context, IE=pension/PRSA or PRSI pension context, AU=voluntary super contribution."
        },
        "KSV": {
          "type": "integer",
          "description": "Country-specific health, Medicare, USC, or equivalent contribution for the selected payroll period in minor units. DE/AT=statutory health contribution, CH=occupational accident/sickness or pillar-related payroll deduction rather than private KVG/LAMal bill, US=Medicare, AU=Medicare Levy, IE=USC, CA=province-related health or employment-insurance context depending backend mapping."
        },
        "PSV": {
          "type": "integer",
          "description": "Employee long-term care insurance or country-specific equivalent contribution for the selected payroll period in minor units. DE=nursing care insurance; CH can represent NBU/KTG-style accident/sickness context. Usually unused in other tax systems."
        },
        "ASV": {
          "type": "integer",
          "description": "Employee unemployment insurance or country-specific social contribution for the selected payroll period in minor units. DE/AT=unemployment/rest social insurance, CH=ALV/NBU, UK=National Insurance, IE=PRSI, CA=Employment Insurance or RRSP employee context depending response mapping, US=state disability/unemployment-style employee item where applicable, AU is normally unused because unemployment benefits are tax-funded."
        },
        "NET": {
          "type": "integer",
          "description": "Net pay remaining after country-specific taxes and payroll deductions for the selected payroll period, in minor units."
        },
        "STX": {
          "type": "integer",
          "description": "Income tax due after annual tax equalization, joint assessment, or country-specific compensation logic, in minor units. Interpret by original request Land."
        },
        "STXJ": {
          "type": "integer",
          "description": "Income tax after annual equalization including child allowance, child benefit, tax credit, or country-specific dependent effects, in minor units."
        },
        "NETX": {
          "type": "integer",
          "description": "Net pay after annual tax equalization or country-specific compensation logic, excluding child benefit effects, in minor units. Interpret by original request Land."
        },
        "NETXJ": {
          "type": "integer",
          "description": "Actual annual available net income after country-specific annual adjustments, in minor units. Interpret by original request Land."
        },
        "GWV": {
          "type": "integer",
          "description": "Taxable benefit or monetary advantage included in the calculation, in minor units. Country meanings include in-kind benefit, benefit in kind, taxable benefit, or imputed income."
        },
        "VTL": {
          "type": "integer",
          "description": "Forecast, informational, or country-specific adjustment value in minor units. DE=tax refund/forecast info, AT=tax on 13th/14th salary, CH=withholding-tax info, US=401k/IRA info, UK=student loan, CA=RRSP/federal credit info, AU=employer superannuation, IE=USC or tax-credit info."
        },
        "Brutto": {
          "type": "integer",
          "description": "Gross earnings used in the calculation, before country-specific taxes and payroll deductions, in minor units."
        }
      }
    },
    "person2": {
      "type": "object",
      "additionalProperties": true,
      "description": "Payroll result for the second person. Values are zero or empty when the calculation mode uses only one person. Interpret stable output codes with the original request Land.",
      "properties": {
        "info": {
          "type": "string",
          "description": "Backend note, warning, or informational message for the calculation."
        },
        "BK": {
          "type": "integer",
          "description": "Country-polymorphic special payment, bonus-related gross component, or total package component in minor units. AT commonly represents 13th/14th salary handling; AU can represent total package including super."
        },
        "BKS": {
          "type": "integer",
          "description": "Country-polymorphic tax or contribution value related to special payment handling, in minor units."
        },
        "SOLZLZZ": {
          "type": "integer",
          "description": "Country-specific payroll-period surcharge or informational deduction in minor units. DE=solidarity surcharge, CH=municipal tax, CA=tax withholding, IE=student loan where modeled."
        },
        "SOLZS": {
          "type": "integer",
          "description": "Solidarity surcharge or country-specific equivalent on special payments, in minor units. Interpret by original request Land."
        },
        "STS": {
          "type": "integer",
          "description": "Country-polymorphic social contribution or country-specific charge on special payments, in minor units. Interpret by original request Land."
        },
        "LSTLZZ": {
          "type": "integer",
          "description": "Country-specific period tax or deduction in minor units. Interpret by original request Land: DE/AT=period wage tax, CH=cantonal tax, US/CA=federal tax, UK=student loan, AU=HELP/HECS repayment, IE=USC."
        },
        "KST": {
          "type": "integer",
          "description": "Church tax or country-specific religious levy deducted from payroll, in minor units. Mainly relevant for DE and CH; most other systems have no payroll church tax."
        },
        "ST": {
          "type": "integer",
          "description": "Primary payroll tax in minor units. Interpret by original request Land: DE/AT/UK=income tax, CH=federal or withholding tax component, US=federal plus state or state component depending response mapping, CA=provincial component, AU=PAYG tax, IE=PAYE."
        },
        "STJ": {
          "type": "integer",
          "description": "Annualized income tax value after child allowance or country-specific adjustment logic, in minor units. Interpret by original request Land."
        },
        "ZVE": {
          "type": "number",
          "description": "Taxable income used as the basis for the wage, payroll, or income tax calculation, in minor units. Interpret by original request Land."
        },
        "ZVEJ": {
          "type": "number",
          "description": "Taxable income after child allowances or country-specific adjustment logic, in minor units. Interpret by original request Land."
        },
        "KFBP": {
          "type": "string",
          "description": "Child allowance, child benefit, tax-credit, or favorable-test information returned by the calculator. Interpret by original request Land."
        },
        "RSV": {
          "type": "integer",
          "description": "Employee pension or retirement contribution for the selected payroll period in minor units. DE/AT=statutory pension, CH=AHV/IV/EO and possibly pension fund, US=Social Security/OASDI, CA=CPP/QPP, UK=workplace or state-pension-related contribution context, IE=pension/PRSA or PRSI pension context, AU=voluntary super contribution."
        },
        "KSV": {
          "type": "integer",
          "description": "Country-specific health, Medicare, USC, or equivalent contribution for the selected payroll period in minor units. DE/AT=statutory health contribution, CH=occupational accident/sickness or pillar-related payroll deduction rather than private KVG/LAMal bill, US=Medicare, AU=Medicare Levy, IE=USC, CA=province-related health or employment-insurance context depending backend mapping."
        },
        "PSV": {
          "type": "integer",
          "description": "Employee long-term care insurance or country-specific equivalent contribution for the selected payroll period in minor units. DE=nursing care insurance; CH can represent NBU/KTG-style accident/sickness context. Usually unused in other tax systems."
        },
        "ASV": {
          "type": "integer",
          "description": "Employee unemployment insurance or country-specific social contribution for the selected payroll period in minor units. DE/AT=unemployment/rest social insurance, CH=ALV/NBU, UK=National Insurance, IE=PRSI, CA=Employment Insurance or RRSP employee context depending response mapping, US=state disability/unemployment-style employee item where applicable, AU is normally unused because unemployment benefits are tax-funded."
        },
        "NET": {
          "type": "integer",
          "description": "Net pay remaining after country-specific taxes and payroll deductions for the selected payroll period, in minor units."
        },
        "STX": {
          "type": "integer",
          "description": "Income tax due after annual tax equalization, joint assessment, or country-specific compensation logic, in minor units. Interpret by original request Land."
        },
        "STXJ": {
          "type": "integer",
          "description": "Income tax after annual equalization including child allowance, child benefit, tax credit, or country-specific dependent effects, in minor units."
        },
        "NETX": {
          "type": "integer",
          "description": "Net pay after annual tax equalization or country-specific compensation logic, excluding child benefit effects, in minor units. Interpret by original request Land."
        },
        "NETXJ": {
          "type": "integer",
          "description": "Actual annual available net income after country-specific annual adjustments, in minor units. Interpret by original request Land."
        },
        "GWV": {
          "type": "integer",
          "description": "Taxable benefit or monetary advantage included in the calculation, in minor units. Country meanings include in-kind benefit, benefit in kind, taxable benefit, or imputed income."
        },
        "VTL": {
          "type": "integer",
          "description": "Forecast, informational, or country-specific adjustment value in minor units. DE=tax refund/forecast info, AT=tax on 13th/14th salary, CH=withholding-tax info, US=401k/IRA info, UK=student loan, CA=RRSP/federal credit info, AU=employer superannuation, IE=USC or tax-credit info."
        },
        "Brutto": {
          "type": "integer",
          "description": "Gross earnings used in the calculation, before country-specific taxes and payroll deductions, in minor units."
        }
      }
    },
    "gesamt": {
      "type": "object",
      "additionalProperties": true,
      "description": "Combined payroll result across all persons in the calculation. Uses the same country-specific output-code meanings as person1 and person2.",
      "properties": {
        "info": {
          "type": "string",
          "description": "Backend note, warning, or informational message for the calculation."
        },
        "BK": {
          "type": "integer",
          "description": "Country-polymorphic special payment, bonus-related gross component, or total package component in minor units. AT commonly represents 13th/14th salary handling; AU can represent total package including super."
        },
        "BKS": {
          "type": "integer",
          "description": "Country-polymorphic tax or contribution value related to special payment handling, in minor units."
        },
        "SOLZLZZ": {
          "type": "integer",
          "description": "Country-specific payroll-period surcharge or informational deduction in minor units. DE=solidarity surcharge, CH=municipal tax, CA=tax withholding, IE=student loan where modeled."
        },
        "SOLZS": {
          "type": "integer",
          "description": "Solidarity surcharge or country-specific equivalent on special payments, in minor units. Interpret by original request Land."
        },
        "STS": {
          "type": "integer",
          "description": "Country-polymorphic social contribution or country-specific charge on special payments, in minor units. Interpret by original request Land."
        },
        "LSTLZZ": {
          "type": "integer",
          "description": "Country-specific period tax or deduction in minor units. Interpret by original request Land: DE/AT=period wage tax, CH=cantonal tax, US/CA=federal tax, UK=student loan, AU=HELP/HECS repayment, IE=USC."
        },
        "KST": {
          "type": "integer",
          "description": "Church tax or country-specific religious levy deducted from payroll, in minor units. Mainly relevant for DE and CH; most other systems have no payroll church tax."
        },
        "ST": {
          "type": "integer",
          "description": "Primary payroll tax in minor units. Interpret by original request Land: DE/AT/UK=income tax, CH=federal or withholding tax component, US=federal plus state or state component depending response mapping, CA=provincial component, AU=PAYG tax, IE=PAYE."
        },
        "STJ": {
          "type": "integer",
          "description": "Annualized income tax value after child allowance or country-specific adjustment logic, in minor units. Interpret by original request Land."
        },
        "ZVE": {
          "type": "number",
          "description": "Taxable income used as the basis for the wage, payroll, or income tax calculation, in minor units. Interpret by original request Land."
        },
        "ZVEJ": {
          "type": "number",
          "description": "Taxable income after child allowances or country-specific adjustment logic, in minor units. Interpret by original request Land."
        },
        "KFBP": {
          "type": "string",
          "description": "Child allowance, child benefit, tax-credit, or favorable-test information returned by the calculator. Interpret by original request Land."
        },
        "RSV": {
          "type": "integer",
          "description": "Employee pension or retirement contribution for the selected payroll period in minor units. DE/AT=statutory pension, CH=AHV/IV/EO and possibly pension fund, US=Social Security/OASDI, CA=CPP/QPP, UK=workplace or state-pension-related contribution context, IE=pension/PRSA or PRSI pension context, AU=voluntary super contribution."
        },
        "KSV": {
          "type": "integer",
          "description": "Country-specific health, Medicare, USC, or equivalent contribution for the selected payroll period in minor units. DE/AT=statutory health contribution, CH=occupational accident/sickness or pillar-related payroll deduction rather than private KVG/LAMal bill, US=Medicare, AU=Medicare Levy, IE=USC, CA=province-related health or employment-insurance context depending backend mapping."
        },
        "PSV": {
          "type": "integer",
          "description": "Employee long-term care insurance or country-specific equivalent contribution for the selected payroll period in minor units. DE=nursing care insurance; CH can represent NBU/KTG-style accident/sickness context. Usually unused in other tax systems."
        },
        "ASV": {
          "type": "integer",
          "description": "Employee unemployment insurance or country-specific social contribution for the selected payroll period in minor units. DE/AT=unemployment/rest social insurance, CH=ALV/NBU, UK=National Insurance, IE=PRSI, CA=Employment Insurance or RRSP employee context depending response mapping, US=state disability/unemployment-style employee item where applicable, AU is normally unused because unemployment benefits are tax-funded."
        },
        "NET": {
          "type": "integer",
          "description": "Net pay remaining after country-specific taxes and payroll deductions for the selected payroll period, in minor units."
        },
        "STX": {
          "type": "integer",
          "description": "Income tax due after annual tax equalization, joint assessment, or country-specific compensation logic, in minor units. Interpret by original request Land."
        },
        "STXJ": {
          "type": "integer",
          "description": "Income tax after annual equalization including child allowance, child benefit, tax credit, or country-specific dependent effects, in minor units."
        },
        "NETX": {
          "type": "integer",
          "description": "Net pay after annual tax equalization or country-specific compensation logic, excluding child benefit effects, in minor units. Interpret by original request Land."
        },
        "NETXJ": {
          "type": "integer",
          "description": "Actual annual available net income after country-specific annual adjustments, in minor units. Interpret by original request Land."
        },
        "GWV": {
          "type": "integer",
          "description": "Taxable benefit or monetary advantage included in the calculation, in minor units. Country meanings include in-kind benefit, benefit in kind, taxable benefit, or imputed income."
        },
        "VTL": {
          "type": "integer",
          "description": "Forecast, informational, or country-specific adjustment value in minor units. DE=tax refund/forecast info, AT=tax on 13th/14th salary, CH=withholding-tax info, US=401k/IRA info, UK=student loan, CA=RRSP/federal credit info, AU=employer superannuation, IE=USC or tax-credit info."
        },
        "Brutto": {
          "type": "integer",
          "description": "Gross earnings used in the calculation, before country-specific taxes and payroll deductions, in minor units."
        }
      }
    },
    "faktor": {
      "type": "number",
      "description": "Tax factor used for German tax class IV factor workflows when applicable."
    },
    "source_url": {
      "type": "string",
      "description": "Canonical Obolus URL for the matching interactive calculator."
    },
    "visual_report": {
      "type": "string",
      "description": "Deep link to the interactive report or calculator view."
    },
    "localized_cta": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "de": {
          "type": "string",
          "description": "German CTA for the visual report link."
        },
        "en": {
          "type": "string",
          "description": "English CTA for the visual report link."
        },
        "tr": {
          "type": "string",
          "description": "Turkish CTA for the visual report link."
        }
      },
      "required": [
        "de",
        "en"
      ],
      "description": "Localized call-to-action labels for opening the visual Obolus report link."
    },
    "summary": {
      "type": "object",
      "additionalProperties": false,
      "description": "Normalized major-unit amounts for gross income, net income, taxes, social contributions, and total deductions. Use this stable summary for display; raw payroll fields remain available for country-specific detail.",
      "properties": {
        "amounts": {
          "type": "array",
          "minItems": 1,
          "description": "Normalized monetary amounts in major currency units. Each item has key, amount, currency, and period; taxcompare items also identify country.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "description": "One normalized monetary amount in major currency units. Use key, period, and country to interpret it without relying on raw engine field names or array order.",
            "properties": {
              "key": {
                "type": "string",
                "enum": [
                  "gross_income",
                  "net_income",
                  "taxes",
                  "social_contributions",
                  "total_deductions"
                ],
                "description": "Country-neutral metric key: gross income, net income, taxes, social contributions, or total deductions."
              },
              "amount": {
                "type": "number",
                "description": "Amount in major currency units, such as EUR 37,363.00 rather than cents."
              },
              "currency": {
                "type": "string",
                "enum": [
                  "EUR",
                  "USD",
                  "CHF",
                  "CAD",
                  "AUD",
                  "GBP"
                ],
                "description": "ISO currency code for amount, normalized to uppercase."
              },
              "period": {
                "type": "string",
                "enum": [
                  "annual",
                  "monthly",
                  "weekly",
                  "daily"
                ],
                "description": "Period represented by the amount."
              },
              "country": {
                "type": "string",
                "enum": [
                  "DE",
                  "AT",
                  "US",
                  "CH",
                  "CA",
                  "AU",
                  "UK",
                  "IE"
                ],
                "description": "Country code for the amount. Present for payroll and comparison results; absent only when the caller supplied no country context."
              }
            },
            "required": [
              "key",
              "amount",
              "currency",
              "period"
            ]
          }
        },
        "tax_year": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ],
          "description": "Tax year used for the summary when the calculation exposes one."
        },
        "comparison_basis": {
          "type": "string",
          "enum": [
            "shared_gross",
            "local_median_gross"
          ],
          "description": "Taxcompare basis used for the summary: shared_gross or local_median_gross."
        }
      },
      "required": [
        "amounts"
      ]
    },
    "assumptions": {
      "type": "object",
      "additionalProperties": true,
      "description": "Normalized user-facing assumptions used for the payroll calculation, including country, salary period, location, tax class, church tax, and German social-security choices. Use this to explain what the calculation assumed without exposing raw payroll-engine flags.",
      "properties": {
        "age": {
          "type": "integer",
          "description": "Age used for the calculation."
        },
        "age_source": {
          "type": "string",
          "enum": [
            "user_input",
            "legacy_birth_year",
            "standard_assumption"
          ],
          "description": "Whether age came from the user, a legacy birth year, or the standard assumption."
        }
      }
    },
    "warnings": {
      "type": "array",
      "description": "Non-blocking warnings about suspicious inputs, such as annual gross sent with monthly LZZ, scaled German Zusatzbeitrag values, or raw German insurance combinations that may be intentional for non-standard cases.",
      "items": {
        "type": "string",
        "description": "Human-readable warning message."
      }
    }
  },
  "required": [
    "source_url",
    "visual_report",
    "localized_cta",
    "summary",
    "calculated_at",
    "contract_version",
    "tax_data_version",
    "method_version",
    "orientation_note",
    "assumptions",
    "warnings"
  ]
}