Check Deposits Status
Request
At any given time, you are welcome to verify the status of a deposit whenever you deem it necessary. Additionally, in case of any change in a deposit's status, our system will proactively send you a notification. This notification will include the deposit's ID, enabling you to check and retrieve the latest status of the deposit efficiently.
Request Example
import axios from 'axios';
const options = {
method: 'GET',
url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/deposits/{DEPOSIT_ID}',
headers: {
'accept': 'application/json',
'content-type': 'application/json',
'Authorization': "Bearer YOUR-API-TOKEN"
},
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});
import requests
url = "https:/api.aqua.test.krayondigital.com/main/api/v1/deposits/{DEPOSIT_ID}"
headers = {
"accept": "application/json",
"content-type": "application/json",
"Authorization": "Bearer YOUR-API-TOKEN"
}
response = requests.get(url, headers=headers)
print(response.text)
Response Example
{
"data": {
"id": "8c7d6aac220c495fa50670a46b458e9d",
"organization": "org_aAgoWL5DjwSvQSf0",
"wallet": None,
"status": "PENDING",
"amount": 500.0,
"currency": "INR",
"symbol": "USDT",
"webhook_url": "https://krayondigital.webhook.com",
"type": "DEPOSIT",
"payment_method": "UPI",
"description": "this is the payment description",
"qr_code": "upi://pay?pa=INNOV781.29@CMSIDFC&pn=Krayon Digital&tn=121237361371281&tr=1278361287361287312&am=500.0&cu=INR",
"return_url": "https://www.krayondigital.com",
"redirect_url": "https://prod.teal.krayondigital/checkouts/8c7d6aac220c495fa50670a46b458e9d",
"created_at": "2023-01-01 10:57:49"
}
}
- Different payment methods have different return values.
PayTM response
{
"data": {
"id": "fcc28b8536e34509b1ce18bf984828fb",
"organization": "org_R70qrd2eVUGwP9lr",
"status": "PENDING",
"qr_code": "upi://pay?ver=01&mode=15&am=500.00&mam=0.00&cu=INR&pa=sim.simgroup@timecosmos&pn=SuvidhaaGroup&mc=6012&tr=SUVIDHA6TID540241665410&tn=QR&mid=RUAAN3069&msid=SUVID-1701&mtid=RUAAN-3069",
"customer_email": "[email protected]",
"customer_country": "IN",
"reference_id": "112233445566",
"created_at": "2024-05-26T18:15:53.382225Z",
"payment_details": None,
"amount": 500.0,
"symbol": "USDT",
"type": "DEPOSIT",
"payment_method": "PAYTM",
"description": "Test Payment",
"return_url": "https://www.krayondigital.com",
"webhook_url": "",
"currency": "INR",
"redirect_url": "https://aqua.test.krayondigital.com/checkouts/fcc28b8536e34509b1ce18bf984828fb",
"payment_fee": 0,
"net_amount": 0,
"customer_vpa": "simulator@upi",
"destination_vpa": "SuvidhaaGroup@upi",
},
}
- We return the customer_vpa after a successful payment. This value is sent via notification as well.
Please check deposits API ref for more information and response object fields. see more details
Updated 6 months ago