> For the complete documentation index, see [llms.txt](https://docs.idrx.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.idrx.co/api/transaction-api/get-api-transaction-user-transaction-history.md).

# GET /transaction/user-transaction-history

Use this API to obtain a list of your transaction history.

{% hint style="info" %}
Using an AI assistant or LLM? An index of these docs is available at [llms.txt](https://docs.idrx.co/llms.txt), and the full docs in one file at [llms-full.txt](https://docs.idrx.co/llms-full.txt).
{% endhint %}

## Parameters

1. **`transactionType` (String)&#x20;**<mark style="color:red;">**Required**</mark>**: (MINT, BURN, BRIDGE, SEND)**

   This parameter is for selecting the type of transaction.
2. **`userMintStatus`(String):**

* NOT\_AVAILABLE : Transaction is waiting for the payment to be finished
* PROCESSING : Minting is being processed
* MINTED : Transaction is minted **(terminal)**
* REJECTED: Transaction is rejected **(terminal)**
* REFUND: Transaction is refunded **(terminal)**

3. **`paymentStatus` (String):**

* PAID : Transaction is paid
* WAITING\_FOR\_PAYMENT: Transaction is waiting for payment
* EXPIRED: The payment request is expired

4. **`burnStatus` (String):**

* PENDING: The burn transaction has not been fully confirmed on-chain yet
* REQUESTED: Transaction has been requested
* IN\_PROCESS: Transaction is being processed
* ACTION\_REQUIRED: The burn is recorded and the redeem is ready to be disbursed, but the payout has not been sent yet. This is **not** a failure — do not retry it
* SUCCESS: Redeem transaction is successful **(terminal)**
* FAILED: Redeem transaction is failed **(terminal)**
* INVALID: The request was rejected during validation **(terminal)**
* REJECTED: The request was rejected after review **(terminal)**
* REFUNDED: The burned amount was returned as IDRX to the wallet that burned it. No rupiah payout follows **(terminal)**. See [Callback](https://docs.idrx.co/api/callback.md#refunded-redeem) for how to match the refund

{% hint style="warning" %}
Only `SUCCESS`, `FAILED`, `INVALID`, `REJECTED` and `REFUNDED` are terminal. If you poll until "SUCCESS or FAILED", a redeem sitting in `PENDING` or `ACTION_REQUIRED` will loop forever — treat those as still in progress and keep polling.
{% endhint %}

5. **`bridgeStatus` (String):**

* PENDING: The burn transaction has not been fully confirmed on-chain yet
* REQUESTED: Transaction has been requested
* PROCESSING: Transaction is being processed
* APPROVED: Transaction has been approved and is awaiting execution
* SUCCESS: Bridge transaction is successful **(terminal)**
* FAILED: Bridge transaction is failed **(terminal)**
* REJECTED: The request was rejected after review **(terminal)**
* EXPIRED: The request expired before it could be processed **(terminal)**

6. **`merchantOrderId`(String):**

   This parameter filters the transaction based on the merchant order ID.
7. **`originChainId`(Number):**

   This parameter filters the transaction based on the origin chain ID.
8. **`destinationChainId` (Number):**

   This parameter filters the transaction based on the target chain ID.
9. **`amountMax`(String):**

   This parameter filters the transaction based on the maximum IDRX amount transacted.
10. **`amountMin`(String):**

    This parameter filters the transaction based on the minimum IDRX amount transacted.
11. **`txHash`(String):**

    This parameter filters the transaction based on the transaction hash.
12. **`orderByDate`(String):**

    This parameter filters the date in an ascending (**ASC**) or descending (**DESC**) order.
13. **`orderByAmount`(String):**

    This parameter filters the amount in an ascending (**ASC**) or descending (**DESC**) order.
14. **`page`(String)&#x20;**<mark style="color:red;">**Required**</mark>**:**

    This parameter specifies the page number of the data to be retrieved.
15. **`take`(String)&#x20;**<mark style="color:red;">**Required**</mark>**:**

    This parameter specifies the amount of data to be retrieved per page.

## Example Request

```
curl '<https://api.idrx.co/transaction/user-transaction-history?transactionType=BRIDGE&page=1&take=10>' --header 'idrx-api-key: <API_KEY>' --header 'idrx-api-sig: <signature>' --header 'idrx-api-ts': <timestamp>'
```

## Response

If the request is successful, the response will be as shown below:

Example for transactionType MINT:

```json
{
    "statusCode": 200,
    "message": "success",
    "metadata": {
        "page": null,
        "perPage": null,
        "pageCount": null,
        "totalCount": 1
    },
    "records": [
        {
            "id": 311,
            "paymentAmount": 54500,
            "merchantOrderId": "20231219101707",
            "productDetails": "Minting IDRX",
            "customerVaName": "JOHN SMITH",
            "email": "john.smith@gmail.com;IDRX",
            "chainId": 137,
            "destinationWalletAddress": "0x8BD53F7fF88fD895D3686fe6369a07432822d30F",
            "toBeMinted": "19860",
            "merchantUserInfo": 411,
            "createdAt": "2023-12-19T10:17:07.903Z",
            "updatedAt": "2023-12-19T10:57:15.197Z",
            "paymentStatus": "PAID",
            "expiryTimestamp": "1703197027900",
            "reference": "D11808T8GVTL81VV2U7HV",
            "txHash": "0xb8a0b017d96b49813814026cd01a3ceb169b33ab01b895c222c36c241d2ad3cb",
            "qredoTxId": "2Zl4ZG8dr5tyfdSfm6aF3PrpxU4",
            "adminMintStatus": "MINTED",
            "userMintStatus": "MINTED",
            "reportStatus": "APPROVED",
            "requestType": "",
            "userId": 101,
            "refundStatus": null,
            "fee": 140,
            "paymentCode": "IQ",
            "fees": [
              { 
                "name": "Payment Method Fee", 
                "amount": "140" 
              }
            ]
        }
    ]
}
```

Example for transactionType BURN:

```json
{
    "statusCode": 200,
    "message": "success",
    "metadata": {
        "page": null,
        "perPage": null,
        "pageCount": null,
        "totalCount": 1
    },
    "records": [
        {
            "id": 121,
            "userId": 411,
            "txHash": "0xa38c057222872d8e3d106ab5f9b86b7d1d6ade72d485eb01366650e45c8a65d0",
            "amount": "16000",
            "bankName": "BANK CENTRAL ASIA",
            "bankAccountNumber": "5260759037",
            "burnStatus": "SUCCESS",
            "createdAt": "2023-12-19T11:05:42.583Z",
            "updatedAt": "2023-12-19T11:33:53.865Z",
            "bankCode": "014",
            "custRefNumber": "000028881450",
            "disburseId": 17610583,
            "fromAddress": "0x8BD53F7fF88fD895D3686fe6369a07432822d30F",
            "chainId": 137,
            "requester": "JOHN SMITH",
            "bankAccountName": "WILDAN RAMADHAN               ",
            "bankAccountNumberHash": null,
            "notes": null,
            "reportStatus": "APPROVED"
        }
    ]
}
```

Example for transactionType BRIDGE:

```json
{
  "statusCode": 200,
  "message": "success",
  "metadata": {
    "page": 1,
    "perPage": 10,
    "pageCount": 1,
    "totalCount": 3
  },
  "records": [
    {
      "id": 3,
      "userId": 1,
      "bridgeFromChainId": 80001,
      "bridgeToChainId": 97,
      "txHashBurn": "0x38ef6a20db393505fbae51f5f9ec9197013cee21bccafabf8ef37261aa2039d9",
      "txHashMint": null,
      "qredoTxId": null,
      "signedTx": null,
      "bridgeNonce": "0",
      "amount": "100000",
      "bridgeStatus": "REQUESTED",
      "deleted": false
    }
  ]
}
```
