{"data":{"slug":"freistellungsauftrag","title":"Freistellungsauftrag optimizer (German tax exemption order)","description":"Distribute your saver's allowance across banks and brokers without leaving allowance unused.","endpoint":"/api/v1/public/calculators/freistellungsauftrag","methodology":"https://investboard.com/calculators/api/methodology#calculator-freistellungsauftrag","inputSchema":{"type":"object","properties":{"brokers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"zinsen":{"type":"number","minimum":0,"maximum":100000000,"default":0,"description":"EUR, numeric JSON value (not cents or a formatted string)."},"dividenden":{"type":"number","minimum":0,"maximum":100000000,"default":0,"description":"EUR, numeric JSON value (not cents or a formatted string)."},"vorabpauschale":{"type":"number","minimum":0,"maximum":100000000,"default":0,"description":"EUR, numeric JSON value (not cents or a formatted string)."},"realisierte_gewinne":{"type":"number","minimum":0,"maximum":100000000,"default":0,"description":"EUR, numeric JSON value (not cents or a formatted string)."},"current_fsa":{"type":"number","minimum":0,"maximum":2000,"default":0,"description":"EUR, numeric JSON value (not cents or a formatted string)."}},"required":["name"],"additionalProperties":false},"minItems":1,"maxItems":6,"default":[{"name":"Broker 1","zinsen":0,"dividenden":0,"vorabpauschale":0,"realisierte_gewinne":0,"current_fsa":0},{"name":"Broker 2","zinsen":0,"dividenden":0,"vorabpauschale":0,"realisierte_gewinne":0,"current_fsa":0}]},"taxProfile":{"type":"object","properties":{"bundesland":{"anyOf":[{"type":"string","enum":["Baden-Württemberg","Bayern","Berlin","Brandenburg","Bremen","Hamburg","Hessen","Mecklenburg-Vorpommern","Niedersachsen","Nordrhein-Westfalen","Rheinland-Pfalz","Saarland","Sachsen","Sachsen-Anhalt","Schleswig-Holstein","Thüringen"]},{"type":"null"}],"default":null},"kirchensteuer":{"type":"boolean","default":false},"filing_status":{"type":"string","enum":["single","joint"],"default":"single"},"sparerpauschbetrag_remaining":{"type":"number","minimum":0,"maximum":2000,"default":1000,"description":"Remaining EUR allowance for single-year tax calculations. Multi-year projections use the full annual statutory allowance based on filing_status."}},"default":{"bundesland":null,"kirchensteuer":false,"filing_status":"single","sparerpauschbetrag_remaining":1000},"additionalProperties":false}},"additionalProperties":false},"resultSchema":{"type":"object","properties":{"brokers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"expected_income":{"type":"number","description":"EUR, not cents."},"current_fsa":{"type":"number","description":"EUR, not cents."},"optimal_fsa":{"type":"number","description":"EUR, not cents."},"tax_with_current":{"type":"number","description":"EUR, not cents."},"tax_with_optimal":{"type":"number","description":"EUR, not cents."},"delta":{"type":"number","description":"EUR, not cents."}},"required":["name","expected_income","current_fsa","optimal_fsa","tax_with_current","tax_with_optimal","delta"],"additionalProperties":false}},"total_expected_income":{"type":"number","description":"EUR, not cents."},"total_fsa_available":{"type":"number","description":"EUR, not cents."},"total_fsa_optimal":{"type":"number","description":"EUR, not cents."},"total_tax_current":{"type":"number","description":"EUR, not cents."},"total_tax_optimal":{"type":"number","description":"EUR, not cents."},"savings":{"type":"number","description":"EUR, not cents."},"warnings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["over_limit"]},"message":{"type":"string"},"allocated":{"type":"number","description":"EUR, not cents."},"allowance":{"type":"number","description":"EUR, not cents."}},"required":["type","message","allocated","allowance"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["under_utilised"]},"message":{"type":"string"},"brokerIndex":{"type":"integer","minimum":0},"brokerName":{"type":"string"},"allocated":{"type":"number","description":"EUR, not cents."},"expected":{"type":"number","description":"EUR, not cents."}},"required":["type","message","brokerIndex","brokerName","allocated","expected"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["january_risk"]},"message":{"type":"string"},"brokerIndex":{"type":"integer","minimum":0},"brokerName":{"type":"string"},"preTax":{"type":"number","description":"EUR, not cents."},"allocated":{"type":"number","description":"EUR, not cents."}},"required":["type","message","brokerIndex","brokerName","preTax","allocated"],"additionalProperties":false}]}}},"required":["brokers","total_expected_income","total_fsa_available","total_fsa_optimal","total_tax_current","total_tax_optimal","savings","warnings"],"additionalProperties":false},"operationId":"calculateFreistellungsauftrag","example":{"inputs":{"brokers":[{"name":"Broker 1","zinsen":0,"dividenden":0,"vorabpauschale":0,"realisierte_gewinne":0,"current_fsa":0},{"name":"Broker 2","zinsen":0,"dividenden":0,"vorabpauschale":0,"realisierte_gewinne":0,"current_fsa":0}],"taxProfile":{"bundesland":null,"kirchensteuer":false,"filing_status":"single","sparerpauschbetrag_remaining":1000}},"locale":"en"}},"error":null,"meta":{}}