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 the GET Request.
{
    "data": {
        "orderId": "OR-1234567890123456789",
        "type": "payout",
        "depositCurrency": "USDT",
        "depositAmount": 10,
        "withdrawCurrency": "USDT",
        "withdrawAmount": 10,
        "status": "initiated",
        "recipientName": {
            "firstName": "John",
            "lastName": "Doe"
        },
        "mid": "ABCDEF_NA_NA",
        "fees": {
            "networkFee": 0.8,
            "processingFee": 0,
            "feeMode": "percentage"
        },
        "partnerId": "",
        "bankTxnId": [],
        "exchangeRate": 1,
        "userId": "UX-24012345678912345"
    }
}
curl --location 'https://sandbox-api.transfi.com/v2/orders/OR-1234567890123456789' \
  --header 'MID: ABCDEF_NA_NA' \
  --header 'Authorization: Basic dHJhbnNmaV9xYT='