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 to this API .
curl --request GET \
--url https://sandbox-api.transfi.com/v2/orders/OR-1234567890123456789 \
--header 'accept: application/json' \
--header 'MID: ABCDEF_NA_NA' \
--header 'authorization: Basic dHJhbnNmaV9xYT'
{
"data": {
"orderId": "OR-1234567890123456789",
"type": "gaming",
"depositCurrency": "EUR",
"depositAmount": 25,
"withdrawCurrency": "USDC",
"status": "initiated",
"senderName": {
"firstName": "John",
"lastName": "Doe"
},
"mid": "ABCDEF_NA_NA",
"partnerId": "order-081124_00001",
"bankTxnId": [],
"exchangeRate": null,
"userId": "UX-241115132428707"
}
}
Updated 5 days ago