Get Order 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.
curl --location 'https://api.transfi.com/v2/orders/OR-2508190642189741429' \
--header 'MID: ABCDEF_NA_NA' \
--header 'Authorization: Basic dHJhbnNmaV9xYT='
{
"data": {
"orderId": "OR-1234567890123456789",
"type": "payin",
"depositCurrency": "USDT",
"depositAmount": 100,
"withdrawCurrency": "USDT",
"withdrawAmount": 100,
"status": "initiated",
"senderName": {
"firstName": "John",
"lastName": "Doe"
},
"mid": "ABCDEF_NA_NA",
"fees": {
"processingFee": 0,
"feeMode": "percentage"
},
"partnerId": "",
"bankTxnId": [],
"exchangeRate": 1,
"userId": "UX-24030123456789"
}
}
Updated 4 days ago