const fetch = require('node-fetch');
let url = '<REDACTED>';
let options = {
method: 'GET',
qs: {reference: '<REDACTED>'},
headers: {
'Content-Type': 'application/json'
}
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));