const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 100})
};
fetch('https://api.finup.io/backend/card/{card_id}/deposit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));