const request = require('request');
const options = {
method: 'POST',
url: 'https://api.betterez.com/notifications/customers/reset',
qs: {
providerId: ':provider-id',
lang: ':language-of-the-email',
cartPath: ':cart-path',
email: ':email-of-the-customer-wants-reset-password',
appName: ':appName-configured-in-backoffice'
},
headers: {'x-api-key': '{{x-api-key}}'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});