diff --git a/src/v0/destinations/freshmarketer/utils.js b/src/v0/destinations/freshmarketer/utils.js index 5b47bb9170..f7dcc46b06 100644 --- a/src/v0/destinations/freshmarketer/utils.js +++ b/src/v0/destinations/freshmarketer/utils.js @@ -203,7 +203,7 @@ const updateAccountWOContact = (payload, Config) => { */ const updateContactWithList = (userId, listId, Config) => { const response = defaultRequestConfig(); - response.endpoint = `https://${Config.domain}.myfreshworks.com/crm/sales/api/lists/${listId}/add_contacts`; + response.endpoint = `https://${Config.domain}/crm/sales/api/lists/${listId}/add_contacts`; response.headers = getHeaders(Config.apiKey); response.body.JSON = { ids: [userId], diff --git a/test/__tests__/data/freshmarketer.json b/test/__tests__/data/freshmarketer.json index 390c0fb44e..b196dc628f 100644 --- a/test/__tests__/data/freshmarketer.json +++ b/test/__tests__/data/freshmarketer.json @@ -1892,7 +1892,7 @@ "destination": { "Config": { "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" + "domain": "domain-rudder.freshworks.com" } } }, @@ -1914,7 +1914,7 @@ "Authorization": "Token token=dummyApiKey" }, "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000059716/add_contacts" + "endpoint": "https://domain-rudder.freshworks.com/crm/sales/api/lists/70000059716/add_contacts" } }, { @@ -2043,7 +2043,7 @@ "destination": { "Config": { "apiKey": "dummyApiKey", - "domain": "domain-rudder.myfreshworks.com" + "domain": "domain-rudder.freshworks.com" } } }, @@ -2065,7 +2065,7 @@ "Authorization": "Token token=dummyApiKey" }, "version": "1", - "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000058627/add_contacts" + "endpoint": "https://domain-rudder.freshworks.com/crm/sales/api/lists/70000058627/add_contacts" } }, {