{"openapi":"3.0.3","info":{"title":"AML Screening API","version":"1.0.0","description":"API for AML screening requests."},"paths":{"/aml/screening":{"post":{"summary":"Perform AML screening","operationId":"amlScreening","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmlScreeningRequest"}}}},"responses":{"200":{"description":"AML screening completed successfully"},"400":{"description":"Validation error"},"500":{"description":"Internal server error"}}}}},"components":{"schemas":{"AmlScreeningRequest":{"type":"object","required":["header","mainParty"],"properties":{"header":{"$ref":"#/components/schemas/Header"},"mainParty":{"$ref":"#/components/schemas/MainAmlParty"},"relatedParties":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/RelatedParties"}}}},"Header":{"type":"object","required":["requestKey","systemName"],"properties":{"requestKey":{"type":"string","format":"uuid","description":"Unique request identifier."},"systemName":{"type":"string","maxLength":15,"minLength":1,"description":"Name of the calling system."},"systemType":{"type":"string","maxLength":15,"description":"Type of the calling system."},"employeeId":{"type":"string","maxLength":40,"description":"Employee identifier."},"employeeName":{"type":"string","maxLength":100,"description":"Employee name."},"employeeEmail":{"type":"string","maxLength":100,"description":"Employee email address."},"departmentId":{"type":"string","maxLength":10,"description":"Department identifier."},"branchCode":{"type":"string","maxLength":10,"description":"Branch code."},"applicationId":{"type":"string","maxLength":30,"description":"Application identifier."},"applicationModule":{"type":"string","maxLength":30,"description":"Application module."}}},"MainAmlParty":{"type":"object","required":["name","partyType","partyRole"],"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"description":"Main party name."},"arabicName":{"type":"string","maxLength":64,"description":"Main party name in Arabic."},"birthdate":{"type":"string","format":"date","description":"Date of birth.","example":"1985-10-20"},"birthPlace":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 birth place country code.","example":"EG"},"gender":{"type":"string","maxLength":10,"description":"Gender."},"idType":{"type":"string","maxLength":50,"description":"Identification document type."},"idNumber":{"type":"string","maxLength":50,"description":"Identification document number."},"partyNumber":{"type":"string","maxLength":50,"description":"Party identifier."},"residenceCountry":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 residence country code.","example":"EG"},"nationality":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 nationality code.","example":"EG"},"partyType":{"type":"string","maxLength":50,"description":"Type of the main party. Used to distinguish the main party from related parties."},"partyRole":{"type":"string","maxLength":50,"minLength":1,"description":"Role of the main party."}}},"RelatedParties":{"type":"object","required":["name","partyType","partyRole"],"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"description":"Related party name."},"arabicName":{"type":"string","maxLength":64,"description":"Related party name in Arabic."},"birthdate":{"type":"string","format":"date","description":"Date of birth.","example":"1985-10-20"},"birthPlace":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code of birth place.","example":"EG"},"gender":{"type":"string","maxLength":10,"description":"Gender."},"idType":{"type":"string","maxLength":50,"description":"Identification document type."},"idNumber":{"type":"string","maxLength":50,"description":"Identification document number."},"partyNumber":{"type":"string","maxLength":50,"description":"Party identifier."},"residenceCountry":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 residence country code.","example":"EG"},"nationality":{"type":"string","maxLength":2,"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 nationality code.","example":"EG"},"partyType":{"type":"string","maxLength":50,"description":"Type of related party."},"partyRole":{"type":"string","maxLength":50,"minLength":1,"description":"Role of the related party."}}},"AMLRiskMetrics":{"type":"object","properties":{"policyAmount":{"type":"number","format":"double","minimum":0,"maximum":1000000000,"description":"Policy amount."},"claimAmount":{"type":"number","format":"double","minimum":0,"maximum":1000000000,"description":"Claim amount."},"transactionAmount":{"type":"number","format":"double","minimum":0,"maximum":1000000000,"description":"Transaction amount."},"isNonProfitOrganization":{"type":"boolean","description":"Indicates whether the organization is a non-profit organization."},"isHighRisk":{"type":"boolean","description":"Indicates whether the party is considered high risk."}}}}}}