Get Pay-In Transaction Information
This endpoint allows you to retrieve detailed information about a specific Pay-In transaction. The orderId
is required, and it corresponds to the unique identifier generated by Tylt for the transaction.
Endpoint
GET
https://api.tylt.money/transactions/merchant/getPayinTransactionInformation?
orderId={orderId}
Example Request
GET
https://api.tylt.money/transactions/merchant/getPayinTransactionInformation?orderId=a49579dd-7711-11ef-8277-02d8461243e9
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.
When using the API, ensure to include your API Key and generate the signature for the request payload using your API Secret. The tables provided above contain example values for illustration purposes only. Please refer to the code snippets for detailed instructions on how to sign the request and generate the signature properly.
Code Snippet
const axios = require('axios');
const crypto = require('crypto');
const params = {
orderId: 'a49579dd-7711-11ef-8277-02d8461243e9'
};
const queryString = new URLSearchParams(params).toString();
const url = `https://api.tylt.money/transactions/merchant/getPayinTransactionInformation?${queryString}`;
const apiKey = 'your-api-key';
const secretKey = 'your-secret-key';
const signaturePayload = JSON.stringify(params);
const signature = crypto.createHmac('sha256', secretKey)
.update(signaturePayload)
.digest('hex');
const config = {
method: 'get',
url: url,
headers: {
'X-TLP-APIKEY': apiKey,
'X-TLP-SIGNATURE': signature
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.error(error);
});
import json
import hashlib
import hmac
import requests
# Replace with your API Key and Secret
api_key = 'your-api-key'
api_secret = 'your-secret-key'
# Function to create HMAC SHA-256 signature
def create_signature(secret, data):
return hmac.new(secret.encode(), data.encode(), hashlib.sha256).hexdigest()
# Function to send a GET request
def send_get_request(url, params):
raw = '&'.join([f"{key}={value}" for key, value in params.items()])
body_string = json.dumps(params, separators=(',', ':'), ensure_ascii=False)
signature = create_signature(api_secret, body_string)
headers = {
'X-TLP-APIKEY': api_key,
'X-TLP-SIGNATURE': signature
}
response = requests.get(f"{url}?{raw}", headers=headers)
return response.json()
# Function to send a POST request
def send_post_request(url, params):
body_string = json.dumps(params, separators=(',', ':'), ensure_ascii=False)
signature = create_signature(api_secret, body_string)
headers = {
'X-TLP-APIKEY': api_key,
'X-TLP-SIGNATURE': signature,
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, data=body_string)
return response.json()
# Request parameters for GET request
get_params = {
'orderId': 'a49579dd-7711-11ef-8277-02d8461243e9'
}
# Request parameters for POST request
post_params = {
'orderId': '38054005-fb53-11ef-bcfd-42010a280107'
}
# Send the GET request
get_response = send_get_request("https://api.tylt.money/transactions/merchant/getPayinTransactionInformation", get_params)
print(get_response)
# Send the POST request
post_response = send_post_request("https://api.tylt.money/transactions/merchant/getPayinTransactionInformation", post_params)
print(post_response)
const crypto = require('crypto');
const params = {
orderId: 'a49579dd-7711-11ef-8277-02d8461243e9'
};
const queryString = new URLSearchParams(params).toString();
const url = `https://api.tylt.money/transactions/merchant/getPayinTransactionInformation?${queryString}`;
const apiKey = 'your-api-key';
const secretKey = 'your-secret-key';
const signaturePayload = JSON.stringify(params);
const signature = crypto.createHmac('sha256', secretKey)
.update(signaturePayload)
.digest('hex');
const requestOptions = {
method: 'GET',
headers: {
'X-TLP-APIKEY': apiKey,
'X-TLP-SIGNATURE': signature
},
redirect: 'follow'
};
fetch(url, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.error('error', error));
Response
{
"msg": "",
"data": {
"orderId": "a49579dd-7711-11ef-8277-02d8461243e9",
"merchantOrderId": "b73b73b-87wtbc-q36gbc-331n3",
"baseAmount": 1,
"baseCurrency": "USDT",
"settledCurrency": "USDT",
"settledAmountRequested": 1,
"settledAmountReceived": 0,
"settledAmountCredited": 0,
"commission": 0.01,
"network": "BSC",
"depositAddress": "0xdbfc3d80de367906ccb456fe2eed57c39f05f63c",
"status": "Expired",
"paymentURL": "https://app.tylt.money/pscreen/a49579dd-7711-11ef-8277-02d8461243e9",
"callBackURL": "",
"transactions": [],
"createdAt": "2024-09-20T05:31:53Z",
"expiresAt": "2024-09-20T06:31:53Z",
"updatedAt": "2024-09-20T06:31:56Z",
"isFinal": 1,
"isCredited": 0,
"customerName": "TradingLeagues",
"comments": "Description testing 234"
}
}
Field Name
Type
Description
orderId
string
The order ID generated by TL Pay, used as a global identifier for the transaction.
merchantOrderId
string
The order ID provided by the Merchant, used for local reference (optional).
baseAmount
number
The base value of the good/service being supplied.
baseCurrency
string
The base currency of the good/service being supplied.
settledCurrency
string
The cryptocurrency/token in which the payment is to be made by the customer.
settledAmountRequested
number
The amount of cryptocurrency/token requested from the customer.
settledAmountReceived
number
The amount of cryptocurrency/token received from the customer.
settledAmountCredited
number
The amount of cryptocurrency/token credited to the merchant's balance (net).
commission
number
The commission deducted for the transaction.
network
string
The cryptocurrency network over which the payment is made.
depositAddress
string
The address for receiving the payment.
status
string
The status of the transaction (e.g., Expired, Pending, Completed).
paymentURL
string
The payment link that needs to be used by the customer to make the payment.
callBackURL
string
The callback URL for post-payment notifications (if applicable).
transactions
array
Details of the transactions resulting in the payment (if any).
createdAt
string
The timestamp when the transaction was created.
expiresAt
string
The timestamp when the transaction expires.
updatedAt
string
The timestamp when the transaction was last updated.
isFinal
number
Indicates if the transaction is complete (1) or still processing (0).
isCredited
number
Indicates if the payment has been credited to the merchant account (1: Yes, 0: No).
customerName
string
The name of the customer provided by the merchant (optional).
comments
string
Comments provided by the merchant about the transaction (optional).
Last updated