Get Conversion Rates
Endpoint
Name
Type
Example
Description
const axios = require('axios');
const crypto = require('crypto');
const url = `https://api.tylt.money/h2h/in/upi/getMerchantRampSpecialRates`;
const apiKey = 'your-api-key';
const secretKey = 'your-secret-key';
// Create HMAC SHA-256 signature (no params for this request)
const signature = crypto
.createHmac('sha256', secretKey)
.update('{}') // No parameters to sign
.digest('hex');
const config = {
method: 'get',
url: url,
headers: {
'Content-Type': "application/json",
'X-TLP-APIKEY': apiKey,
'X-TLP-SIGNATURE': signature
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.error(error);
});
Last updated