const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.betterez.com/accounts/customers/%7B%7BcustomerId%7D%7D/password',
  headers: {'content-type': 'application/json', 'x-api-key': '{{x-api-key}}'},
  body: {
    password: '{{customer-password}}',
    passwordConfirmation: '{{customer-password}}'
  },
  json: true
};

request(options, function (error, response, body) {
	if (error) throw new Error(error);

	console.log(body);
});