{"openapi":"3.1.0","info":{"title":"Tassi Free API","version":"1.5.0","contact":{"name":"Tassi","email":"hello@tassi.ai"},"description":"Read official-source country guides for residency, salary and filing, or get a free Singapore or Taiwan salary estimate. Free tools require no account, API key, wallet or payment. Estimate requests accept calculation facts only. Tassi cites the official sources and links to the filing portals.","x-guidance":"Use free coverage and estimates first. POST /api/v1/reports accepts original-currency employment facts without an account. Generate a fresh UUID v4 and 32 random bytes in base64 for private retrieval. Validate facts before paying exactly 1 USDC on Arc. Keep the same request/key for unsigned retries. Reports provide employment tax estimates and filing steps. Professional review, return submission and a final combined tax bill are not included. The request example is public synthetic discovery data, never a real person's retrieval key."},"servers":[{"url":"/api/v1"}],"paths":{"/capabilities":{"get":{"operationId":"getCapabilities","security":[],"description":"Read-only discovery before sharing tax details. No query fields. Reports supported Singapore and Taiwan salary estimate scope, years, rule version/review status and actual interest binding availability. languages.ui declares per-page availability and fallback; languages.reports lists accepted report locales. Language is independent of country and currency. Simplified Chinese public copy does not imply translated tax reports or professional translation approval. Production approval, payment and direct filing are false. Does not check a person's eligibility or current source health; estimates do those checks separately.","responses":{"200":{"description":"tassi.capabilities.v1; country codes, incomeYears, languages, capabilities, interest.available, productionApproved and ruleVersion","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.capabilities.v1"},"status":{"enum":["public_pilot","private_pilot"]},"productionApproved":{"const":false},"languages":{"type":"object","additionalProperties":false,"properties":{"ui":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string"},"nativeName":{"type":"string"},"pages":{"type":"array","items":{"type":"string"}},"fallback":{"type":"string"}},"required":["code","nativeName","pages","fallback"]}},"reports":{"type":"array","items":{"type":"string"}},"independentOfTaxCoverage":{"const":true},"professionalTranslationReview":{"type":"string"}},"required":["ui","reports","independentOfTaxCoverage","professionalTranslationReview"]},"countries":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$"},"name":{"type":"string"},"incomeYears":{"type":"array","items":{"type":"integer","minimum":2000,"maximum":2101}}},"required":["code","name","incomeYears"]}},"capabilities":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"enum":["estimate_tax_position","prepare_tax_packet","direct_filing"]},"status":{"enum":["free_pilot","paid_agent","unavailable"]}},"required":["id","status"]}},"ruleVersion":{"type":"string"},"reviewStatus":{"type":"string"},"rulesPath":{"const":"/api/v1/estimate-rules"},"coverageCheck":{"const":"/api/v1/coverage/check"},"interest":{"type":"object","additionalProperties":false,"properties":{"available":{"type":"boolean"},"path":{"const":"/api/v1/coverage/interest"},"consentVersion":{"type":"string"}},"required":["available","path","consentVersion"]},"taxReference":{"type":"object","additionalProperties":false,"properties":{"catalog":{"type":"string"},"guide":{"type":"string"},"directory":{"type":"string"},"free":{"const":true},"revision":{"type":"string"},"paidLookup":{"type":"object","additionalProperties":false,"properties":{"path":{"const":"/api/v1/tax-reference/lookup"},"method":{"const":"POST"},"paymentProtocol":{"const":"x402_v2"},"amount":{"const":"0.001"},"asset":{"const":"USDC"},"network":{"enum":["eip155:5042","eip155:5042002"]},"funding":{"const":"circle_gateway"},"wallet":{"const":"externally_owned_account"}},"required":["path","method","paymentProtocol","amount","asset","network","funding","wallet"]}},"required":["catalog","guide","directory","free","revision"]},"taxDetailsRequired":{"const":false},"directFiling":{"const":false},"payments":{"type":"boolean"},"servicePricing":{"type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.service-pricing.v4"},"quoteCurrency":{"const":"USD"},"estimateAmountMinor":{"const":0},"preparationPlans":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"const":"generate_report"},"service":{"const":"prepare_tax_packet"},"amountMinor":{"type":"integer","minimum":1,"maximum":1000000},"currency":{"const":"USD"},"settlement":{"type":"object","additionalProperties":false,"properties":{"asset":{"const":"USDC"},"units":{"type":"string","pattern":"^[0-9]+$"},"decimals":{"const":6},"network":{"type":"string"},"feesUnits":{"type":"string","pattern":"^[0-9]+$"}},"required":["asset","units","decimals","network","feesUnits"]},"termsVersion":{"type":"string"},"refundPolicyVersion":{"type":"string"},"status":{"enum":["contract_ready","disabled_until_authorized","available"]},"pricingStatus":{"const":"operator_defined_before_marketplace_listing"},"position":{"type":"string"},"refundPolicy":{"type":"string"}},"required":["id","service","amountMinor","currency","settlement","termsVersion","refundPolicyVersion","status","pricingStatus","position","refundPolicy"]}},"customInquiry":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"enquiry_only"},"contactEmail":{"const":"hello@tassi.ai"},"price":{"type":"null"},"availability":{"const":"subject_to_confirmation"},"sensitiveDataAccepted":{"const":false}},"required":["status","contactEmail","price","availability","sensitiveDataAccepted"]},"billingUnit":{"const":"report"},"automaticRenewal":{"const":false},"professionalReviewIncluded":{"const":false},"directFilingIncluded":{"const":false},"taxTreatment":{"const":"confirmed_before_checkout"},"paidPricingStatus":{"enum":["human_free_x402_planned","human_free_x402_live"]},"paymentsEnabled":{"type":"boolean"},"plannedSettlementAssets":{"type":"array","items":{"const":"USDC"}},"settlementQuoteRequired":{"const":true},"usdUsdcParityGuaranteed":{"const":false},"governmentTaxCurrency":{"const":"jurisdiction_local_currency"}},"required":["schema","quoteCurrency","estimateAmountMinor","preparationPlans","customInquiry","billingUnit","automaticRenewal","professionalReviewIncluded","directFilingIncluded","taxTreatment","paidPricingStatus","paymentsEnabled","plannedSettlementAssets","settlementQuoteRequired","usdUsdcParityGuaranteed","governmentTaxCurrency"]},"freeTesting":{"type":"object","additionalProperties":false,"properties":{"examplesPath":{"const":"/agent-examples.json"},"syntheticDataOnly":{"type":"boolean"},"accountRequired":{"const":false},"paymentRequired":{"const":false},"deploymentProtectionMayApply":{"type":"boolean"}},"required":["examplesPath","syntheticDataOnly","accountRequired","paymentRequired","deploymentProtectionMayApply"]},"publicAccess":{"type":"object","additionalProperties":false,"properties":{"mode":{"const":"calculation_facts_only"},"accountRequired":{"const":false},"invitationRequired":{"const":false},"apiKeyRequired":{"const":false},"walletRequired":{"const":false},"paymentRequired":{"const":false},"applicationPersistsInputs":{"const":false},"identifiersAccepted":{"const":false},"documentsAccepted":{"const":false},"hostingMetadataProcessedSeparately":{"const":true},"privacyPath":{"const":"/privacy/"}},"required":["mode","accountRequired","invitationRequired","apiKeyRequired","walletRequired","paymentRequired","applicationPersistsInputs","identifiersAccepted","documentsAccepted","hostingMetadataProcessedSeparately","privacyPath"]},"demand":{"type":"object","additionalProperties":false,"properties":{"available":{"type":"boolean"},"path":{"const":"/api/v1/demand/interest"},"consentVersion":{"type":"string"},"needs":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string"}},"entrypoints":{"type":"array","items":{"type":"string"}},"maxCountries":{"type":"integer","minimum":0},"maxNeeds":{"type":"integer","minimum":0},"receiptHours":{"type":"integer","minimum":0},"aggregateMonths":{"type":"integer","minimum":0},"purpose":{"const":"product_prioritisation"},"humanPermissionRequired":{"const":true},"contactCollected":{"const":false},"countsAre":{"const":"opted_in_requests_not_unique_people"},"offersService":{"const":false}},"required":["available","path","consentVersion","needs","sources","entrypoints","maxCountries","maxNeeds","receiptHours","aggregateMonths","purpose","humanPermissionRequired","contactCollected","countsAre","offersService"]}},"required":["schema","status","productionApproved","languages","countries","capabilities","ruleVersion","reviewStatus","rulesPath","coverageCheck","interest","taxDetailsRequired","directFiling","payments","servicePricing","freeTesting","demand"]}}}},"400":{"description":"Query fields not accepted"},"403":{"description":"Cross-origin browser request"},"405":{"description":"GET only"}},"summary":"Available services","tags":["Discovery"]}},"/coverage/check":{"post":{"operationId":"checkCoverage","security":[],"description":"No account or tax facts required. No query fields; JSON up to 2 KiB. Uses exact ISO alpha-2 codes, not inferred nationality or location. No automatic demand recording. HTTP 200 includes expected unsupported outcomes: never silently drops a country, calculates tax, or returns a zero-tax conclusion. supported_for_pilot describes selected employment rule availability, not production approval or confirmed eligibility.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageRequest"},"example":{"countryCodes":["TW"],"taxYear":2026,"capability":"estimate_tax_position"}}}},"responses":{"200":{"description":"Coverage result; retryable false and estimatedTax null","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.coverage.v1"},"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"capability":{"enum":["estimate_tax_position","prepare_tax_packet","direct_filing"]},"status":{"enum":["supported_for_pilot","unsupported_jurisdiction","unsupported_tax_year","capability_unavailable"]},"retryable":{"const":false},"estimatedTax":{"type":"null"},"supportedForPilot":{"type":"boolean"},"productionApproved":{"const":false},"jurisdictions":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$"},"status":{"enum":["unsupported_jurisdiction","unsupported_tax_year","pilot_rule_pack"]}},"required":["code","status"]}},"limitedAlternative":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"countryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"excludedCountryCodes":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"capability":{"const":"estimate_tax_position"},"requiresExplicitConfirmation":{"const":true},"completeAssessment":{"const":false},"limitations":{"type":"array","items":{"type":"string"}}},"required":["countryCodes","excludedCountryCodes","taxYear","capability","requiresExplicitConfirmation","completeAssessment","limitations"]},{"type":"null"}],"description":"For salary, confirm this scope covers where the person did the work before offering a narrower estimate."},"ruleVersion":{"type":"string"},"reviewStatus":{"type":"string"},"nextAction":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"code":{"const":"provide_employment_facts"},"href":{"const":"/#travelPrompt"}},"required":["code","href"]},{"type":"object","additionalProperties":false,"properties":{"code":{"const":"authorize_agent_report"},"href":{"const":"/account/"}},"required":["code","href"]},{"type":"object","additionalProperties":false,"properties":{"code":{"const":"submit_report_details"},"href":{"const":"/api/v1/reports"}},"required":["code","href"]},{"type":"object","additionalProperties":false,"properties":{"code":{"const":"use_official_guidance"},"interestPath":{"const":"/api/v1/coverage/interest"}},"required":["code","interestPath"]}]},"limitations":{"type":"array","items":{"type":"string"}}},"required":["schema","countryCodes","taxYear","capability","status","retryable","estimatedTax","supportedForPilot","productionApproved","jurisdictions","limitedAlternative","ruleVersion","reviewStatus","nextAction","limitations"]}}}},"400":{"description":"invalid_country_codes, invalid_tax_year, invalid_capability or unexpected_fields"},"403":{"description":"Cross-origin browser request"},"405":{"description":"POST only"},"413":{"description":"Body exceeds 2 KiB"},"415":{"description":"JSON required"},"503":{"description":"Service failure; not an unsupported-country response"}},"summary":"Check country coverage","tags":["Discovery"]}},"/coverage/interest":{"post":{"operationId":"registerCoverageInterest","security":[],"description":"Optional, explicit consent only for an unavailable selection. DISABLED in migration preview. Check capabilities.interest.available first. Agents need their human's specific permission to record interest; do not infer it from a coverage check or generate consent autonomously. No query fields, tax details, email or client environment. Use a fresh random UUIDv4 per logical opt-in and reuse it with the same selection for retries within 24 hours. Counts are requests, not unique people or willingness to pay. Daily server environment quota 1000. No follow-up, booking, filing authority or payment. Aggregate target retention 12 months with an operational purge required before activation. A 503 may have committed: retry the SAME request ID, not a new one.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageInterestRequest"}}}},"responses":{"200":{"description":"recorded true, duplicate boolean, receipt UUIDv4, retention and contactCollected false"},"400":{"description":"Invalid/extra fields, explicit_consent_required or coverage_already_available"},"403":{"description":"Cross-origin browser request"},"405":{"description":"POST only"},"409":{"description":"idempotency_conflict: do not retry changed input under an existing receipt"},"413":{"description":"Body exceeds 2 KiB"},"415":{"description":"JSON required"},"429":{"description":"interest_capacity_reached: retry on another UTC day with the same receipt"},"503":{"description":"interest_unavailable: disabled, unavailable or outcome unconfirmed; never a success acknowledgement"}}}},"/demand/interest":{"post":{"operationId":"recordProductDemand","security":[],"description":"Optional product-priority request, NOT a tax answer, subscription, booking or willingness-to-pay commitment. First read capabilities.demand.available and consentVersion. Explicit human permission is required, including for agents. Never infer consent from sign-up, tax answers or payment. Send a fresh UUID v4; keep exactly the same body and UUID after an uncertain response. At most 2048 bytes; no query parameters. No account, email, tax year, income, documents, referrer URL or identifiers accepted. Independent daily category totals, not joined profiles or unique-person counts. Receipt and fingerprint expire after 24 hours; aggregates after 12 months. Hosting/security logs are separate. Disabled deployments return 503 and do not save requests.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["countryCodes","needs","source","entrypoint","channel","requestId","consent"],"properties":{"countryCodes":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[A-Z]{2}$"},"description":"Assigned ISO 3166-1 alpha-2 codes, including countries not supported for estimates. No implied residency or support."},"needs":{"type":"array","minItems":1,"maxItems":3,"uniqueItems":true,"items":{"enum":["tax_estimate","filing_report","investment_income","self_employment","professional_review","assisted_filing","reminders","agent_access"]}},"source":{"enum":["unspecified","chatgpt","other_agent","search","recommendation","other"],"description":"Optional self-report represented as unspecified when declined. Never inferred from URLs, conversation contents, user agent or IP."},"entrypoint":{"enum":["estimate","coverage","signup","agent"]},"channel":{"enum":["human","agent"]},"requestId":{"type":"string","format":"uuid","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"},"consent":{"const":"product-demand.v1"}}}}}},"responses":{"200":{"description":"recorded true, duplicate flag, matching receipt UUID, consentVersion, retention {receiptHours:24, aggregateMonths:12}, contactCollected false. A retry is not another request."},"400":{"description":"Invalid input or consent; values not echoed"},"403":{"description":"Cross-origin browser request"},"405":{"description":"POST required"},"409":{"description":"Same receipt with different choices"},"413":{"description":"Body too large"},"429":{"description":"Daily capacity reached; no count added"},"503":{"description":"Disabled or outcome not confirmed. Retry the identical request, never claim success."}}}},"/estimates":{"post":{"operationId":"estimateTaxPosition","security":[],"description":"Free preliminary employment-only estimate. No private database access, input persistence, direct filing or automatic treaty credits. Reads only public source-check metadata; unavailable checks are unverified, not healthy. Supply jurisdiction-assigned income in local currency. Employer location is not work location. Zero entered employment pay returns no estimate; a genuine salary-only zero includes zeroEstimateReason. filingObligation is not_determined, never inferred from the amount. Investment amounts are returned as requiring review, not silently included. Unknown fields are rejected. Maximum JSON body 16 KiB.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateInput"},"example":{"taxYear":2026,"countries":["Taiwan"],"facts":{"taiwanDays":300,"taiwanAlien":true,"taiwanSingleUnder70":true,"taiwanEarlyDeparture":false},"income":[{"jurisdiction":"Taiwan","category":"employment","currency":"TWD","gross":1000000,"withheld":0,"foreignEmployer":false}]}}}},"responses":{"200":{"description":"Per-country currency, tax range, balance after withholding, calculation, issues, rule version, citations, sourceChecks, zeroEstimateReason, filingObligation and preliminary confidence","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.estimate.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"ruleVersion":{"type":"string"},"ruleReviewStatus":{"type":"string"},"productionApproved":{"const":false},"directFiling":{"const":false},"resultScope":{"const":"employment_only_not_total_tax_liability"},"totalPayable":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_determined"},"amount":{"type":"null"},"currency":{"type":"null"},"reason":{"const":"employment_only_relief_not_assessed"}},"required":["status","amount","currency","reason"],"description":"Final combined tax bill. The amount stays null because this service estimates employment tax only. A separate employment-tax projection may be available."},"doubleTaxRelief":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_assessed"},"creditAmount":{"type":"null"},"automaticCreditApplied":{"const":false}},"required":["status","creditAmount","automaticCreditApplied"],"description":"Confirmed credit applied to the country amounts. Eligibility has not been assessed and the credit amount stays null. For a supported scenario, see reliefProjection for an illustration."},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"currency":{"anyOf":[{"enum":["SGD","TWD","USD","CAD"]},{"type":"null"}]},"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"assessmentYear":{"type":"integer","minimum":2000,"maximum":2101},"status":{"enum":["needs_review","preliminary_estimate"]},"confidence":{"const":"preliminary"},"filingObligation":{"const":"not_determined"},"zeroEstimateReason":{"anyOf":[{"enum":["singapore_wholly_overseas_salary_excluded","foreign_employer_salary_excluded","employment_below_taxable_threshold"]},{"type":"null"}]},"estimatedTax":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},{"type":"null"}]},"estimatedBalance":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},{"type":"null"}]},"calculation":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"employmentGross":{"type":"number","minimum":0},"deductions":{"type":"number","minimum":0},"taxableEmployment":{"type":"number","minimum":0},"withholdingApplied":{"type":"number","minimum":0},"excludedInvestmentGross":{"type":"number","minimum":0},"excludedEmploymentGross":{"type":"number","minimum":0}},"required":["employmentGross","deductions","taxableEmployment","withholdingApplied","excludedInvestmentGross"]},{"type":"null"}]},"filing":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"filingYear":{"type":"integer","minimum":2000,"maximum":2101},"deadline":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"supportingDocumentsDueBefore":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"deadlineStatus":{"enum":["departure_or_withholding_review","official_window_checked","not_yet_confirmed"]},"usualFilingMonth":{"anyOf":[{"const":"May"},{"type":"null"}]},"portalUrl":{"type":"string","format":"uri"},"portalName":{"type":"string"},"submission":{"const":"user_submits_no_direct_filing"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["incomeYear","filingYear","deadline","supportingDocumentsDueBefore","deadlineStatus","usualFilingMonth","portalUrl","portalName","submission","citation","sourceCheck"],"description":"A filing estimate does not establish a return obligation. departure_or_withholding_review leaves the Taiwan annual date unset. Confirm the route, timing and withholding with the tax office before giving submission steps."},{"type":"null"}]},"issues":{"type":"array","items":{"type":"string"}},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"residency":{"enum":["resident","non_resident","unknown"]},"incomeBasis":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"originalCurrency":{"enum":["SGD","TWD","USD","CAD"]},"originalGross":{"type":"number","minimum":0},"allocatedOriginalGross":{"type":"number","minimum":0},"localGross":{"type":"number","minimum":0},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"ratePolicy":{"type":"string"},"sourceIndex":{"type":"integer","minimum":0},"allocationBasis":{"enum":["one_work_country","confirmed_work_days","travel_day_projection","investment_source","singapore_incidental_duties","singapore_wholly_overseas"]},"incomeCategory":{"enum":["interest","dividend","other_investment"]},"sourceRelation":{"enum":["domestic","foreign"]}},"required":["country","originalCurrency","originalGross","allocatedOriginalGross","localGross","rate","rateDate","sourceIndex","allocationBasis"]}},"sourceChecks":{"type":"object","additionalProperties":false,"properties":{"calculation":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]},"filing":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["calculation","filing"]}},"required":["country","currency","incomeYear","assessmentYear","status","confidence","filingObligation","zeroEstimateReason","estimatedTax","estimatedBalance","calculation","filing","issues","citations","sourceChecks"],"allOf":[{"if":{"properties":{"status":{"const":"needs_review"}}},"then":{"properties":{"estimatedTax":{"type":"null"},"estimatedBalance":{"type":"null"},"calculation":{"type":"null"}}},"else":{"properties":{"estimatedTax":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},"estimatedBalance":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},"calculation":{"type":"object"},"currency":{"enum":["SGD","TWD","USD","CAD"]}}}}]},"minItems":1,"maxItems":8},"treaty":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"version":{"enum":["new_agreement","earlier_agreement"]},"automaticCreditApplied":{"const":false},"paymentOrder":{"const":"no_automatic_country_first_rule"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["version","automaticCreditApplied","paymentOrder","citation","sourceCheck"]},{"type":"null"}]},"privacy":{"type":"object","additionalProperties":false,"properties":{"persisted":{"const":false},"rawDocumentsAccepted":{"const":false},"identifiersAccepted":{"const":false}},"required":["persisted","rawDocumentsAccepted","identifiersAccepted"]}},"required":["schema","taxYear","ruleVersion","ruleReviewStatus","productionApproved","directFiling","resultScope","totalPayable","doubleTaxRelief","results","treaty","privacy"]}}}},"400":{"description":"Invalid or unexpected input; no sensitive value echoed"},"403":{"description":"Cross-origin browser request rejected"},"413":{"description":"Body exceeds 16 KiB"}},"summary":"Estimate already allocated income","tags":["Estimates"]}},"/source-estimates":{"post":{"operationId":"estimateSourceIncome","security":[],"description":"Free stateless employment preview from original income entered once. Actual work country or explicitly supplied work days allocate pay; residency days never assign all salary to the majority country. Optional full-year travel is a calendar-day projection requiring review, not verified working days. Automatically fetches generic public reference FX without sending income to the provider. Missing facts or rates return no affected-country estimate. Singapore overseas employment exceptions require review. No automatic foreign tax credits, filing or persistence. No identifiers, payer names, files or caller URLs accepted. Maximum JSON body 16 KiB.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceEstimateInput"},"examples":{"taiwanSalary":{"summary":"Synthetic Taiwan salary estimate using confirmed tax-counted days","value":{"taxYear":2026,"countries":["Taiwan"],"facts":{"taiwanDays":250,"taiwanAlien":true,"taiwanSingleUnder70":true,"taiwanEarlyDeparture":false},"income":[{"category":"Salary","currency":"TWD","gross":1000000,"workCountry":"Taiwan","employerCountry":"Other"}]}}},"example":{"taxYear":2026,"countries":["Taiwan"],"facts":{"taiwanDays":300,"taiwanAlien":true,"taiwanSingleUnder70":true,"taiwanEarlyDeparture":false},"income":[{"category":"Salary","currency":"TWD","gross":1000000,"workCountry":"Taiwan","employerCountry":"Taiwan","withheld":0}]}}}},"responses":{"200":{"description":"schema tax-assistant.source-estimate.v1; country estimates, original/allocated/converted income basis, dated preview conversion, questions, citations and privacy boundary. No final filing authority.","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.source-estimate.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"ruleVersion":{"type":"string"},"ruleReviewStatus":{"type":"string"},"productionApproved":{"const":false},"directFiling":{"const":false},"resultScope":{"const":"employment_only_not_total_tax_liability"},"totalPayable":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_determined"},"amount":{"type":"null"},"currency":{"type":"null"},"reason":{"const":"employment_only_relief_not_assessed"}},"required":["status","amount","currency","reason"],"description":"Final combined tax bill. The amount stays null because this service estimates employment tax only. A separate employment-tax projection may be available."},"doubleTaxRelief":{"type":"object","additionalProperties":false,"properties":{"status":{"const":"not_assessed"},"creditAmount":{"type":"null"},"automaticCreditApplied":{"const":false}},"required":["status","creditAmount","automaticCreditApplied"],"description":"Confirmed credit applied to the country amounts. Eligibility has not been assessed and the credit amount stays null. For a supported scenario, see reliefProjection for an illustration."},"results":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"currency":{"anyOf":[{"enum":["SGD","TWD","USD","CAD"]},{"type":"null"}]},"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"assessmentYear":{"type":"integer","minimum":2000,"maximum":2101},"status":{"enum":["needs_review","preliminary_estimate"]},"confidence":{"const":"preliminary"},"filingObligation":{"const":"not_determined"},"zeroEstimateReason":{"anyOf":[{"enum":["singapore_wholly_overseas_salary_excluded","foreign_employer_salary_excluded","employment_below_taxable_threshold"]},{"type":"null"}]},"estimatedTax":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},{"type":"null"}]},"estimatedBalance":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},{"type":"null"}]},"calculation":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"employmentGross":{"type":"number","minimum":0},"deductions":{"type":"number","minimum":0},"taxableEmployment":{"type":"number","minimum":0},"withholdingApplied":{"type":"number","minimum":0},"excludedInvestmentGross":{"type":"number","minimum":0},"excludedEmploymentGross":{"type":"number","minimum":0}},"required":["employmentGross","deductions","taxableEmployment","withholdingApplied","excludedInvestmentGross"]},{"type":"null"}]},"filing":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"incomeYear":{"type":"integer","minimum":2000,"maximum":2101},"filingYear":{"type":"integer","minimum":2000,"maximum":2101},"deadline":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"supportingDocumentsDueBefore":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"deadlineStatus":{"enum":["departure_or_withholding_review","official_window_checked","not_yet_confirmed"]},"usualFilingMonth":{"anyOf":[{"const":"May"},{"type":"null"}]},"portalUrl":{"type":"string","format":"uri"},"portalName":{"type":"string"},"submission":{"const":"user_submits_no_direct_filing"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["incomeYear","filingYear","deadline","supportingDocumentsDueBefore","deadlineStatus","usualFilingMonth","portalUrl","portalName","submission","citation","sourceCheck"],"description":"A filing estimate does not establish a return obligation. departure_or_withholding_review leaves the Taiwan annual date unset. Confirm the route, timing and withholding with the tax office before giving submission steps."},{"type":"null"}]},"issues":{"type":"array","items":{"type":"string"}},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"residency":{"enum":["resident","non_resident","unknown"]},"incomeBasis":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"type":"string"},"originalCurrency":{"enum":["SGD","TWD","USD","CAD"]},"originalGross":{"type":"number","minimum":0},"allocatedOriginalGross":{"type":"number","minimum":0},"localGross":{"type":"number","minimum":0},"rate":{"type":"number","exclusiveMinimum":0},"rateDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"ratePolicy":{"type":"string"},"sourceIndex":{"type":"integer","minimum":0},"allocationBasis":{"enum":["one_work_country","confirmed_work_days","travel_day_projection","investment_source","singapore_incidental_duties","singapore_wholly_overseas"]},"incomeCategory":{"enum":["interest","dividend","other_investment"]},"sourceRelation":{"enum":["domestic","foreign"]}},"required":["country","originalCurrency","originalGross","allocatedOriginalGross","localGross","rate","rateDate","sourceIndex","allocationBasis"]}},"sourceChecks":{"type":"object","additionalProperties":false,"properties":{"calculation":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]},"filing":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["calculation","filing"]}},"required":["country","currency","incomeYear","assessmentYear","status","confidence","filingObligation","zeroEstimateReason","estimatedTax","estimatedBalance","calculation","filing","issues","citations","sourceChecks"],"allOf":[{"if":{"properties":{"status":{"const":"needs_review"}}},"then":{"properties":{"estimatedTax":{"type":"null"},"estimatedBalance":{"type":"null"},"calculation":{"type":"null"}}},"else":{"properties":{"estimatedTax":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},"estimatedBalance":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number"},"upper":{"type":"number"}},"required":["lower","upper"]},"calculation":{"type":"object"},"currency":{"enum":["SGD","TWD","USD","CAD"]}}}}]},"minItems":1,"maxItems":8},"treaty":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"version":{"enum":["new_agreement","earlier_agreement"]},"automaticCreditApplied":{"const":false},"paymentOrder":{"const":"no_automatic_country_first_rule"},"citation":{"type":"string","format":"uri"},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["version","automaticCreditApplied","paymentOrder","citation","sourceCheck"]},{"type":"null"}]},"privacy":{"type":"object","additionalProperties":false,"properties":{"persisted":{"const":false},"originalAmountsSentToRateProvider":{"const":false},"rawDocumentsAccepted":{"const":false},"identifiersAccepted":{"const":false}},"required":["persisted","originalAmountsSentToRateProvider","rawDocumentsAccepted","identifiersAccepted"]},"presence":{"type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.residency-days.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"days":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":366}},"basis":{"type":"object","additionalProperties":false,"properties":{"Taiwan":{"const":"arrival_excluded_departure_included"},"Singapore":{"const":"inclusive_physical_presence_not_a_complete_residency_test"},"duplicates":{"const":"counted_once_per_country"}},"required":["Taiwan","Singapore","duplicates"]},"ruleVersion":{"type":"string"},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"confidence":{"const":"user_dates_require_confirmation"}},"required":["schema","taxYear","days","basis","ruleVersion","citations","confidence"]},"questions":{"type":"array","items":{"type":"string"}},"reliefProjection":{"type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.relief-projection.v1"},"status":{"enum":["not_available","projected"]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"method":{"anyOf":[{"enum":["no_overlapping_employment_tax","taiwan_resident_employment_exemption","singapore_foreign_tax_credit_projection"]},{"type":"null"}]},"countryAmounts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"country":{"enum":["Singapore","Taiwan"]},"currency":{"enum":["SGD","TWD"]},"beforeRelief":{"type":"number","minimum":0},"projectedRelief":{"type":"number","minimum":0,"description":"Illustrative employment-tax relief based on the supplied facts. Eligibility and any tax paid still need confirmation."},"afterRelief":{"type":"number","minimum":0,"description":"Projected employment tax after potential relief, before local withholding."},"remainingToPay":{"type":"number","minimum":0,"description":"Illustrative employment-tax balance after potential relief and local withholding. Show it as a planning estimate. Final tax due is undetermined."},"possibleOverpayment":{"type":"number","minimum":0,"description":"Possible overpayment from local withholding. Show this separately from the remaining balance in the other jurisdiction. Confirm any refund with the tax authority."},"localWithholding":{"type":"number","minimum":0}},"required":["country","currency","beforeRelief","projectedRelief","afterRelief","remainingToPay","possibleOverpayment","localWithholding"]}},"combined":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"TWD"},"beforeRelief":{"type":"number","minimum":0},"projectedRelief":{"type":"number","minimum":0,"description":"Illustrative employment-tax relief based on the supplied facts. Eligibility and any tax paid still need confirmation."},"afterRelief":{"type":"number","minimum":0,"description":"Projected employment tax after potential relief, before local withholding."},"remainingToPay":{"type":"number","minimum":0,"description":"Illustrative employment-tax balance after potential relief and local withholding. Show it as a planning estimate. Final tax due is undetermined."},"possibleOverpayment":{"type":"number","minimum":0,"description":"Possible overpayment from local withholding. Show this separately from the remaining balance in the other jurisdiction. Confirm any refund with the tax authority."}},"required":["currency","beforeRelief","projectedRelief","afterRelief","remainingToPay","possibleOverpayment"]},{"type":"null"}]},"fx":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"twdPerSgd":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string","format":"date"},"policy":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"filingReady":{"const":false}},"required":["twdPerSgd","rateDate","policy","expiresAt","filingReady"]},{"type":"null"}]},"beforeReliefEstimate":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"TWD"},"estimatedTax":{"type":"object","additionalProperties":false,"properties":{"lower":{"type":"number","minimum":0},"upper":{"type":"number","minimum":0}},"required":["lower","upper"]},"fx":{"type":"object","additionalProperties":false,"properties":{"twdPerSgd":{"type":"number","exclusiveMinimum":0},"rateDate":{"type":"string","format":"date"},"policy":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"filingReady":{"const":false}},"required":["twdPerSgd","rateDate","policy","expiresAt","filingReady"]}},"required":["currency","estimatedTax","fx"],"description":"Employment tax subtotal before treaty relief and withholding, using the dated reference exchange rate. Available when both supported country estimates and current FX are present. The subtotal and any overlapping tax are illustrative."},"residence":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"status":{"enum":["preliminary","needs_facts","authority_review"]},"country":{"anyOf":[{"enum":["Singapore","Taiwan"]},{"type":"null"}]},"basis":{"anyOf":[{"type":"string"},{"type":"null"}]},"question":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","country","basis","question"]},{"type":"null"}]},"filingReady":{"const":false},"eligibility":{"const":"user_facts_not_independently_verified"},"taxPaymentEvidence":{"enum":["not_assessed","projected_foreign_tax_not_payment_evidence"]},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"treatyVersion":{"enum":["new_agreement","earlier_agreement"]},"sourceCheck":{"type":"object","additionalProperties":false,"properties":{"state":{"enum":["unchanged","review_required","not_verified","not_applicable"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["unchanged","review_required","not_verified"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["url","state","checkedAt"]}},"professionalApproval":{"const":false}},"required":["state","sources","professionalApproval"]}},"required":["schema","status","reason","method","countryAmounts","combined","fx","residence","filingReady","eligibility","taxPaymentEvidence","citations","treatyVersion","sourceCheck"],"allOf":[{"if":{"properties":{"status":{"const":"not_available"}}},"then":{"properties":{"combined":{"type":"null"},"countryAmounts":{"maxItems":0},"method":{"type":"null"},"fx":{"type":"null"},"reason":{"type":"string"}}},"else":{"properties":{"combined":{"type":"object"},"countryAmounts":{"minItems":2,"maxItems":2},"method":{"type":"string"},"fx":{"type":"object"},"reason":{"type":"null"}}}}],"description":"Employment-tax projection using supplied facts and dated reference FX. If status is projected, show the illustrative balance and the source check. If not available, show the reason and beforeReliefEstimate when present."},"exchangeRateStatus":{"enum":["not_needed","unavailable","reference_only"]},"exchangeRateFailure":{"type":"object","additionalProperties":false,"properties":{"reason":{"enum":["unavailable","upstream_http","unexpected_format","unexpected_content_type","rate_date_links_invalid","currency_rows_invalid","spot_buying_cells_invalid","invalid_rates","invalid_rate_date","stale_rate_date","future_rate_date","body_too_large","timeout","network_failure"]},"upstreamStatus":{"type":"integer","minimum":100,"maximum":599},"pageShape":{"type":"object","additionalProperties":false,"properties":{"anchorCount":{"type":"integer","minimum":0,"maximum":1000},"tableCount":{"type":"integer","minimum":0,"maximum":1000},"currencyLabelCount":{"type":"integer","minimum":0,"maximum":1000},"csvLinkCount":{"type":"integer","minimum":0,"maximum":1000},"datedCsvLinkCount":{"type":"integer","minimum":0,"maximum":1000}},"required":["anchorCount","tableCount","currencyLabelCount","csvLinkCount","datedCsvLinkCount"]}},"required":["reason"]}},"required":["schema","taxYear","ruleVersion","ruleReviewStatus","productionApproved","directFiling","resultScope","totalPayable","doubleTaxRelief","results","treaty","privacy","presence","questions","reliefProjection","exchangeRateStatus"]}}}},"400":{"description":"Unexpected fields, invalid values or conflicting Taiwan day totals"},"403":{"description":"Cross-origin browser request rejected"},"413":{"description":"Body exceeds 16 KiB"}},"summary":"Estimate from original-currency income","tags":["Estimates"]}},"/residency-days":{"post":{"operationId":"calculateResidencyDays","security":[],"description":"Free stateless day count, not a residency determination. Taiwan excludes arrival and includes departure. Overlapping days count once per country. Inputs are not stored. Maximum JSON body 16 KiB.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["taxYear","segments"],"properties":{"taxYear":{"type":"integer","minimum":2000,"maximum":2100},"segments":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":false,"required":["country","arrivalDate","departureDate"],"properties":{"country":{"type":"string","maxLength":48},"arrivalDate":{"type":"string","format":"date"},"departureDate":{"type":"string","format":"date"}}}}}},"example":{"taxYear":2026,"segments":[{"country":"Taiwan","arrivalDate":"2026-01-01","departureDate":"2026-01-11"}]}}}},"responses":{"200":{"description":"Days by country, calculation basis, confidence and citations","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.residency-days.v1"},"taxYear":{"type":"integer","minimum":2000,"maximum":2101},"days":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":366}},"basis":{"type":"object","additionalProperties":false,"properties":{"Taiwan":{"const":"arrival_excluded_departure_included"},"Singapore":{"const":"inclusive_physical_presence_not_a_complete_residency_test"},"duplicates":{"const":"counted_once_per_country"}},"required":["Taiwan","Singapore","duplicates"]},"ruleVersion":{"type":"string"},"citations":{"type":"array","items":{"type":"string","format":"uri"}},"confidence":{"const":"user_dates_require_confirmation"}},"required":["schema","taxYear","days","basis","ruleVersion","citations","confidence"]}}}},"400":{"description":"Invalid dates or fields"}},"summary":"Count presence days","tags":["Reference"]}},"/estimate-rules":{"get":{"operationId":"getEstimateRules","security":[],"responses":{"200":{"description":"Public versioned calculation parameters, supported income years, official sources and pending reviewer status","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.estimate-rules.v1"},"version":{"type":"string"},"verifiedAt":{"type":"string","format":"date"},"reviewStatus":{"type":"string"},"productionApproved":{"const":false},"incomeYears":{"type":"array","items":{"type":"integer","minimum":2000,"maximum":2101}},"sources":{"type":"object","additionalProperties":{"type":"string","format":"uri"}},"Singapore":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"SGD"},"assessmentYearOffset":{"type":"integer","minimum":0},"residentBands":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":[{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},{"type":"number","minimum":0,"maximum":1}],"additionalItems":false}},"nonresidentEmploymentRate":{"type":"number","minimum":0,"maximum":1},"shortTermEmploymentDays":{"type":"integer","minimum":0}},"required":["currency","assessmentYearOffset","residentBands","nonresidentEmploymentRate","shortTermEmploymentDays"]},"Taiwan":{"type":"object","additionalProperties":false,"properties":{"currency":{"const":"TWD"},"alienResidentDays":{"type":"integer","minimum":0},"foreignEmployerDays":{"type":"integer","minimum":0},"excludeArrivalDay":{"type":"boolean"},"nonresidentEmploymentRate":{"type":"number","minimum":0,"maximum":1},"lowMonthlySalaryRate":{"type":"number","minimum":0,"maximum":1},"years":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"residentBands":{"type":"array","items":{"type":"array","minItems":2,"maxItems":2,"items":[{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},{"type":"number","minimum":0,"maximum":1}],"additionalItems":false}},"personalExemption":{"type":"number","minimum":0},"singleStandardDeduction":{"type":"number","minimum":0},"salaryDeduction":{"type":"number","minimum":0}},"required":["residentBands","personalExemption","singleStandardDeduction","salaryDeduction"]}}},"required":["currency","alienResidentDays","foreignEmployerDays","excludeArrivalDay","nonresidentEmploymentRate","lowMonthlySalaryRate","years"]},"filingWindows":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"opensOn":{"type":"string","format":"date"},"deadline":{"type":"string","format":"date"},"supportingDocumentsDueBefore":{"type":"string","format":"date"},"source":{"type":"string"}},"required":["opensOn","deadline","source"]}}},"filingGuidanceSources":{"type":"object","additionalProperties":{"type":"string","format":"uri"}},"treaty":{"type":"object","additionalProperties":false,"properties":{"enteredIntoForce":{"type":"string","format":"date"},"newAgreementEffectiveFrom":{"type":"string","format":"date"},"ordinaryEmploymentShortStayDays":{"type":"integer","minimum":0},"automaticCreditsEnabled":{"const":false}},"required":["enteredIntoForce","newAgreementEffectiveFrom","ordinaryEmploymentShortStayDays","automaticCreditsEnabled"]}},"required":["schema","version","verifiedAt","reviewStatus","productionApproved","incomeYears","sources","Singapore","Taiwan","filingWindows","treaty"]}}}}},"summary":"Rules and official sources","tags":["Reference"]}},"/exchange-rates":{"get":{"operationId":"getExchangeRates","security":[],"description":"Public Bank of Taiwan latest completed business-day spot-buying reference quotes, SGD, TWD, USD and CAD when quoted. No parameters, identity, salary, caller URL or document is sent to the provider. One-hour public-data cache; dated preview rates are not receipt-date tax rates, annual averages or filing-ready conversions.","responses":{"200":{"description":"schema tax-assistant.exchange-rates.v1, source, policy, rateDate, fetchedAt, twdPerUnit and filingReady false","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tax-assistant.exchange-rates.v1"},"policy":{"type":"string"},"source":{"type":"string","format":"uri"},"rateDate":{"type":"string","format":"date"},"fetchedAt":{"type":"string","format":"date-time"},"twdPerUnit":{"type":"object","additionalProperties":false,"properties":{"TWD":{"const":1},"SGD":{"type":"number","exclusiveMinimum":0},"USD":{"type":"number","exclusiveMinimum":0},"CAD":{"type":"number","exclusiveMinimum":0}},"required":["TWD","SGD","USD"]},"filingReady":{"const":false},"basis":{"enum":["latest_completed_business_day_reference_not_receipt_date_tax_rate","daily_reference_cross_rate_not_receipt_date_tax_rate"]}},"required":["schema","policy","source","rateDate","fetchedAt","twdPerUnit","filingReady","basis"]}}}},"400":{"description":"Query parameters rejected"},"403":{"description":"Cross-origin browser request rejected"},"503":{"description":"Rates unavailable or invalid; no fabricated fallback"}},"summary":"Reference exchange rates","tags":["Reference"]}},"/tax-reference/countries":{"get":{"operationId":"listTaxReferences","description":"Free directory of official-source guides and estimate availability. Match the requested income window in availablePeriods.","responses":{"200":{"description":"Country guide catalog","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.tax-reference-catalog.v1"},"revision":{"type":"string"},"countries":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$"},"name":{"type":"string"},"recommendedPeriod":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]},"availablePeriods":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]}},"guidePath":{"type":"string"},"estimateGuide":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverage":{"enum":["estimate_available","guide_available"]},"topics":{"type":"array","items":{"enum":["residency","salary","filing","deductions","relief"]}}},"required":["code","name","recommendedPeriod","availablePeriods","guidePath","estimateGuide","coverage","topics"]}}},"required":["schema","revision","countries"]}}}}},"summary":"List country tax guides","tags":["Reference"]}},"/tax-reference/guide":{"post":{"operationId":"getTaxReference","description":"Read a cited guide for the requested jurisdiction and period. Use an ID from availablePeriods. Singapore YA 2027 covers income earned in 2026. Send no personal information.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["code","periodId"],"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$","description":"Uppercase two-letter country code from the guide catalog, such as TW."},"periodId":{"type":"string","pattern":"^\\d{4}(?:-\\d{2})?$","description":"Copy availablePeriods[].id from the catalog as a string, such as 2026 or 2026-27."}}},"example":{"code":"PT","periodId":"2025"}}}},"responses":{"200":{"description":"Official-source guide for the selected period","content":{"application/json":{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"schema":{"const":"tassi.tax-reference-guide.v1"},"revision":{"type":"string"},"code":{"type":"string","pattern":"^[A-Z]{2}$"},"name":{"type":"string"},"recommendedPeriod":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]},"availablePeriods":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]}},"guidePath":{"type":"string"},"estimateGuide":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverage":{"enum":["estimate_available","guide_available"]},"topics":{"type":"array","items":{"enum":["residency","salary","filing","deductions","relief"]}},"period":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]},"language":{"const":"en"},"authority":{"type":"string"},"treatyScope":{"const":"jurisdiction_guidance_only"},"sections":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"topic":{"enum":["residency","salary","filing","deductions","relief"]},"summary":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"href":{"type":"string","format":"uri"},"authority":{"type":"string"}},"required":["href","authority"]},"supportingSources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"href":{"type":"string","format":"uri"},"authority":{"type":"string"},"label":{"type":"string"}},"required":["href","authority","label"]},"minItems":1},"sourceStatus":{"enum":["unchanged","not_verified","review_required"]},"checkedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"incompleteSourceChecks":{"const":true,"description":"At least one source needs review and another source check is unverified."},"filing":{"type":"object","additionalProperties":false,"properties":{"form":{"type":"string"},"appliesTo":{"type":"string"},"portal":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["label","href"]},"dates":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["opens","deadline","paper_deadline","online_deadline","advisor_deadline","payment_deadline","overseas_extension_deadline","foreign_tax_extension_deadline","e_filing_grace_through","penalty_waiver_through","direct_debit_deadline","supporting_documents_due_before"]},"on":{"type":"string","format":"date"},"appliesTo":{"type":"string"}},"required":["kind","on"]}},"deadlineWindows":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["ordinary","emergency_extension"]},"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"},"appliesTo":{"type":"string"}},"required":["kind","startsOn","endsOn","appliesTo"]},"minItems":1},"paymentTiming":{"type":"object","additionalProperties":false,"properties":{"kind":{"enum":["after_assessment","before_filing"]},"guidance":{"type":"string"}},"required":["kind","guidance"]},"sources":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"href":{"type":"string","format":"uri"},"authority":{"type":"string"},"label":{"type":"string"}},"required":["href","authority","label"]}}},"required":["form","appliesTo","portal","dates"]},"treaty":{"type":"object","additionalProperties":false,"properties":{"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"guidePath":{"type":"string"},"scope":{"const":"annual_employment_income"},"caseReviewed":{"const":false},"agreement":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"signedOn":{"type":"string","format":"date"},"incomeFrom":{"type":"string","format":"date"},"incomeThrough":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}]},"articles":{"type":"object","additionalProperties":false,"properties":{"residence":{"type":"integer","minimum":0},"employment":{"type":"integer","minimum":0},"relief":{"type":"integer","minimum":0}},"required":["residence","employment","relief"]},"shortStay":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["id","label","signedOn","incomeFrom","incomeThrough","articles","shortStay","citation"]},"renewal":{"type":"object","additionalProperties":false,"properties":{"enteredIntoForceOn":{"type":"string","format":"date"},"singaporeAssessmentFrom":{"type":"string","format":"date"},"taiwanTaxPeriodsFrom":{"type":"string","format":"date"},"withholdingFrom":{"type":"string","format":"date"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["enteredIntoForceOn","singaporeAssessmentFrom","taiwanTaxPeriodsFrom","withholdingFrom","citation"]}},"required":["jurisdictions","guidePath","scope","caseReviewed","agreement","renewal"]},"arrangement":{"type":"object","additionalProperties":false,"properties":{"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"minItems":2,"maxItems":2,"uniqueItems":true},"title":{"type":"string"},"guidePath":{"type":"string"},"scope":{"const":"annual_employment_income"},"caseReviewed":{"const":false},"enteredIntoForceOn":{"type":"string","format":"date"},"incomeFrom":{"type":"string","format":"date"},"articles":{"type":"object","additionalProperties":false,"properties":{"residence":{"type":"integer","minimum":0},"employment":{"type":"integer","minimum":0},"relief":{"type":"integer","minimum":0},"effectiveDates":{"type":"integer","minimum":0}},"required":["residence","employment","relief","effectiveDates"]},"shortStay":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]},"effectiveDateCitation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["jurisdictions","title","guidePath","scope","caseReviewed","enteredIntoForceOn","incomeFrom","articles","shortStay","citation","effectiveDateCitation"]},"dayTests":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"days":{"type":"integer","minimum":0},"comparison":{"enum":["at_least","more_than","fewer_than"]},"window":{"enum":["calendar_year","continuous_across_two_years","rolling_12_months","twelve_months_from_entry","rolling_365_days","uk_tax_year","australian_income_year","weighted_three_calendar_years","twelve_months_from_first_presence","twelve_months_overlapping_tax_year"]},"appliesTo":{"type":"string"}},"required":["days","comparison","window","appliesTo"]}},"additionalArrangements":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"jurisdictions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"minItems":2,"maxItems":2,"uniqueItems":true},"title":{"type":"string"},"guidePath":{"type":"string"},"scope":{"const":"annual_employment_income"},"caseReviewed":{"const":false},"enteredIntoForceOn":{"type":"string","format":"date"},"incomeFrom":{"type":"string","format":"date"},"articles":{"type":"object","additionalProperties":false,"properties":{"residence":{"type":"integer","minimum":0},"employment":{"type":"integer","minimum":0},"relief":{"type":"integer","minimum":0},"effectiveDates":{"type":"integer","minimum":0}},"required":["residence","employment","relief","effectiveDates"]},"shortStay":{"type":"string"},"citation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]},"effectiveDateCitation":{"type":"object","additionalProperties":false,"properties":{"authority":{"type":"string"},"href":{"type":"string","format":"uri"}},"required":["authority","href"]}},"required":["jurisdictions","title","guidePath","scope","caseReviewed","enteredIntoForceOn","incomeFrom","articles","shortStay","citation","effectiveDateCitation"]},"minItems":1},"deductionAmounts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"label":{"type":"string"},"amount":{"type":"number","exclusiveMinimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"kind":{"enum":["standard","maximum","schedule_minimum"]},"period":{"enum":["annual","monthly"]},"appliesTo":{"type":"string"},"ratePercent":{"type":"number","exclusiveMinimum":0,"maximum":100}},"required":["label","amount","currency","kind","period","appliesTo"]}}},"required":["topic","summary","citation","sourceStatus","checkedAt"]}}},"required":["schema","revision","code","name","recommendedPeriod","availablePeriods","guidePath","estimateGuide","coverage","topics","period","language","authority","treatyScope","sections"]}}}},"400":{"description":"Correct the reported input issues. Use an uppercase country code and copy availablePeriods[].id from the catalog as a JSON string. Send only code and periodId.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"error":{"const":"invalid_reference_request"},"catalog":{"const":"/api/v1/tax-reference/countries"},"issues":{"type":"array","items":{"enum":["object_required","unexpected_fields","invalid_country_code","invalid_period_id"]},"minItems":1,"uniqueItems":true}},"required":["error","catalog","issues"]},{"type":"object","additionalProperties":false,"properties":{"error":{"enum":["invalid_json","unexpected_fields"]}},"required":["error"]}]}}}},"422":{"description":"Returns the requested selection and the catalog path. If the country has other guides, availablePeriods lists them with their dates.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"error":{"const":"reference_jurisdiction_unavailable"},"requested":{"type":"object","additionalProperties":false,"required":["code","periodId"],"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$","description":"Uppercase two-letter country code from the guide catalog, such as TW."},"periodId":{"type":"string","pattern":"^\\d{4}(?:-\\d{2})?$","description":"Copy availablePeriods[].id from the catalog as a string, such as 2026 or 2026-27."}}},"catalog":{"const":"/api/v1/tax-reference/countries"}},"required":["error","requested","catalog"]},{"type":"object","additionalProperties":false,"properties":{"error":{"const":"reference_period_unavailable"},"requested":{"type":"object","additionalProperties":false,"required":["code","periodId"],"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$","description":"Uppercase two-letter country code from the guide catalog, such as TW."},"periodId":{"type":"string","pattern":"^\\d{4}(?:-\\d{2})?$","description":"Copy availablePeriods[].id from the catalog as a string, such as 2026 or 2026-27."}}},"catalog":{"const":"/api/v1/tax-reference/countries"},"availablePeriods":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"label":{"type":"string"},"guidePath":{"type":"string"},"incomeWindow":{"anyOf":[{"type":"object","additionalProperties":false,"properties":{"startsOn":{"type":"string","format":"date"},"endsOn":{"type":"string","format":"date"}},"required":["startsOn","endsOn"]},{"type":"null"}]}},"required":["id","label","guidePath","incomeWindow"]}}},"required":["error","requested","catalog","availablePeriods"]}]}}}}},"summary":"Read a country tax guide","tags":["Reference"]}},"/api/v1/reports":{"servers":[{"url":"/"}],"post":{"operationId":"createDirectTaxReport","tags":["Agent reports"],"summary":"Submit details, pay 1 USDC, get a report","security":[],"externalDocs":{"description":"Quote, payment and retrieval quick start","url":"https://www.tassi.ai/developers/guide/#agent-reports"},"description":"No account, OAuth, vault unlock or permission file. Employment-only Singapore/Taiwan guidance using existing supported income years. Original currencies accepted; automatic reference FX is not a filing-ready rate. Unsupported or missing inputs and unavailable source checks are rejected before payment. Never send identifiers, payer names or raw files. A report is not professional review or direct filing.","parameters":[{"in":"header","name":"Payment-Signature","required":false,"schema":{"type":"string","maxLength":8192},"description":"Base64 x402 v2 proof matching this route's exact returned challenge. EOA or deployed ERC-1271 wallet signatures up to 2048 bytes; no counterfactual wallet deployment. Wallet and facilitator compatibility are checked independently; only confirmed settlement delivers. Only sign after confirming the quote and spending authority. Submit the proof with the requestId and retrievalKey. If an x402 client replays the quote body, its taxDetails, language and consent must be identical."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["requestId","retrievalKey"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Generate a UUID v4 once. Keep it for every retry and retrieval.","examples":["a08adf95-bc0b-4984-9de9-b1aab4d8e203"]},"retrievalKey":{"type":"string","writeOnly":true,"pattern":"^[A-Za-z0-9+/]{43}=$","description":"Generate 32 cryptographically random bytes and encode as canonical base64. Not an account password. Keep private; losing it prevents retrieval.","examples":["S2rwRZCpGKQNxf7Y622xWa6skA9dhjRxV37ktlXx12s="]},"taxDetails":{"allOf":[{"$ref":"#/components/schemas/SourceEstimateInput"},{"type":"object","properties":{"countries":{"type":"array","maxItems":2,"items":{"enum":["Singapore","Taiwan"]}},"income":{"type":"array","minItems":1,"items":{"type":"object","required":["workCountry","employerCountry"],"properties":{"category":{"enum":["Salary","Bonus"]},"workCountry":{"enum":["Singapore","Taiwan","multiple"],"description":"For multiple, provide confirmed workDays. Travel presence cannot allocate paid-report income."}}}}}}],"examples":[{"taxYear":2026,"countries":["Taiwan"],"facts":{"taiwanDays":250,"taiwanAlien":true,"taiwanSingleUnder70":true,"taiwanEarlyDeparture":false},"income":[{"category":"Salary","currency":"TWD","gross":1000000,"workCountry":"Taiwan","employerCountry":"Taiwan"}]}]},"language":{"type":"string","enum":["en","zh-Hant"],"examples":["en"]},"consent":{"type":"string","enum":["tassi.direct-report.v1"],"description":"The caller declares the human authorized processing these minimized facts. Not payment, filing or saved-workspace authority.","examples":["tassi.direct-report.v1"]},"reconcileOnly":{"const":true}},"oneOf":[{"type":"object","additionalProperties":false,"required":["requestId","retrievalKey","taxDetails","language","consent"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Generate a UUID v4 once. Keep it for every retry and retrieval."},"retrievalKey":{"type":"string","writeOnly":true,"pattern":"^[A-Za-z0-9+/]{43}=$","description":"Generate 32 cryptographically random bytes and encode as canonical base64. Not an account password. Keep private; losing it prevents retrieval."},"taxDetails":{"allOf":[{"$ref":"#/components/schemas/SourceEstimateInput"},{"type":"object","properties":{"countries":{"type":"array","maxItems":2,"items":{"enum":["Singapore","Taiwan"]}},"income":{"type":"array","minItems":1,"items":{"type":"object","required":["workCountry","employerCountry"],"properties":{"category":{"enum":["Salary","Bonus"]},"workCountry":{"enum":["Singapore","Taiwan","multiple"],"description":"For multiple, provide confirmed workDays. Travel presence cannot allocate paid-report income."}}}}}}]},"language":{"type":"string","enum":["en","zh-Hant"]},"consent":{"type":"string","enum":["tassi.direct-report.v1"],"description":"The caller declares the human authorized processing these minimized facts. Not payment, filing or saved-workspace authority."}}},{"type":"object","additionalProperties":false,"description":"Unsigned access uses only requestId and retrievalKey. A status check never returns an x402 challenge.","required":["requestId","retrievalKey"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Generate a UUID v4 once. Keep it for every retry and retrieval."},"retrievalKey":{"type":"string","writeOnly":true,"pattern":"^[A-Za-z0-9+/]{43}=$","description":"Generate 32 cryptographically random bytes and encode as canonical base64. Not an account password. Keep private; losing it prevents retrieval."}}},{"type":"object","additionalProperties":false,"required":["requestId","retrievalKey","reconcileOnly"],"description":"Recovery only: requires the exact original Payment-Signature for an existing reservation. Can check payment after report expiry. Cannot reopen an expired report, create an order, reserve or send a payment. Never sign a replacement proof.","properties":{"requestId":{"type":"string","format":"uuid","description":"Generate a UUID v4 once. Keep it for every retry and retrieval."},"retrievalKey":{"type":"string","writeOnly":true,"pattern":"^[A-Za-z0-9+/]{43}=$","description":"Generate 32 cryptographically random bytes and encode as canonical base64. Not an account password. Keep private; losing it prevents retrieval."},"reconcileOnly":{"const":true}}}]},"example":{"requestId":"a08adf95-bc0b-4984-9de9-b1aab4d8e203","retrievalKey":"S2rwRZCpGKQNxf7Y622xWa6skA9dhjRxV37ktlXx12s=","language":"en","consent":"tassi.direct-report.v1","taxDetails":{"taxYear":2026,"countries":["Taiwan"],"facts":{"taiwanDays":250,"taiwanAlien":true,"taiwanSingleUnder70":true,"taiwanEarlyDeparture":false},"income":[{"category":"Salary","currency":"TWD","gross":1000000,"workCountry":"Taiwan","employerCountry":"Taiwan"}]}}}}},"responses":{"200":{"description":"Confirmed on-chain settlement and report. Payment-Response contains the verified transaction.","content":{"application/json":{"schema":{"type":"object","required":["schema","orderId","generatedAt","expiresAt","report","receipt"],"properties":{"schema":{"const":"tassi.direct-report-result.v1"},"orderId":{"type":"string","format":"uuid"},"generatedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"report":{"type":"object","required":["schema","taxYear","countries","reviewed","directFiling"],"properties":{"schema":{"const":"tax-assistant.filing-report.v1"},"taxYear":{"type":"integer"},"countries":{"type":"array","items":{"type":"object"},"description":"Country estimates, currency, assumptions, deadlines and filing steps."},"reviewed":{"const":false},"directFiling":{"const":false}}},"receipt":{"type":"object","required":["payment","transaction","price","settlement"],"properties":{"payment":{"const":"paid"},"transaction":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"price":{"type":"object"},"settlement":{"type":"object"}}}}}}}},"202":{"description":"A reserved attempt has no verified settlement yet, not proof that a transaction was broadcast. Wait for Retry-After, then POST the same requestId and retrievalKey without payment proof. Never create a replacement charge just because time passed.","headers":{"Retry-After":{"description":"Seconds to wait before unsigned retrieval of this order.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["status","paymentState","orderId","retrySameOrder","paymentRetryAllowed","nextAction"],"properties":{"status":{"const":"payment_pending"},"paymentState":{"const":"outcome_unknown"},"orderId":{"type":"string","format":"uuid"},"retrySameOrder":{"const":true},"paymentRetryAllowed":{"const":false},"nextAction":{"const":"retrieve_same_order_without_payment"},"reportAvailable":{"const":false,"description":"Present when report access has ended but payment is still unconfirmed."}}}}}},"400":{"description":"Malformed request, missing consent, invalid authorization or retrieval key. If authorizationIssue is present, this request rejected the proof before dispatching settlement. payment_authorization_rejected means the proof failed local checks on the signature, terms or validity window. Check the same order without a signature.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"orderId":{"type":"string","format":"uuid"},"authorizationIssue":{"enum":["payment_proof_format","payment_quote_mismatch","payment_identifier_mismatch","payment_authorization_rejected"]},"paymentRequired":{"const":false},"settlementAttempted":{"const":false},"paymentRetryAllowed":{"const":false},"retrySameOrder":{"const":true},"nextAction":{"const":"retrieve_same_order_without_payment"}}}}}},"402":{"description":"A quote request with taxDetails passed free validation. Payment-Required contains the x402 v2 challenge. Body includes orderId, quote expiry, report expiry and limitations. Save the requestId and retrievalKey before signing."},"403":{"description":"Do not send browser cookies or OAuth credentials. This is a direct agent route."},"404":{"description":"Report unavailable or incorrect retrieval key. Payment does not replace this key."},"409":{"description":"payment_not_recorded means unsigned retrieval found no recorded payment attempt. No Payment-Required header is returned. Keep the same order and use plain unsigned retrieval after an interrupted response. Other conflicts include a mismatched request ID, an expired quote, or a rejected original-proof recovery. payment_expired_without_settlement requires a recorded deadline and finalized non-use; review before a separately approved new order.","content":{"application/json":{"examples":{"paymentNotRecorded":{"value":{"error":"payment_not_recorded","orderId":"a08adf95-bc0b-4984-9de9-b1aab4d8e203","paymentState":"not_recorded","paymentRequired":false,"paymentRetryAllowed":false,"retrySameOrder":true,"nextAction":"retrieve_same_order_without_payment"}}}}}},"410":{"description":"Report expired or explicitly deleted. No report bytes or payment challenge are returned. For unsigned retrieval of an expired or deleted report with a confirmed payment, paymentState=paid, transaction is the Arc transaction hash, and nextAction=contact_support. After expiry, original-proof recovery can also return paymentState=paid and nextAction=contact_support. An unresolved payment after expiry still returns 202.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"const":"report_expired_or_deleted"},"orderId":{"type":"string","format":"uuid"},"paymentState":{"const":"paid"},"transaction":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"},"paymentRetryAllowed":{"const":false},"retrySameOrder":{"const":false},"nextAction":{"const":"contact_support"}}}}}},"422":{"description":"Unsupported coverage or facts, an employment case that needs review, or a wallet rejected before settlement. For details_required, questions contains field paths and prompts in the requested report language. For case_requires_review, review names the countries that need review before requesting a quote and the steps to take.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"paymentRequired":{"const":false},"retryable":{"const":false},"intakePath":{"const":"/estimate-intake.json"},"questions":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"object","required":["path","prompt"],"properties":{"path":{"type":"string"},"prompt":{"type":"string"}}}]}},"review":{"type":"object","required":["countries","actions"],"additionalProperties":false,"properties":{"countries":{"type":"array","minItems":1,"maxItems":2,"uniqueItems":true,"items":{"enum":["Singapore","Taiwan"]}},"actions":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","required":["code","kind","message"],"additionalProperties":false,"properties":{"code":{"enum":["income_missing","income_country_unselected","income_invalid","work_location_missing","work_days_missing","work_timeline_incomplete","work_timeline_conflict","withholding_country_missing","employer_location_unconfirmed","taiwan_days_missing","taiwan_alien_status_unconfirmed","singapore_employment_arrangement_missing","singapore_employment_arrangement_conflict","singapore_employment_partial_posting_requires_review","government_employment_requires_review","employment_case_requires_review","employment_type_outside_projection","work_country_outside_filing_scope","no_positive_employment_pay","employment_income_missing"]},"kind":{"enum":["confirm_details","professional_review","check_coverage"]},"message":{"type":"string"}}}}}}},"if":{"properties":{"error":{"const":"case_requires_review"}}},"then":{"required":["paymentRequired","retryable","intakePath","questions","review"]}}}}},"429":{"description":"Load or distributed creation budget reached; no payment requested."},"503":{"description":"Before a quote, source_checks_require_attention names the affected official sources and links to current technical status. It has paymentRequired=false. Exchange rates can also be unavailable. payment_verification_unavailable means a local or facilitator check could not complete. This request did not dispatch settlement. Check the same order without a signature.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"sourceStatusPath":{"const":"/api/v1/rule-monitor"},"orderId":{"type":"string","format":"uuid"},"paymentRequired":{"const":false},"settlementAttempted":{"const":false},"paymentRetryAllowed":{"const":false},"retrySameOrder":{"const":true},"nextAction":{"const":"retrieve_same_order_without_payment"},"blockingSources":{"type":"array","items":{"type":"object","required":["url","state","checkedAt"],"properties":{"url":{"type":"string","format":"uri"},"state":{"enum":["review_required","not_verified"]},"checkedAt":{"type":["string","null"],"format":"date-time"}}}}}}}}}},"x-payment":{"scheme":"exact","asset":"USDC","units":"1000000","decimals":6,"network":"eip155:5042","feesUnits":"0","amountMinor":100,"quoteCurrency":"USD","termsVersion":"x402-report.v1","refundPolicyVersion":"no-refund-v1"},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"1.00"},"protocols":[{"x402":{}}]},"x-report-access":{"viewer":"/reports/","fileSchema":{"$ref":"#/components/schemas/DirectReportAccessFile"},"browserRetention":"tab_memory_only","humanDeletion":{"confirmationRequired":true,"pendingPaymentControlAvailable":false,"deletes":"active_encrypted_report_only","refundsPayment":false},"optionalSavedAccess":{"page":"/account/?view=reports","availability":"browser_accounts_enabled","consentRequired":true,"storage":"client_encrypted_vault_file","originalFileBackupIncluded":true,"plainExportIncludesKey":false,"taxAgentContextIncludesKey":false,"reportExpiryUnchanged":true,"accountRequiredForPurchase":false}}},"delete":{"operationId":"deleteDirectTaxReport","tags":["Agent reports"],"summary":"Delete encrypted report bytes","security":[],"description":"Explicit deletion is irreversible through this API and does not refund or cancel a previously signed authorization. Payment/replay metadata remains; downloaded and backup copies are separate.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"description":"Unsigned access uses only requestId and retrievalKey. A status check never returns an x402 challenge.","required":["requestId","retrievalKey"],"properties":{"requestId":{"type":"string","format":"uuid","description":"Generate a UUID v4 once. Keep it for every retry and retrieval."},"retrievalKey":{"type":"string","writeOnly":true,"pattern":"^[A-Za-z0-9+/]{43}=$","description":"Generate 32 cryptographically random bytes and encode as canonical base64. Not an account password. Keep private; losing it prevents retrieval."}}}}}},"responses":{"200":{"description":"Encrypted report deleted; repeated deletion is safe.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["deleted","paymentMetadataRetained","downloadedCopiesDeleted","refundInitiated"],"properties":{"deleted":{"const":true},"paymentMetadataRetained":{"const":true},"downloadedCopiesDeleted":{"const":false},"refundInitiated":{"const":false}}}}}},"404":{"description":"Unknown report or incorrect retrieval key."}}}},"/feedback":{"post":{"operationId":"sendFeedback","summary":"Send a question or feedback to Tassi","tags":["Feedback"],"security":[],"description":"Send feedback to hello@tassi.ai. No payment required. Ask the human before sending. No attachments or automatic tax-context inclusion. Reuse the same requestId and identical body after an interrupted response; do not create a replacement message. No MCP feedback tool is exposed.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["requestId","channel","consent","email","language","message","topic"],"properties":{"requestId":{"type":"string","format":"uuid","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89aAbB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"},"channel":{"type":"string","enum":["human","agent"]},"consent":{"type":"string","enum":["feedback-email-v1"]},"email":{"type":"string","format":"email","maxLength":254},"language":{"type":"string","enum":["en","zh-Hant","zh-Hans"]},"message":{"type":"string","minLength":5,"maxLength":2000},"topic":{"type":"string","enum":["question","problem","country_request","agent_integration"]}}}}}},"responses":{"202":{"description":"accepted means the email provider accepted the message, not confirmed inbox delivery. pending means the outcome is uncertain; retry the same request only.","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["accepted","pending"]}}}}}},"400":{"description":"Invalid request or feedback fields."},"403":{"description":"Origin rejected."},"409":{"description":"Request ID already bound to different or expired content. Do not resend automatically."},"413":{"description":"Body exceeds 16384 bytes."},"415":{"description":"JSON required."},"429":{"description":"Feedback capacity reached. Retry later with the same request ID."},"503":{"description":"feedback_not_sent means the provider rejected this message. A later, explicitly authorized send uses a new request ID. feedback_unavailable leaves delivery uncertain; preserve the original request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"enum":["feedback_not_sent","feedback_unavailable"]}}}}}}}}},"/agent-feedback":{"post":{"operationId":"recordAgentFeedback","tags":["Feedback"],"summary":"Report a useful result, integration problem or missing capability","security":[],"description":"Free, optional structured product feedback. No email, account, wallet, raw response, free text or tax facts. The caller declares authorization for this feedback scope; no repeated human prompt is needed within that authorization. Fixed categories only. Reuse the requestId and identical body on retry. Self-reported counts are not verified failures or unique people and do not authorize code, tax-rule or payment changes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["requestId","consent","capability","signal"],"allOf":[{"if":{"required":["usedTassiBefore"],"properties":{"usedTassiBefore":{"const":true}}},"then":{"required":["countryCode"],"properties":{"capability":{"const":"documentation"}}}}],"properties":{"requestId":{"type":"string","format":"uuid","description":"Fresh random UUID v4 per feedback event; reuse on retry for seven days."},"consent":{"const":"agent-feedback.v1"},"capability":{"enum":["coverage","estimate","residency_days","report","documentation"]},"signal":{"enum":["helpful","unclear_steps","integration_error","source_unavailable","unsupported_country","unsupported_income","payment_problem"]},"countryCode":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"description":"Optional requested country, required for unsupported_country. Not a travel or residence history."},"usedTassiBefore":{"type":"boolean","description":"Optional self-report from a person who says they have used Tassi before. True requires documentation feedback and a countryCode."}}}}}},"responses":{"202":{"description":"Recorded or already recorded. No email sent per event; categories are aggregated for private triage."},"400":{"description":"Unknown fields or invalid category, consent or request ID."},"403":{"description":"Cookies, credentials or cross-site browser origin rejected."},"409":{"description":"Request ID already used for different categories."},"413":{"description":"Body exceeds 2048 bytes."},"415":{"description":"JSON required."},"429":{"description":"UTC-day collection budget reached; no payment required."},"503":{"description":"Collection unavailable; retry the same request ID, never send raw context."}}}}},"components":{"schemas":{"CoverageRequest":{"type":"object","additionalProperties":false,"required":["countryCodes","taxYear","capability"],"properties":{"countryCodes":{"type":"array","minItems":1,"maxItems":4,"uniqueItems":true,"items":{"type":"string","pattern":"^[A-Z]{2}$","description":"Assigned ISO 3166-1 alpha-2 code. Reserved or unknown codes are rejected."}},"taxYear":{"type":"integer","minimum":2000,"maximum":2100},"capability":{"type":"string","enum":["estimate_tax_position","prepare_tax_packet","direct_filing"]}}},"CoverageInterestRequest":{"type":"object","additionalProperties":false,"required":["countryCodes","taxYear","capability","requestId","channel","consent"],"properties":{"countryCodes":{"$ref":"#/components/schemas/CoverageRequest/properties/countryCodes"},"taxYear":{"$ref":"#/components/schemas/CoverageRequest/properties/taxYear"},"capability":{"$ref":"#/components/schemas/CoverageRequest/properties/capability"},"requestId":{"type":"string","format":"uuid","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"},"channel":{"enum":["human","agent"]},"consent":{"const":"coverage-interest.v1"}}},"EstimateInput":{"type":"object","additionalProperties":false,"required":["taxYear","countries","facts","income"],"properties":{"taxYear":{"type":"integer","minimum":2000,"maximum":2100,"description":"Income year, not Singapore assessment year. Only 2025 and 2026 have checked estimate parameters; unreviewed years return no estimate."},"countries":{"type":"array","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","maxLength":48},"description":"Singapore and Taiwan currently supported; other countries return needs_review with no amount."},"facts":{"type":"object","additionalProperties":false,"properties":{"singaporeResidency":{"enum":["resident","non_resident","unknown",null],"default":"unknown","description":"Omit or use null when Singapore residency is unknown."},"taiwanDays":{"type":"integer","minimum":0,"maximum":366},"taiwanAlien":{"type":"boolean"},"taiwanSingleUnder70":{"type":"boolean"},"taiwanEarlyDeparture":{"type":"boolean"},"ordinaryEmploymentOnly":{"type":"boolean","description":"True for confirmed regular employment. Ask the treaty residence questions only after true. False means this pay needs a separate double-tax review. Omit if unknown. The answer does not establish treaty eligibility or professional approval."},"treatyPermanentHome":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Article 4 permanent-home fact for a dual domestic resident. Do not infer from citizenship or days. Unknown for changing or unclear arrangements."},"treatyCloserRelations":{"enum":["unknown","Singapore","Taiwan","undetermined"],"description":"Relevant only when permanent homes are available in both territories. Unknown is not the same as cannot be determined."},"treatyHabitualAbode":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Relevant only with no permanent home, or homes in both and undetermined closer relations. Never simply choose the larger day count; both/neither requires authority resolution."}}},"income":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["jurisdiction","category","currency","gross"],"properties":{"jurisdiction":{"enum":["Singapore","Taiwan"]},"category":{"enum":["employment","interest","dividend","other_investment"]},"currency":{"enum":["SGD","TWD"],"description":"Must match the jurisdiction. No implicit FX conversion."},"gross":{"type":"number","minimum":0,"maximum":1000000000},"withheld":{"type":["number","null"],"minimum":0,"maximum":1000000000,"description":"Omit or use null when no withholding amount was supplied."},"foreignEmployer":{"type":"boolean","description":"For each positive Taiwan employment amount when the stay is under 183 days, set true for an employer outside Taiwan or false for a Taiwan employer. If unknown, omit the field; the result flags employer_location_unconfirmed and leaves the Taiwan amount unset. Never infer this from payment currency."},"singaporeEmploymentScope":{"const":"wholly_overseas_non_government","description":"Singapore employment only: caller-confirmed overseas-based contract, all services wholly outside Singapore, not government employment. Excludes this row from Singapore salary tax, not other obligations. Prefer source-estimates for actual work and contract validation. Never infer this from employer, currency or presence."}}}}}},"SourceEstimateInput":{"type":"object","additionalProperties":false,"required":["taxYear","countries","facts","income"],"properties":{"taxYear":{"type":"integer","minimum":2000,"maximum":2100,"description":"Income year, not Singapore assessment year. Only 2025 and 2026 have checked estimate parameters; unreviewed years return no estimate."},"countries":{"type":"array","minItems":1,"maxItems":8,"uniqueItems":true,"items":{"type":"string","maxLength":48},"description":"Singapore and Taiwan currently supported; other countries return needs_review with no amount."},"facts":{"type":"object","additionalProperties":false,"properties":{"singaporeResidency":{"enum":["resident","non_resident","unknown",null],"default":"unknown","description":"Omit or use null when Singapore residency is unknown."},"taiwanDays":{"type":"integer","minimum":0,"maximum":366},"taiwanAlien":{"type":"boolean"},"taiwanSingleUnder70":{"type":"boolean"},"taiwanEarlyDeparture":{"type":"boolean"},"ordinaryEmploymentOnly":{"type":"boolean","description":"True for confirmed regular employment. Ask the treaty residence questions only after true. False means this pay needs a separate double-tax review. Omit if unknown. The answer does not establish treaty eligibility or professional approval."},"treatyPermanentHome":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Article 4 permanent-home fact for a dual domestic resident. Do not infer from citizenship or days. Unknown for changing or unclear arrangements."},"treatyCloserRelations":{"enum":["unknown","Singapore","Taiwan","undetermined"],"description":"Relevant only when permanent homes are available in both territories. Unknown is not the same as cannot be determined."},"treatyHabitualAbode":{"enum":["unknown","Singapore","Taiwan","both","neither"],"description":"Relevant only with no permanent home, or homes in both and undetermined closer relations. Never simply choose the larger day count; both/neither requires authority resolution."}}},"income":{"type":"array","maxItems":64,"items":{"type":"object","additionalProperties":false,"required":["category","currency","gross"],"properties":{"category":{"enum":["Salary","Bonus","Dividend","Interest","Other investment"]},"currency":{"enum":["SGD","TWD","USD","CAD"]},"gross":{"type":"number","minimum":0,"maximum":1000000000,"description":"Original annual amount. Never duplicate this across country tax buckets."},"singaporeEmploymentArrangement":{"enum":["unknown","incidental","wholly_overseas","part_year_overseas","government"],"description":"Salary/Bonus only. Ask per income when work includes time outside Singapore and Singapore is selected or the employer is Singapore-based. incidental means overseas duties part of a Singapore-based job: full pay enters the Singapore pre-credit estimate, possibly overlapping another country. wholly_overseas confirms a contract based wholly outside Singapore, no Singapore services and no government work. Conflicting Singapore work or travel-only projections block that exclusion. part_year_overseas identifies income spanning a change between Singapore-based and overseas-based employment: posting dates, contract changes and pay by period need review; no Singapore total or combined relief is calculated. Supported Taiwan work-pay estimates remain available. Do not relabel to bypass review. Unknown blocks the affected Singapore estimate, not Taiwan; government cases block selected country estimates for review. Never infer from currency, citizenship or days alone."},"workCountry":{"type":"string","maxLength":48,"description":"Employment: Singapore, Taiwan or a selected actual work country, multiple with workDays, travel for an unverified full-year calendar projection, or empty. Work location is separate from filing scope; it never adds an unselected country estimate. Legacy investments may use this as source country; explicit sourceCountry takes precedence."},"sourceCountry":{"type":"string","maxLength":48,"description":"Investments only: source country independently of filing countries, English letters/spaces or empty for follow-up. Another source country does not add a filing jurisdiction. Other means a source outside the focus countries. Amount is shown for review in each selected supported country, never allocated by travel or included in employment tax. No automatic exemption, basic-tax calculation or foreign credit."},"employerCountry":{"enum":["Singapore","Taiwan","Other",""]},"workDays":{"type":"object","maxProperties":8,"additionalProperties":{"type":"integer","minimum":0,"maximum":366},"description":"Employment only. Singapore, Taiwan or selected countries; total actual work days must fit the income year. A day split does not establish the Singapore employment arrangement."},"withheld":{"type":"number","minimum":0,"maximum":1000000000},"withholdingCountry":{"type":"string","maxLength":48,"description":"Country that received withholding, independently of filing countries. Required for positive withheld amounts. English letters/spaces or Other. Not automatically credited elsewhere or deducted from employment tax for investments."},"withholdingCurrency":{"enum":["SGD","TWD","USD","CAD"]}}}},"travel":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":false,"required":["country","arrivalDate","departureDate"],"properties":{"country":{"type":"string","maxLength":48},"arrivalDate":{"type":"string","format":"date"},"departureDate":{"type":"string","format":"date"}}},"description":"Caller-confirmed presence periods. Taiwan arrival excluded for residency. If supplied, Taiwan count must agree with facts. Travel projection uses separately disclosed inclusive calendar days and needs review."}}},"DirectReportAccessFile":{"type":"object","additionalProperties":false,"description":"Private portable access, not tax input or payment authority. Possession also permits the existing report-deletion API. Open locally at /reports/ or optionally save in an encrypted account vault. Never put the key in a URL or send the whole file as the API body.","required":["schema","requestId","retrievalKey"],"properties":{"schema":{"const":"tassi.report-access.v1"},"requestId":{"type":"string","format":"uuid"},"retrievalKey":{"type":"string","writeOnly":true,"pattern":"^[A-Za-z0-9+/]{43}=$"}}}}},"security":[]}