For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

GEThttps://api.tylt.money/transactions/merchant/getPayinTransactionHistory?rows={numberRows}&page={pagenumber}

Endpoint Example

GEThttps://api.tylt.money/transactions/merchant/getPayinTransactionHistory?rows=20&page=1

Request Headers

Name
Type
Example
Description

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');

// 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

Field Name
Type
Description

orderId

String

The order ID generated by TL Pay and used as a global identifier.

merchantOrderId

String

The order ID provided by the merchant at the time of the request (optional).

baseAmount

Number

The base value of the good or service being supplied.

baseCurrency

String

The base currency of the good or service being supplied (e.g., "USDT").

settledCurrency

String

The cryptocurrency or token used for the payment by the customer.

settledAmountRequested

Number

The amount of cryptocurrency or token requested from the customer.

settledAmountReceived

Number

The amount of cryptocurrency or token received from the customer.

settledAmountCredited

Number

The amount of cryptocurrency or token credited to your balance (net).

commission

Number

The commission deducted towards the transaction.

network

String

The crypto network over which the payment is made (e.g., "BSC").

depositAddress

String

The wallet address where the payment is to be deposited.

status

String

The status of the transaction (e.g., "Expired").

paymentURL

String

The payment link that needs to be used by the customer to make the payment.

callBackURL

String

The callback URL specified at the time of request.

transactions

Array

The details of the transactions that result in the payment.

createdAt

String

The timestamp when the transaction was created (ISO 8601 format).

expiresAt

String

The timestamp when the transaction expires (ISO 8601 format).

updatedAt

String

The timestamp when the transaction was last updated (ISO 8601 format).

isFinal

Number

Indicates whether the transaction is completed (1 for completed, 0 for incomplete).

isCredited

Number

Indicates whether the credit associated with the payment has been applied to the merchant account (1 for credited, 0 for not credited).

customerName

String

The customer name provided by the merchant when making the request (optional).

comments

String

Comments provided by the merchant when making the request (optional).