Fixed endpoint url for request in marketing.js