Get Pay-In Transaction History
This endpoint allows you to retrieve the history of all Pay-In transactions associated with your merchant account. The results are paginated, allowing you to specify the number of rows and the page number.
Endpoint
GET
https://api.tylt.money/transactions/merchant/getPayinTransactionHistory?rows={numberRows}&page={pagenumber}
Endpoint Example
GET
https://api.tylt.money/transactions/merchant/getPayinTransactionHistory?rows=20&page=1
Request Headers
X-TLP-APIKEY
string
93ee3c5e133697251b5362bcf9cc8532476785t8768075616f58d88
Your Tylt API Key, used to identify your account in API requests.
X-TLP-SIGNATURE
string
d0afef3853dfc8489c8b9affa5825171fdd7y7685675e4966a05f66ed2b3eaf9462b3c9c0
HMAC SHA-256 signature generated using the API Secret Key to secure the request.
Code Snippet
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';
// Query Parameters
const params = {rows:20,page:1};
const queryParams = new URLSearchParams(params).toString();
// Create the HMAC SHA-256 signature
const signature = crypto
.createHmac('sha256', apiSecret)
.update( JSON.stringify(params) )
.digest('hex');
// Define headers
const headers = {
"X-TLP-APIKEY": apiKey,
"X-TLP-SIGNATURE": signature
};
// Send the GET request
axios.get(`https://api.tylt.money/transactions/merchant/getPayinTransactionHistory?${queryParams}`, { headers })
.then(response => {
console.log("Response:", response.data);
})
.catch(error => {
console.error('Error:', error.response ? error.response.data : error.message);
});
Response
{
"data": [
{
"orderId": "0c635376-769a-11ef-8277-02d8461243e9",
"merchantOrderId": "0c635376-769a-11ef-8277-02d8461243e9",
"baseAmount": 1,
"baseCurrency": "USDT",
"settledCurrency": "USDT",
"settledAmountRequested": 1,
"settledAmountReceived": 0,
"settledAmountCredited": 0,
"commission": 0,
"network": "TPNK",
"depositAddress": "2828a803-72a7-11ef-8277-02d8461243e9",
"status": "Completed",
"paymentURL": "",
"callBackURL": "",
"transactions": [
{
"amount": 1,
"createdAt": "2024-09-19 15:15:47.000000",
"updatedAt": "2024-09-19 15:15:47.000000",
"fromAddress": "2828a803-72a7-11ef-8277-02d8461243e9",
"transactionHash": "0c6fbc0c-769a-11ef-8277-02d8461243e9",
"confirmationStatus": 1
}
],
"createdAt": "2024-09-19T15:15:47Z",
"expiresAt": "2024-09-19T15:15:47Z",
"updatedAt": "2024-09-19T15:15:47Z",
"isFinal": 1,
"isCredited": 0,
"customerName": "",
"comments": ""
},
{
"orderId": "6e75e180-768d-11ef-8277-02d8461243e9",
"merchantOrderId": "",
"baseAmount": 1,
"baseCurrency": "USDT",
"settledCurrency": "USDT",
"settledAmountRequested": 1,
"settledAmountReceived": 2,
"settledAmountCredited": 1.99,
"commission": 0.01,
"network": "BSC",
"depositAddress": "0x0b4f3ad04c183573bb5d363cab3e5bf6603088a5",
"status": "Over Payment",
"paymentURL": "https://app.tylt.money/pscreen/6e75e180-768d-11ef-8277-02d8461243e9",
"callBackURL": "",
"transactions": [
{
"amount": 2,
"createdAt": "2024-09-19 13:45:55.000000",
"updatedAt": "2024-09-19 13:46:45.000000",
"fromAddress": "0xd2af4b117efe474b66fc79e6a8e1938d41a60f4c",
"transactionHash": "0x28d22fe7def4b65176ba97793d213b775d0386aa0e22a1c5a3cc8c2b376f83e7",
"confirmationStatus": 1
}
],
"createdAt": "2024-09-19T13:45:28Z",
"expiresAt": "2024-09-19T14:45:28Z",
"updatedAt": "2024-09-19T13:46:49Z",
"isFinal": 1,
"isCredited": 1,
"customerName": "",
"comments": ""
}
],
"errorCode": 0,
"msg": ""
}
Last updated