diff --git a/app/notify_client/invite_api_client.py b/app/notify_client/invite_api_client.py index a3b2589b7..5792ee2b7 100644 --- a/app/notify_client/invite_api_client.py +++ b/app/notify_client/invite_api_client.py @@ -34,7 +34,7 @@ class InviteApiClient(NotifyAdminAPIClient): return invited_users def check_token(self, token): - resp = self.get(url='/invite/{}'.format(token)) + resp = self.get(url='/invite/service/{}'.format(token)) return InvitedUser(**resp['data']) def cancel_invited_user(self, service_id, invited_user_id): diff --git a/app/notify_client/org_invite_api_client.py b/app/notify_client/org_invite_api_client.py index 71f3f955b..af7d7870d 100644 --- a/app/notify_client/org_invite_api_client.py +++ b/app/notify_client/org_invite_api_client.py @@ -30,7 +30,7 @@ class OrgInviteApiClient(NotifyAdminAPIClient): return invited_users def check_token(self, token): - resp = self.get(url='/organisation-invitation/{}'.format(token)) + resp = self.get(url='/invite/organisation/{}'.format(token)) return InvitedOrgUser(**resp['data']) def cancel_invited_user(self, org_id, invited_user_id):