Fetching Order Status

Overview

The Get Status of a Crypto Sell Order API provides the current status and detailed information about a specific crypto-to-fiat sell order. This API allows merchants to track the progress of a transaction, helping to keep users informed and ensure transparency.


Endpoint

URL: https://mudrex.com/api/v1/wallet/conversion/fiat/transaction/{transaction_id}
Method: GET


Request Headers

HeaderDescription
X-TimestampUNIX timestamp for the request.
X-Client-IdUnique identifier for the merchant.
X-Request-IdA unique identifier for the request (optional but recommended).
X-Secret-KeyAPI secret key for authenticating the request.
X-User-IdThe unique ID of the user making the request.

Sample Request

curl --location 'https://mudrex.com/api/v1/wallet/conversion/fiat/transaction/a892dc4a-aecb-4a22-9de4-2990b4179b77' \
--header 'X-Timestamp: 1732265171' \
--header 'X-Client-Id: CLIENT_ID_HERE' \
--header 'X-Request-Id: CC' \
--header 'X-Secret-Key: SECRET_KEY_HERE' \
--header 'X-User-Id: USER_ID_HERE'

Sample Response

{
  "success": true,
  "data": {
    "exchange_rate": 82.56976,
    "crypto_amount": 1.14,
    "fiat_symbol": "INR",
    "failure_code": null,
    "failure_desc": null,
    "crypto_symbol": "USDT",
    "status": "COMPLETED",
    "fiat_amount": 100,
    "id": "a892dc4a-aecb-4a22-9de4-2990b4179b77",
    "created_at": "2022-10-03 07:51:15",
    "transaction_type": "SELL",
    "bank_transaction_id": "227617569022",
    "source_id": "65d246fc-6a5b-43d7-89bf-944e95ff2279"
  }
}

Key Response Fields

FieldDescriptionExample Value
exchange_rateThe conversion rate used for the transaction.82.56976
crypto_amountThe amount of cryptocurrency sold.1.14
fiat_symbolThe fiat currency involved in the transaction.INR
failure_codeError code if the transaction failed (null if successful).null
failure_descDescription of the failure reason (null if successful).null
crypto_symbolThe cryptocurrency involved in the transaction.USDT
statusCurrent status of the transaction.COMPLETED
fiat_amountThe amount of fiat currency received.100
idUnique identifier for the transaction.a892dc4a-aecb-4a22-9de4-2990b4179b77
created_atTimestamp when the transaction was created.2022-10-03 07:51:15
transaction_typeType of transaction (SELL).SELL
bank_transaction_idBank reference ID for the fiat transfer.227617569022
source_idUnique identifier for the transaction source.65d246fc-6a5b-43d7-89bf-944e95ff2279

Use Cases

  1. Transaction Tracking:

    • Monitor the status of a specific sell transaction to ensure its completion.
  2. User Notifications:

    • Use the transaction status to notify users about the progress or completion of their orders.
  3. Error Investigation:

    • Fetch failure codes and descriptions to identify and resolve transaction issues.

Important Notes

  • Real-Time Status:

    • Use this API to fetch the most up-to-date information about a sell transaction.
  • Error Handling:

    • If failure_code or failure_desc is populated, investigate the issue based on the returned details.

This API is crucial for providing transparency and improving user confidence in the on-ramp and off-ramp process. For further details, refer to the here.