Get Transaction Report
Last updated
GET /whitelabel/transactions/getReport?externalUserId=user-10021&startDate=2026-07-01&endDate=2026-07-31import crypto from 'crypto';
import axios from 'axios';
const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';
const queryParams = {
endUserId: 20001, // Optional: Provide one user identifier only
endUserEmail: "joe@example.com", // Optional: Alternative to endUserId and externalUserId
externalUserId: "user-10021", // Optional: Alternative to endUserId and endUserEmail
startDate: '2026-07-01',
endDate: '2026-07-20'
};
const rawPayload = JSON.stringify(queryParams);
const signature = crypto.createHmac('sha256', apiSecret).update(rawPayload).digest('hex');
const headers = {
'x-tlp-apikey': apiKey,
'x-tlp-signature': signature
};
const queryString = new URLSearchParams(queryParams).toString();
axios.get(`https://api.tylt.money/whitelabel/transactions/getReport?${queryString}`, { headers })
.then(response => console.log(response.data))
.catch(error => console.error('Error:', error.response ? error.response.data : error.message));{
"msg": "",
"data": [
{
"transactionId": 2144884,
"uniqueInternalID": "7beae3e1-7b7c-11f1-a6bf-42010a2801d1",
"merchantOrderID": "7beae3e1-7b7c-11f1-a6bf-42010a2801d1",
"transactionType": "Internal Payin",
"ledger": "CR",
"baseAmount": 5,
"baseAmountReceived": 5,
"conversionRate": 1,
"baseCurrency": "USDT",
"settledCurrency": "USDT",
"settledAmount": 5,
"commission": 0,
"network": "TPNK",
"walletAddress": "f95bf002-3a05-4f6f-9613-ac5255c07dd4",
"status": "Completed",
"createdAt": "2026-07-09T09:56:41Z",
"toFrom": "setucuhe@forexzig.com",
"comments": ""
}
]
}