Retirement Lab Scenarios API

The scenarios API from Retirement Lab — 2 operation(s) for scenarios.

GitHub OpenAPI

Operations 2

POST /api/scenarios/preview-conversion-tax Preview Conversion Tax #
POST /api/scenarios/preview-exit-tax Preview Exit Tax #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/retirementlab-app:retirementlab-app-scenarios-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

retirementlab-app-scenarios-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Income Simulator Scenarios API
  version: 0.1.0
tags:
- name: Scenarios
paths:
  /api/scenarios/preview-conversion-tax:
    post:
      tags:
      - Scenarios
      summary: Preview Conversion Tax
      description: 'Single-year tax preview for a Roth conversion event.


        Computes the marginal tax cost of adding ``amount`` to the conversion

        year''s taxable ordinary income, using the residency/regime that applies

        in that year (honoring any relocation events). The baseline reflects the

        scenario''s projected ordinary income (wages, pensions, savings during

        accumulation) so the preview captures the conversion''s marginal bracket

        impact rather than a stand-alone calculation. The conversion amount is

        routed as residual ordinary income (matching the engine''s

        ``tax_deferred_withdrawal`` lane), which carries the foreign-source tag

        that the Portugal NHR exemption requires for US citizens abroad.'
      operationId: preview_conversion_tax_api_scenarios_preview_conversion_tax_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConversionTaxPreviewRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversionTaxPreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/scenarios/preview-exit-tax:
    post:
      tags:
      - Scenarios
      summary: Preview Exit Tax
      description: 'Estimate the exit tax for a proposed relocation event.


        Thin wrapper over ``tax_engine.exit_taxes.compute_exit_tax``. Resolves

        the residency country at the proposed year (honoring any earlier

        relocation events on the scenario) and runs the destination handler.

        Cached per (scenario-hash + proposed-relocation) tuple so the editor''s

        live preview stays under the 200ms budget on repeat keystrokes.'
      operationId: preview_exit_tax_api_scenarios_preview_exit_tax_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExitTaxPreviewRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExitTaxPreviewResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ExitTaxPreviewRequest:
      properties:
        simulation:
          $ref: '#/components/schemas/SimulationConfigPayload'
        proposed_relocation:
          $ref: '#/components/schemas/ExitTaxPreviewProposedRelocation'
      additionalProperties: false
      type: object
      required:
      - simulation
      - proposed_relocation
      title: ExitTaxPreviewRequest
    RothConversionPayload:
      properties:
        year:
          type: integer
          title: Year
        amount:
          type: number
          minimum: 0.0
          title: Amount
        from_wrapper_id:
          type: string
          title: From Wrapper Id
        to_wrapper_id:
          type: string
          title: To Wrapper Id
        item_id:
          type: string
          format: uuid
          title: Item Id
        derived_from:
          type: string
          title: Derived From
      additionalProperties: false
      type: object
      required:
      - year
      - amount
      - from_wrapper_id
      - to_wrapper_id
      title: RothConversionPayload
      description: 'Roth conversion event scheduled for a specific calendar year.


        Moves ``amount`` (real dollars at sc.initial_year) from a tax-deferred

        wrapper to a tax-free wrapper at the start of ``year``. The wrapper-bucket

        validation is enforced at the SimulationConfigPayload root validator so

        cross-field error messages can list the offending wrapper id.'
    ConversionTaxPreviewResponse:
      properties:
        year:
          type: integer
          title: Year
        amount:
          type: number
          title: Amount
        residency_country:
          type: string
          title: Residency Country
        residency_regime:
          type: string
          title: Residency Regime
        citizenship_country:
          type: string
          title: Citizenship Country
        overlay_active:
          type: boolean
          title: Overlay Active
        residency_tax_impact:
          type: number
          title: Residency Tax Impact
        citizenship_tax_impact:
          type: number
          title: Citizenship Tax Impact
        ftc_applied:
          type: number
          title: Ftc Applied
        total_tax_impact:
          type: number
          title: Total Tax Impact
      type: object
      required:
      - year
      - amount
      - residency_country
      - citizenship_country
      - overlay_active
      - residency_tax_impact
      - citizenship_tax_impact
      - ftc_applied
      - total_tax_impact
      title: ConversionTaxPreviewResponse
    PumaCsmAssumptionPayload:
      properties:
        eligibility_status:
          type: string
          enum:
          - unknown
          - eligible
          - ineligible
          title: Eligibility Status
          default: unknown
      additionalProperties: false
      type: object
      title: PumaCsmAssumptionPayload
      description: 'France PUMa cotisation subsidiaire maladie (CSM) eligibility assumption.


        A scenario-level state, separate from the per-adult

        ``puma_household_adults`` entries. ``"unknown"`` (the default) must never

        silently activate CSM liability downstream.'
    GlidePathWaypointPayload:
      properties:
        age:
          type: integer
          minimum: 0.0
          title: Age
        allocation:
          items:
            type: object
          type: array
          title: Allocation
        item_id:
          type: string
          format: uuid
          title: Item Id
      additionalProperties: false
      type: object
      required:
      - age
      - allocation
      title: GlidePathWaypointPayload
    SimulationAccountPayload:
      properties:
        wrapper_id:
          type: string
          title: Wrapper Id
        balance:
          type: number
          minimum: 0.0
          title: Balance
          description: Account balance in full local currency units.
        cost_basis:
          type: number
          minimum: 0.0
          title: Cost Basis
        person:
          type: string
          enum:
          - A
          - B
          title: Person
        item_id:
          type: string
          format: uuid
          title: Item Id
        cross_border_tax_facts:
          $ref: '#/components/schemas/CrossBorderTaxFactsPayload'
        withdrawal_access:
          $ref: '#/components/schemas/AccountAccessRulePayload'
        securities_holding_eligibility_override:
          type: string
          enum:
          - eligible
          - ineligible
          title: Securities Holding Eligibility Override
      additionalProperties: false
      type: object
      required:
      - wrapper_id
      - balance
      title: SimulationAccountPayload
    ExitTaxPreviewProposedRelocation:
      properties:
        year:
          type: integer
          title: Year
        to_country:
          type: string
          title: To Country
        regime:
          type: string
          title: Regime
      additionalProperties: false
      type: object
      required:
      - year
      - to_country
      title: ExitTaxPreviewProposedRelocation
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    PumaHouseholdAdultPayload:
      properties:
        household_relationship:
          type: string
          enum:
          - self
          - spouse
          - pacs_partner
          - other_adult
          title: Household Relationship
          default: self
        income_attribution:
          type: string
          enum:
          - per_adult
          - equal_household
          title: Income Attribution
          default: per_adult
        person:
          type: string
          enum:
          - A
          - B
          title: Person
        coverage_start_date:
          type: string
          format: date
          title: Coverage Start Date
        coverage_end_date:
          type: string
          format: date
          title: Coverage End Date
        item_id:
          type: string
          format: uuid
          title: Item Id
      additionalProperties: false
      type: object
      title: PumaHouseholdAdultPayload
      description: 'One durable per-adult record for France PUMa/CSM liability facts.


        ``person`` links this entry back to the existing ``person`` tag ("A"/"B")

        used on income/account rows so the CSM statutory-formula income inputs

        can reuse already-modeled professional-income and pension facts instead

        of duplicating them here.'
    Article24ReliefFactsPayload:
      properties:
        schema_version:
          type: integer
          title: Schema Version
          default: 1
        eligibility_status:
          type: string
          enum:
          - unknown
          - eligible
          - ineligible
          title: Eligibility Status
          default: unknown
        qualifying_investment_income_fraction:
          type: number
          maximum: 1.0
          minimum: 0.0
          title: Qualifying Investment Income Fraction
        qualifying_capital_gains_fraction:
          type: number
          maximum: 1.0
          minimum: 0.0
          title: Qualifying Capital Gains Fraction
        us_source_or_asset_qualification_confirmed:
          type: boolean
          title: Us Source Or Asset Qualification Confirmed
        beneficial_ownership_confirmed:
          type: boolean
          title: Beneficial Ownership Confirmed
        us_reporting_compliance_confirmed:
          type: boolean
          title: Us Reporting Compliance Confirmed
      additionalProperties: false
      type: object
      title: Article24ReliefFactsPayload
      description: 'France-US tax treaty Article 24 portfolio relief facts.


        These are user-confirmed simulation facts, not a determination of legal

        eligibility — user-facing copy referencing this block must say "based on

        your inputs" and avoid advisory terms. ``eligibility_status`` defaults to

        ``"unknown"``, which must never silently activate relief downstream. A

        globally diversified portfolio can contain both qualifying and

        non-qualifying assets, so eligibility is recorded as fractions rather

        than a single domestic/foreign flag.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RelocationEventPayload:
      properties:
        year:
          type: integer
          title: Year
        to_country:
          type: string
          title: To Country
        regime:
          type: string
          title: Regime
        item_id:
          type: string
          format: uuid
          title: Item Id
        sell_primary:
          type: boolean
          title: Sell Primary
          default: false
        buy_primary_value:
          type: number
          minimum: 0.0
          title: Buy Primary Value
        buy_primary_mortgage:
          type: number
          minimum: 0.0
          title: Buy Primary Mortgage
        fx_rate:
          type: number
          title: Fx Rate
        fx_source_currency:
          type: string
          title: Fx Source Currency
        fx_destination_currency:
          type: string
          title: Fx Destination Currency
        fx_assumption_source:
          type: string
          enum:
          - caller_supplied_fixed_rate
          title: Fx Assumption Source
      additionalProperties: false
      type: object
      required:
      - year
      - to_country
      title: RelocationEventPayload
      description: 'Residency change at an absolute calendar year.


        Housing fields are captured for the relocation editor''s "Housing"

        sub-section. They are stored but engine-unused in v1.'
    ComponentSourceTagPayload:
      properties:
        source:
          type: string
          enum:
          - domestic
          - foreign
          title: Source
          default: domestic
        remitted:
          type: boolean
          title: Remitted
          default: true
      additionalProperties: false
      type: object
      title: ComponentSourceTagPayload
    AccountAccessRulePayload:
      properties:
        mode:
          type: string
          enum:
          - default
          - available_now
          - penalty_free_from
          - locked_until
          title: Mode
          default: default
        age:
          type: integer
          minimum: 0.0
          title: Age
        year:
          type: integer
          title: Year
        rule_of_55_eligible:
          type: boolean
          title: Rule Of 55 Eligible
      additionalProperties: false
      type: object
      title: AccountAccessRulePayload
    BaselineAdjustmentPayload:
      properties:
        year:
          type: integer
          title: Year
        new_baseline:
          type: number
          minimum: 0.0
          title: New Baseline
        reason:
          type: string
          title: Reason
        item_id:
          type: string
          format: uuid
          title: Item Id
        derived_from:
          type: string
          title: Derived From
      additionalProperties: false
      type: object
      required:
      - year
      - new_baseline
      title: BaselineAdjustmentPayload
    SimulationExpensePayload:
      properties:
        description:
          type: string
          title: Description
        cost:
          type: number
          title: Cost
          description: Expense amount in full local currency units.
        begin_year:
          type: integer
          title: Begin Year
          description: First year the expense applies (inclusive).
        end_year:
          type: integer
          title: End Year
          description: Last year the expense applies (inclusive). For a single-year expense, set begin_year == end_year. The API services layer converts to the engine's half-open ``[begin, end)`` interval.
        item_id:
          type: string
          format: uuid
          title: Item Id
        seeded_from:
          type: string
          title: Seeded From
          description: Marker identifying a helper that generated this row (e.g. 'healthcare_defaults'). Absent on user-authored rows.
      additionalProperties: false
      type: object
      required:
      - description
      - cost
      - begin_year
      - end_year
      title: SimulationExpensePayload
    ConversionTaxPreviewRequest:
      properties:
        simulation:
          $ref: '#/components/schemas/SimulationConfigPayload'
        year:
          type: integer
          title: Year
        amount:
          type: number
          minimum: 0.0
          title: Amount
      type: object
      required:
      - simulation
      - year
      - amount
      title: ConversionTaxPreviewRequest
    SimulationConfigPayload:
      properties:
        initial_year:
          type: integer
          title: Initial Year
        initial_net_worth:
          type: number
          exclusiveMinimum: 0.0
          title: Initial Net Worth
          description: Starting portfolio value in full local currency units.
        baseline_annual_expenses:
          type: number
          minimum: 0.0
          title: Baseline Annual Expenses
          description: Baseline annual spending in full local currency units.
        additional_expenses:
          items:
            $ref: '#/components/schemas/SimulationExpensePayload'
          type: array
          title: Additional Expenses
        additional_income:
          items:
            $ref: '#/components/schemas/SimulationIncomePayload'
          type: array
          title: Additional Income
        country:
          type: string
          title: Country
        citizenship:
          type: string
          title: Citizenship
          default: ''
        avg_return:
          type: number
          title: Avg Return
        volatility:
          type: number
          minimum: 0.0
          title: Volatility
        approximate_yield_rate:
          type: number
          minimum: 0.0
          title: Approximate Yield Rate
        taxable_balance:
          type: number
          minimum: 0.0
          title: Taxable Balance
        tax_deferred_balance:
          type: number
          minimum: 0.0
          title: Tax Deferred Balance
        tax_free_balance:
          type: number
          minimum: 0.0
          title: Tax Free Balance
        taxable_cost_basis:
          type: number
          minimum: 0.0
          title: Taxable Cost Basis
        accounts:
          items:
            $ref: '#/components/schemas/SimulationAccountPayload'
          type: array
          title: Accounts
        withdrawal_order:
          type: string
          enum:
          - taxable_first
          - tax_deferred_first
          - tax_free_first
          title: Withdrawal Order
          default: taxable_first
        tax_filing_status:
          type: string
          enum:
          - single
          - married_filing_jointly
          - head_of_household
          title: Tax Filing Status
          default: single
        wealth_tax_region:
          type: string
          title: Wealth Tax Region
          default: default
        tax_regime:
          type: string
          title: Tax Regime
          default: default
        subnational_region:
          type: string
          title: Subnational Region
          default: default
        taxable_portfolio_source:
          type: string
          enum:
          - domestic
          - foreign
          title: Taxable Portfolio Source
          default: domestic
        tax_regime_years_remaining:
          type: integer
          minimum: 0.0
          title: Tax Regime Years Remaining
        portfolio_dividend_qualified_pct:
          type: number
          maximum: 1.0
          minimum: 0.0
          title: Portfolio Dividend Qualified Pct
        portfolio_gains_longterm_pct:
          type: number
          maximum: 1.0
          minimum: 0.0
          title: Portfolio Gains Longterm Pct
        primary_residence_value:
          type: number
          minimum: 0.0
          title: Primary Residence Value
        primary_residence_debt:
          type: number
          minimum: 0.0
          title: Primary Residence Debt
        non_portfolio_property_value:
          type: number
          minimum: 0.0
          title: Non Portfolio Property Value
        regime_eligibility_facts:
          type: object
          title: Regime Eligibility Facts
        tax_profile_extended:
          additionalProperties:
            anyOf:
            - $ref: '#/components/schemas/ComponentSourceTagPayload'
            - type: string
          type: object
          title: Tax Profile Extended
        medicare_levy_applicable:
          type: boolean
          title: Medicare Levy Applicable
        super_characterization:
          type: string
          title: Super Characterization
        remittance_basis:
          type: boolean
          title: Remittance Basis
        tax_profile_explicit_fields:
          items:
            type: string
          type: array
          title: Tax Profile Explicit Fields
        horizon:
          type: integer
          minimum: 1.0
          title: Horizon
          default: 50
        n_scenarios:
          type: integer
          minimum: 1.0
          title: N Scenarios
          default: 10000
        inflation:
          type: number
          title: Inflation
          default: 0.02
        tail_profile:
          type: string
          enum:
          - none
          - historical
          - severe
          title: Tail Profile
          description: 'Shape of each asset''s annual returns. ''historical'' (default): skew and tail weight fitted to long US histories; ''none'': plain log-normal; ''severe'': the heaviest stock-market tail the 1871-2024 record cannot rule out. Expected returns and volatilities are unchanged by the choice.'
          default: historical
        market_turbulence:
          type: string
          enum:
          - calmer
          - historical
          - rougher
          title: Market Turbulence
          description: 'How big each year''s market ups and downs are. ''historical'' (default): US stock volatility over 1871-2024; ''calmer'': the calmest 30-year stretch on record (1871-1900); ''rougher'': the roughest (1927-1956). Scales every asset''s volatility; expected compound returns are unchanged.'
          default: historical
        skewness_start:
          type: number
          title: Skewness Start
          description: Deprecated and ignored; use tail_profile.
          default: -1.0
        skewness_factor:
          type: number
          minimum: 0.0
          title: Skewness Factor
          description: Deprecated and ignored; use tail_profile.
          default: 1.4
        minimum_ending_balance:
          type: number
          minimum: 0.0
          title: Minimum Ending Balance
          default: 0.0
        primary_heir_country:
          type: string
          title: Primary Heir Country
        retirement_year:
          type: integer
          title: Retirement Year
        annual_savings:
          type: number
          minimum: 0.0
          title: Annual Savings
        age:
          type: integer
          minimum: 0.0
          title: Age
        plan_to_age:
          type: integer
          minimum: 1.0
          title: Plan To Age
        person_b_retirement_year:
          type: integer
          title: Person B Retirement Year
        person_b_age:
          type: integer
          minimum: 0.0
          title: Person B Age
        person_b_plan_to_age:
          type: integer
          minimum: 1.0
          title: Person B Plan To Age
        person_labels:
          items:
            type: string
          type: array
          title: Person Labels
        portfolio_preset:
          type: string
          title: Portfolio Preset
        portfolio_allocation:
          items:
            type: object
          type: array
          title: Portfolio Allocation
        glide_path:
          items:
            $ref: '#/components/schemas/GlidePathWaypointPayload'
          type: array
          title: Glide Path
        rebalancing_mode:
          type: string
          enum:
          - annual
          - threshold
          - none
          title: Rebalancing Mode
          default: annual
        rebalancing_threshold:
          type: number
          title: Rebalancing Threshold
          default: 0.05
        regime_aware:
          type: boolean
          title: Regime Aware
          default: false
        simulation_mode:
          type: string
          enum:
          - monte_carlo_regime
          - monte_carlo_iid
          - historical
          title: Simulation Mode
          default: monte_carlo_iid
        withdrawal_strategy:
          type: string
          title: Withdrawal Strategy
          default: fixed
        withdrawal_strategy_params:
          type: object
          title: Withdrawal Strategy Params
        return_assumption_preset:
          type: string
          title: Return Assumption Preset
          default: historical
        return_overrides:
          additionalProperties:
            type: number
          type: object
          title: Return Overrides
        aca_subsidies_enabled:
          type: boolean
          title: Aca Subsidies Enabled
          default: false
        household_size:
          type: integer
          minimum: 1.0
          title: Household Size
        aca_state:
          type: string
          title: Aca State
        medicare_enabled:
          type: boolean
          title: Medicare Enabled
          default: false
        irmaa_enabled:
          type: boolean
          title: Irmaa Enabled
          default: false
        tax_loss_harvesting_enabled:
          type: boolean
          title: Tax Loss Harvesting Enabled
          default: false
        residency_schedule:
          items:
            type: object
          type: array
          title: Residency Schedule
        relocation_events:
          items:
            $ref: '#/components/schemas/RelocationEventPayload'
          type: array
          title: Relocation Events
        baseline_adjustments:
          items:
            $ref: '#/components/schemas/BaselineAdjustmentPayload'
          type: array
          title: Baseline Adjustments
        roth_conversions:
          items:
            $ref: '#/components/schemas/RothConversionPayload'
          type: array
          title: Roth Conversions
        article24_relief:
          $ref: '#/components/schemas/Article24ReliefFactsPayload'
        puma_csm:
          $ref: '#/components/schemas/PumaCsmAssumptionPayload'
        puma_household_adults:
          items:
            $ref: '#/components/schemas/PumaHouseholdAdultPayload'
          type: array
          title: Puma Household Adults
      additionalProperties: false
      type: object
      required:
      - initial_year
      - initial_net_worth
      - baseline_annual_expenses
      - additional_expenses
      - additional_income
      - country
      - avg_return
      - volatility
      - approximate_yield_rate
      - taxable_balance
      - tax_deferred_balance
      - tax_free_balance
      - taxable_cost_basis
      title: SimulationConfigPayload
      description: Simulation payload with all money values represented in full currency units.
    ExitTaxPreviewResponse:
      properties:
        applies:
          type: boolean
          title: Applies
        amount:
          type: number
          title: Amount
        rule_name:
          type: string
          title: Rule Name
        from_country:
          type: string
          title: From Country
        to_country:
          type: string
          title: To Country
        year:
          type: integer
          title: Year
        tax_component:
          type: string
          title: Tax Component
        caveat:
          type: string
          title: Caveat
        basis_available:
          type: boolean
          title: Basis Available
          default: true
      type: object
      required:
      - applies
      - amount
      - rule_name
      - from_country
      - to_country
      - year
      - tax_component
      title: ExitTaxPreviewResponse
    SimulationIncomePayload:
      properties:
        description:
          type: string
          title: Description
        income:
          type: number
          title: Income
          description: Income amount in full local currency units.
        begin_year:
          type: integer
          title: Begin Year
          description: First year the income applies (inclusive).
        end_year:
          type: integer
          title: End Year
          description: Last year the income applies (inclusive). For a single-year income, set begin_year == end_year. The API services layer converts to the engine's half-open ``[begin, end)`` interval.
        type:
          type: string
          enum:
          - employment
          - social_security
          - public_pension
          - private_pension
          - rental
          - other
          - asset_sale
          title: Type
          default: other
        source_country:
          type: string
          title: Source Country
        claim_age:
          type: integer
          title: Claim Age
        benefit_source:
          type: string
          title: Benefit Source
        cost_basis:
          type: number
          minimum: 0.0
          title: Cost Basis
        person:
          type: string
          enum:
          - A
          - B
          title: Person
        item_id:
          type: string
          format: uuid
          title: Item Id
        ss_benefit_basis_mode:
          type: string
          enum:
          - fra_benefit
          - ssa_estimate_at_age
          - already_receiving
          title: Ss Benefit Basis Mode
        ss_monthly_benefit_basis:
          type: number
          minimum: 0.0
          title: Ss Monthly Benefit Basis
        ss_benefit_basis_age:
          type: integer
          maximum: 80.0
          minimum: 50.0
          title: Ss Benefit Basis Age
        ss_fra_age:
          type: integer
          maximum: 70.0
          minimum: 60.0
          title: Ss Fra Age
      additionalProperties: false
      type: object
      required:
      - description
      - income
      - begin_year
      - end_year
      title: SimulationIncomePayload
    CrossBorderTaxFactsPayload:
      properties:
        roth_contribution_basis:
          type: number
          minimum: 0.0
          title: Roth Contribution Basis
        qualified_roth_distribution:
          type: boolean
          title: Qualified Roth Distribution
        canada_roth_election:
          type: boolean
          title: Canada Roth Election
        post_residency_contribution:
          type: boolean
          title: Post Residency Contribution
        payment_form:
          type: string
          enum:
          - lump_sum
          - periodic
          title: Payment Form
      additionalProperties: false
      type: object
      title: CrossBorderTaxFactsPayload
      description: 'Wrapper-tax facts the simulator cannot infer from a balance.


        Every field is optional: ``None`` (or absent) means the user has not

        asserted the fact yet. Empty payloads round-trip as ``None`` on the

        parent ``SimulationAccountPayload`` so existing scenarios stay

        backwards compatible.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer