const url = 'https://api.sureshake.com/v2/entities/<entityId>/vouches/revoke';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
voucherEntityId: '687a822d-209a-4607-9d86-54cce0292c95',
scope: 'general',
revokedReason: 'string'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));