const request = require('request');

const options = {
  method: 'POST',
  url: 'https://api.betterez.com/accounts/customers',
  qs: {'x-api-key': 'x-api-key'},
  headers: {
    'content-type': 'application/json',
    Authorization: 'Basic {{base64-encoded-username-and-pwd}}'
  }
};

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

	console.log(body);
});