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

Get Pay-Out 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}20&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';

// Create signature for the GET request
const params = {rows:20,page:1};
const queryParams = new URLSearchParams(params).toString();
const signature = crypto.createHmac('sha256', apiSecret)
  .update( JSON.stringify(params) )
  .digest('hex');

const config = {
  method: 'get',
  url: `https://api.tylt.money/transactions/merchant/getPayoutTransactionHistory?${queryParams}`,
  headers: {
    "X-TLP-APIKEY": apiKey,
    "X-TLP-SIGNATURE": signature
  }
};

axios(config)
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error);
  });

Response

Field Name

Type

Description

orderId

String

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

merchantOrderId

String

The merchant's local order ID for reference (optional).

settledCurrency

String

The cryptocurrency or token used for payout.

settledAmountRequested

Number

The amount of cryptocurrency or token requested to be paid out.

settledAmountDebited

Number

The amount of cryptocurrency debited from your merchant balance.

settledAmountSent

Number

The total amount of cryptocurrency sent to the recipient.

commission

Number

The commission deducted from the payout transaction.

network

String

The blockchain network over which the payout is made (e.g., "BSC").

toAddress

String

The recipient's wallet address where the payout will be sent.

status

String

The status of the payout (e.g., "Pending", "Completed", "Failed").

insufficientBalance

Number

Indicates if there is insufficient balance for the transaction (1 = Yes, 0 = No).

paymentURL

String

The URL where the customer can make the payment (if applicable).

callBackURL

String

The callback URL specified by the merchant (optional).

transactions

Array

Details of any individual transactions linked to this payout (if applicable).

createdAt

String

The timestamp when the payout request was created.

expiresAt

String

The timestamp when the payout request will expire.

updatedAt

String

The timestamp when the payout request was last updated.

isFinal

Number

Indicates if the transaction is final (1 for completed, 0 for pending).

isDebited

Number

Indicates if the payout amount has been debited from your merchant account.

customerName

String

The name of the customer associated with the transaction (optional).

comments

String

Any comments or notes provided by the merchant (optional).