Example 1: Tax Residency Classification
Input:
{
"request_type": "tax_residency_determination",
"assessment_date": "2024-04-25",
"account_holder": {
"customer_id": "CUST-987654",
"account_id": "ACC-123456789",
"individual_details": {
"full_name": "Dr. Andreas Mueller",
"birth_date": "1975-09-08",
"birth_place": "Zurich, Switzerland",
"nationality": ["Swiss", "German"],
"current_address": {
"street": "Bahnhofstrasse 42",
"city": "Zurich",
"postal_code": "8001",
"country": "CH"
},
"mailing_address": {
"street": "Unter den Linden 15",
"city": "Berlin",
"postal_code": "10117",
"country": "DE"
}
}
},
"residency_indicators": {
"permanent_home": [
{"country": "CH", "days_present": 250, "property_owned": true},
{"country": "DE", "days_present": 90, "property_owned": true}
],
"centre_of_vital_interests": {
"family_location": "CH",
"economic_relations": "CH",
"professional_activity": "CH"
},
"habitual_abode": "CH",
"tin_issued": [
{"country": "CH", "tin": "CHE-123.456.789"},
{"country": "DE", "tin": "12345678901"}
]
},
"self_certification": {
"completed": true,
"declared_residencies": ["CH"],
"form_date": "2024-01-15"
}
}
Output:
{
"determination_id": "CRS-TAX-RES-2024-04-25-001",
"primary_tax_residency": {
"jurisdiction": "CH",
"jurisdiction_name": "Switzerland",
"confidence_level": "HIGH",
"effective_date": "2024-01-01"
},
"residency_analysis": {
"tie_breaker_application": {
"permanent_home_test": {
"result": "INCONCLUSIVE",
"details": "Permanent homes in both CH and DE"
},
"centre_of_vital_interests": {
"result": "SWITZERLAND",
"justification": "Family, economic relations, and professional activity centered in CH"
},
"habitual_abode_test": {
"result": "SWITZERLAND",
"days_present_ch": 250,
"days_present_de": 90
}
}
},
"additional_reportable_jurisdictions": [],
"crs_classification": {
"reportable_account": true,
"reportable_jurisdictions": ["CH"],
"account_type": "CUSTODIAL_ACCOUNT",
"reporting_fi_obligation": "REQUIRED"
},
"documentation_requirements": {
"self_certification_status": "VALID",
"supporting_documents": [
"Swiss tax residency certificate",
"Permanent residence permit"
],
"next_review_date": "2025-04-25"
},
"compliance_notes": {
"dual_nationality_handled": true,
"multiple_residence_assessed": true,
"documentation_adequate": true,
"special_circumstances": "None identified"
}
}
Example 2: CRS XML Report Generation
Input:
{
"request_type": "crs_xml_generation",
"reporting_period": "2024",
"reporting_fi": {
"fi_name": "Global Private Bank Ltd",
"fi_address": {
"street": "King Street 100",
"city": "London",
"postal_code": "EC2V 8AU",
"country": "GB"
},
"fi_tin": "GB123456789",
"fi_identifier": "GBPB.00001.SF.826"
},
"reportable_accounts": [
{
"account_number": "ACC-001-GB-2024",
"account_holder": {
"individual": {
"name": "Pierre Dubois",
"address": {
"country": "FR",
"city": "Paris",
"postal_code": "75001"
},
"tin": "FR123456789ABC",
"birth_date": "1982-03-15",
"birth_place": "Lyon, France"
}
},
"account_balance": 850000,
"currency": "EUR",
"income_payments": [
{"type": "interest", "amount": 15600},
{"type": "dividends", "amount": 28400}
],
"reportable_jurisdiction": "FR"
},
{
"account_number": "ACC-002-GB-2024",
"account_holder": {
"entity": {
"name": "Nordic Investment Holdings AS",
"address": {
"country": "NO",
"city": "Oslo",
"postal_code": "0154"
},
"tin": "NO987654321MVA",
"controlling_persons": [
{
"name": "Erik Olsen",
"tin": "NO123456789",
"controlling_person_type": "CP01",
"reportable_jurisdiction": "NO"
}
]
}
},
"account_balance": 1250000,
"currency": "NOK"
}
]
}
Output:
{
"report_generation_id": "CRS-XML-2024-001",
"xml_files_generated": [
{
"jurisdiction": "FR",
"filename": "GBPB.00001.SF.826_FR_2024_001.xml",
"file_size": "18KB",
"account_count": 1,
"total_balance": 850000,
"transmission_ready": true
},
{
"jurisdiction": "NO",
"filename": "GBPB.00001.SF.826_NO_2024_001.xml",
"file_size": "22KB",
"account_count": 1,
"total_balance": 1250000,
"transmission_ready": true
}
],
"reporting_summary": {
"total_reportable_accounts": 2,
"total_jurisdictions": 2,
"total_reportable_amount": 2100000,
"reporting_currency": "EUR_equivalent",
"conversion_rate_date": "2024-12-31"
},
"validation_results": {
"schema_validation": "PASSED",
"business_rule_validation": "PASSED",
"data_quality_score": 99.2,
"errors": [],
"warnings": [
{
"code": "W001",
"description": "Birth place not mandatory but recommended",
"affected_accounts": ["ACC-002-GB-2024"]
}
]
},
"transmission_schedule": {
"france": {
"competent_authority": "DGFiP",
"transmission_method": "OECD_CTS",
"deadline": "2025-09-30",
"status": "READY_FOR_TRANSMISSION"
},
"norway": {
"competent_authority": "Skatteetaten",
"transmission_method": "OECD_CTS",
"deadline": "2025-09-30",
"status": "READY_FOR_TRANSMISSION"
}
},
"metadata": {
"report_type": "CRS",
"message_type": "CRS401",
"version": "2.0",
"reporting_fi_giin": "GBPB.00001.SF.826",
"creation_timestamp": "2024-04-25T10:30:00Z"
},
"next_steps": [
"Submit XML files to OECD Common Transmission System",
"Retain records for statutory period (6 years)",
"Schedule quality assurance review",
"Prepare for potential competent authority queries"
]
}