const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.betterez.com/accounts/customer',
  headers: {'content-type': 'application/json', 'x-api-key': '{{x-api-key}}'},
  body: '{"customer": {"firstName": "{{customer-first-name}}","lastName": "{{customer-last-name}}","email": "{{customer-email}}","phone": "{{customer-phone-number}}","street": "{{customer-address}}","city": "{{customer-city}}","countryId": "{{customer-country-code}}","country": "{{customer-country-name}}","province": "{{customer-province}}","zip": "{{customer-postal-code}}", "optIn": false}'
};

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

	console.log(body);
});