Get Payout Request Details
Endpoint
Example Request
Name
Type
Example
Description
const axios = require('axios');
const crypto = require('crypto');
// Define the parameters used in the query string
const params = {
requestId: '3248cf6b-9e50-48de-b73a-08c3a2425873',
payoutId: 'merchant-ref-test-xlsx-22'
};
// Convert parameters to query string
const queryString = new URLSearchParams(params).toString();
const url = `https://api.tylt.money/fiatPayout/h2h/payouts?${queryString}`;
// API credentials
const apiKey = 'your-api-key';
const apiSecret = 'your-secret-key';
// The payload for signature must match the actual params
const signaturePayload = JSON.stringify(params);
const signature = crypto.createHmac('sha256', apiSecret)
.update(signaturePayload)
.digest('hex');
// Configure the request
const config = {
method: 'get',
url: url,
headers: {
'Content-Type': 'application/json',
'X-TLP-APIKEY': apiKey,
'X-TLP-SIGNATURE': signature
}
};
// Make the request
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data, null, 2));
})
.catch((error) => {
console.error('Error:', error.response ? error.response.data : error.message);
});
Last updated