const url = 'https://api.sureshake.com/v2/reports/<id>/views';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({deliveryReceiptId: 'd2780000-eb79-423b-b968-47432067b1cc'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));