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 to this API .
curl --request GET \
     --url https://sandbox-api.transfi.com/v2/orders/OR-2508181321503981541 \
     --header 'MID: ABCDEF_NA_NA' \
     --header 'accept: application/json' \
     --header 'authorization: Basic dHJhbnNmaV9xYT'
{
  "data": {
    "orderId": "OR-2508181321503981541",
    "type": "payin",
    "depositCurrency": "EUR",
    "depositAmount": 30,
    "withdrawCurrency": "USDC",
    "withdrawAmount": 32.358344,
    "status": "initiated",
    "senderName": {
      "firstName": "John",
      "lastName": "Doe"
    },
    "mid": "TSAJOG_NA_NA",
    "fees": {
      "networkFee": 0,
      "rrFee": 0.015,
      "processingFee": 1.56,
      "fixedFee": {
        "totalFixedFees": 1.713295,
        "totalFixedTfFees": 1.713295,
        "totalFixedCxFees": 0,
        "fixedFeesCurrency": "EUR",
        "fixedFeeDetails": {
          "baseFeeFixedRate": 2,
          "tfFeeFixedRate": 2,
          "cxFeeFixedRate": 0,
          "currency": "USD"
        },
        "fixedMinimumFees": {
          "totalMinimumFees": 0,
          "fixedMinimumCurrency": ""
        }
      },
      "feeMode": "fixed"
    },
    "partnerId": "",
    "bankTxnId": [],
    "exchangeRate": 0.8650009999999999,
    "userId": "UX-240912102233213"
  }
}