Get Supported Institutions
Name
Type
Example
Description
Parameter
Required
Description
Field
Description
Last updated
const axios = require('axios');
const crypto = require('crypto');
// Replace with your API Key and Secret
const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';
// Request params
const params = {
provider: 'Pisomind',
channel: 'pesonet'
};
// Create HMAC SHA-256 signature using the request params
const signature = crypto
.createHmac('sha256', apiSecret)
.update(JSON.stringify(params))
.digest('hex');
// Define headers
const headers = {
'x-api-key': apiKey,
'X-TLP-SIGNATURE': signature,
'Content-Type': 'application/json'
};
// Send the GET request
axios.get('https://api.tylt.money/v2/prime-fiat/php/institutions/v2/list', {
headers,
params
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error.response ? error.response.data : error.message);
});{
"msg": "Institutions retrieved",
"data": {
"institutions": [
{
"code": "CSPA001PH",
"name": "PayMaya",
"rail": "PHPCIS-1001"
},
{
"code": "CSMK001PH",
"name": "Maya Bank",
"rail": "PHPCIS-1001"
}
]
}
}{
"msg": "Invalid channel for Pisomind! Allowed values are instapay, pesonet.",
"data": {}
}