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.
curl --location 'https://sandbox-api.transfi.com/v2/orders/OR-123467890123456789' \
--header 'Authorization: Basic qwertyqwerty'
{
    "data": {
        "orderId": "OR-1234567890123456789",
        "type": "payout",
        "depositCurrency": "USDT",
        "depositAmount": 58.343312,
        "withdrawCurrency": "EUR",
        "withdrawAmount": 50,
        "status": "fund_settled",
        "recipientName": {
            "firstName": "john",
            "lastName": "doe"
        },
        "mid": "ABCDEF_NA_NA",
        "fees": {
            "processingFee": 0,
            "fixedFee": {
                "totalFixedFees": 0,
                "totalFixedTfFees": 0,
                "totalFixedCxFees": 0,
                "fixedFeesCurrency": "EUR",
                "fixedFeeDetails": {
                    "baseFeeFixedRate": 0,
                    "tfFeeFixedRate": 0,
                    "cxFeeFixedRate": 0,
                    "currency": ""
                }
            },
            "feeMode": "percentage"
        },
        "partnerContext": {
            "testfield1": "1234",
            "testfield2": "5678"
        },
        "partnerId": "order-12345",
        "bankTxnId": [],
        "exchangeRate": 0.857,
        "userId": "UX-12345678912345678"
    }
}