const url = 'https://sandboxapi.me-cash.com/v1/quote';
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: '{"paymentChannel":"BANK_TRANSFER","source":{"amount":150000,"country":"NG","currency":"NGN"},"target":{"country":"NG","currency":"NGN"}}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}