Get Instance Details
This endpoint allows you to retrieve detailed information about a specific Pay-In transaction instance. The merchantOrderId
is required, and it corresponds to the unique identifier generated by merchant at the time of creating a payment instance.
Endpoint
GET
https://api.tylt.money/p2pRampsMerchant/getInstanceDetails?merchantOrderId={merchantOrderId}
Example Request
GET
https://api.tylt.money/p2pRampsMerchant/getInstanceDetails?merchantOrderId=dOf6cc25-e9f9-11ef-830e-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.
Code Snippet
const axios = require('axios');
const crypto = require('crypto');
const params = {
merchantOrderId: 'dOf6cc25-e9f9-11ef-830e-02d8461243e9'
};
const queryString = new URLSearchParams(params).toString();
const url = `https://api.tylt.money/p2pRampsMerchant/getInstanceDetails?${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: {
"Content-Type": "application/json",
"X-TLP-APIKEY": apiKey,
"X-TLP-SIGNATURE": signature
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.error(error);
});
Response
{
"msg": "",
"data": {
"trade": {
"event": {
"id": 4,
"deadline": "2025-03-11T07:57:20Z",
"description": "Seller Acknowledges Payment Receipt. Trade Completed."
},
"createdAt": "2025-03-11T07:56:19Z",
"updatedAt": "2025-03-11T07:57:20Z",
"isBuyTrade": 1,
"fiatCurrency": {
"name": "Indian Rupee",
"symbol": "INR"
},
"priceDetails": {
"price": 93.5,
"amount": 2.3,
"paymentAmount": 215.04999999999998
},
"cryptoCurrency": {
"name": "Tether",
"symbol": "USDT"
},
"paymentMethod": {
"details": {
"upiAddress": "p2ptrade@upi",
"qrString": "upi://pay?pa=p2ptrade@upi&pn=&am=215.04999999999998&cu=INR"
}
}
},
"transaction": {
"amount": 2.2079999999999997,
"status": "Completed",
"isFinal": 1,
"orderId": "538ffd9a-fe4e-11ef-bcfd-42010a280107",
"createdAt": "2025-03-11T07:57:20Z",
"updatedAt": "2025-03-11T07:57:22Z",
"isCredited": 1,
"merchantOrderId": "merchant-test-111"
},
"accounts": {
"MDR_Rate": 4,
"localCurrency": "INR",
"transactionType": "pay-in",
"merchantAccountDebited": null,
"merchantAccountCredited": 2.2079999999999997,
"amountPaidInLocalCurrency": 215.04999999999998,
"cryptoCurrencySymbol": "USDT",
"amountPaidInCryptoCurrency": 2.3,
"conversionRate": 93.5
},
"user": {}
}
}
Last updated