Get Payment status
There are two ways to get this done.
- Listening for payment webhooks
We covered how to create a webhook listener here in the getting setup guide - if you haven't done this already, go back to this step to get ready to receive webhooks. - Retrieve the order by it’s ID
GET /orders/{orderID}
You can retrieve directly the latest status by specifying the order ID in theGET
Request.
{
"status": "success",
"data": {
"orderId": "OR-241127052055649",
"type": "payout",
"depositCurrency": "USDT",
"depositAmount": 252.771,
"withdrawCurrency": "ETH",
"withdrawAmount": 0.1,
"status": "fund_settled",
"recipientName": {
"firstName": "John",
"lastName": "Doe"
},
"fees": {
"networkFee": 0,
"processingFee": 0
},
"partnerId": "",
"bankTxnId": []
}
}
Updated 4 months ago