Fetching Order Status

Overview

This API call fetches the details of a completed on-ramp transaction with a cryptocurrency withdrawal. When a user deposits fiat and the crypto is withdrawn to a specified wallet

It provides comprehensive information about the transaction, including fees, payment method, and status.


Endpoint

URL: https://staging.mudrex.com/api/v2/wallet/w/transaction/buy/{transaction_id}
Method: GET


Headers

HeaderDescription
X-TimestampA UNIX timestamp for the request. Used for generating a secure signature.
X-Client-IdYour unique client ID is provided by Saber Money.
X-Request-IdA unique identifier for the request (optional but recommended).
X-User-IdThe unique ID of the user whose transaction is being fetched.
X-Secret-KeyYour API secret key for authenticating the request.

Request Parameters

ParameterDescriptionExample Value
transaction_idThe unique identifier of the transaction to fetch details for.50232ef8-5d3f-4d04-9889-ad963ef34ff1

Sample call

curl --location 'https://staging.mudrex.com/api/v2/wallet/w/transaction/buy/50232ef8-5d3f-4d04-9889-ad963ef34ff1' \
--header 'X-Timestamp: 1705491300' \
--header 'X-Client-Id: CLIENT_ID_HERE' \
--header 'X-Request-Id: hggqwei' \
--header 'X-User-Id: USER_ID_HERE' \
--header 'X-Secret-Key: SECRET_KEY_HERE'


Response

Sample Response:

{
  "success": true,
  "data": {
    "id": "50232ef8-5d3f-4d04-9889-ad963ef34ff1",
    "transaction_type": "ONRAMP_AND_WITHDRAW",
    "status": "ONRAMP_COMPLETED",
    "crypto_symbol": "USDT",
    "fiat_symbol": "INR",
    "source_id": "",
    "payment_method": "gpay_intent",
    "withdraw_address": "0x1f4d75864f1ceb33a75e26ded3393caa55f87d8e",
    "network": "BSC",
    "crypto_amount": 20,
    "fiat_amount": 1868.18,
    "base_price": 92.53,
    "final_price": 93.41,
    "total_fee": 0.19,
    "fee_currency": "USDT",
    "fee_breakup": {
      "platform_fee": 0,
      "network_fee": 0.19,
      "client_fee": 0,
      "discount": 0,
      "tax_on_fee": 0,
      "tds": 0
    },
    "created_at": 1705491300000,
    "updated_at": 1705491301000,
    "txn_hash": ""
  }
}

Key Response Fields

FieldDescriptionExample Value
idUnique identifier of the transaction.50232ef8-5d3f-4d04-9889-ad963ef34ff1
transaction_typeType of transaction (e.g., ONRAMP_AND_WITHDRAW).ONRAMP_AND_WITHDRAW
statusCurrent status of the transaction.ONRAMP_COMPLETED
crypto_symbolCryptocurrency involved in the transaction.USDT
fiat_symbolFiat currency used in the transaction.INR
payment_methodPayment method used (e.g., gpay_intent).gpay_intent
withdraw_addressThe wallet address to which the cryptocurrency was withdrawn.0x1f4d75864f1ceb33a75e26ded3393caa55f87d8e
networkBlockchain network used for the transaction.BSC
crypto_amountAmount of cryptocurrency involved.20
fiat_amountAmount of fiat currency used.1868.18
total_feeTotal fees charged for the transaction.0.19
fee_currencyCurrency in which the fees were charged.USDT
fee_breakupDetailed breakdown of the fees (e.g., platform, network, client fees).{ "network_fee": 0.19 }

Notes

  1. Transaction Status:

    • Common statuses include ONRAMP_COMPLETED, WITHDRAW_PENDING,
    • Use this field to determine the progress of the transaction.
  2. Fee Details:

    • total_fee gives the overall fee, while fee_breakup provides granular insights like platform and network fees.
  3. Network and Wallet Address:

    • Ensure that the withdraw_address and network match the user's intended withdrawal details.
  4. Use Cases:

    • Monitor the transaction progress.
    • Provide detailed insights to users about their transaction history.

This API allows comprehensive tracking of on-ramp transactions and is essential for maintaining transparency and user trust.

Check more details about this API endpoint here.