diff --git a/services/core-api/app/api/services/ams_api_service.py b/services/core-api/app/api/services/ams_api_service.py index f9d558ffa8..fb38e3f3af 100644 --- a/services/core-api/app/api/services/ams_api_service.py +++ b/services/core-api/app/api/services/ams_api_service.py @@ -161,7 +161,7 @@ def __set_agent_details(cls, agent): agent.get('address').get('city', ''), agent.get('address').get('sub_division_code', ''), agent.get('address').get('post_code'), - agent.get('address').get('suit_no', '')) if agent else '', + agent.get('address').get('suite_no', '')) if agent else '', 'em_businessphone': cls.__format_phone_number(agent.get('phone_no')) if agent else '', 'em_title': agent.get('job_title', '') if agent else '', } @@ -206,7 +206,8 @@ def __format_mailing_address(cls, payment_contact): address.get('suite_no', ''), address.get('address_line_1', ''), address.get('city', ''), - address.get('sub_division_code', '') + address.get('sub_division_code', ''), + address.get('post_code', '') ] return ', '.join(filter(bool, address_components)).strip(', ')