Skip to main content

Documentation

Retrieve Details of Wallet Transaction

Retrieve the details of a wallet transaction.

The response fields vary depending on the type of the transaction. See Transaction Types.

Note

This endpoint replaces the deprecated endpoint - GET /v1/user/:wallet/transactions/:transaction

Rapyd will continue to support the deprecated endpoint until December 31, 2024.

    • ewallet

    • ID of the wallet. String starting with ewallet_.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
                        string wallet = "ewallet_4c4cb6d688d87f26bc5e679691c69f04";
                        string transaction = "dfa55d22-3ac8-11ea-8193-0e0450a4edb1";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/user/{wallet}/transactions/{transaction}");
        
                        Console.WriteLine(result);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("Error completing request: " + e.Message);
                    }
                }
            }
        }
    • JavaScript

      • const makeRequest = require('<path-to-your-utility-file>/utilities').makeRequest;
        
        async function main() {
          try {
            const result = await makeRequest(
              'GET',
              '/v1/user/ewallet_4c4cb6d688d87f26bc5e679691c69f04/transactions/dfa55d22-3ac8-11ea-8193-0e0450a4edb1'
            );
            console.log(result);
          } catch (error) {
            console.error('Error completing request', error);
          }
        }
    • PHP

      • <?php
        $path = $_SERVER['DOCUMENT_ROOT'];
        $path .= "/<path-to-your-utility-file>/utilities.php";
        include($path);
        
        try {
            $object = make_request('get', '/v1/user/ewallet_4c4cb6d688d87f26bc5e679691c69f04/transactions/dfa55d22-3ac8-11ea-8193-0e0450a4edb1');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        wallet = 'ewallet_4c4cb6d688d87f26bc5e679691c69f04'
        transaction = 'dfa55d22-3ac8-11ea-8193-0e0450a4edb1'
        results = make_request(method='get', path=f'/v1/user/{wallet}/transactions/{transaction}')
        
        pprint(results)
  • /v1/ewallets/:ewallet/transactions/:transaction

  • Get Details of Wallet Transaction - balance_transfer

  • curl -X get
    https://sandboxapi.rapyd.net/v1/ewallets/ewallet_9fa604317114b2c0d5ae0599f9eabdf6/transactions/wt_66717bc2532641d51a653b4a59463a4a
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "eb6aa4e3-24ba-4516-9ca4-f2b5036b0123"
        },
        "data": [
            {
                "id": "wt_66717bc2532641d51a653b4a59463a4a",
                "currency": "USD",
                "amount": -18,
                "ewallet_id": "ewallet_9fa604317114b2c0d5ae0599f9eabdf6",
                "type": "balance_transfer",
                "subtype": null,
                "balance_type": "available_balance",
                "balance": 550050855.93,
                "destination_ewallet_id": "ewallet_56e3911e5fec5db8e0a36e1212bf4576",
                "destination_balance_type": "received_balance",
                "created_at": 1706685621,
                "status": "CLOSED",
                "reason": "",
                "metadata": {}
            }
        ]
    }
  • Get Details of Wallet Transaction - balance transfer with subtype

  • curl -X get
    https://sandboxapi.rapyd.net/v1/ewallets/ewallet_9fa604317114b2c0d5ae0599f9eabdf6/transaction/wt_80f5118850d40c3f7cf8154546fa9323
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "eb6aa4e3-24ba-4516-9ca4-f2b5036b0123"
        },
        "data": [
            {
                "id": "wt_80f5118850d40c3f7cf8154546fa9323",
                "currency": "USD",
                "amount": -18,
                "ewallet_id": "ewallet_9fa604317114b2c0d5ae0599f9eabdf6",
                "type": "balance_transfer",
                "subtype": "monthly_user_wallets_fee",
                "balance_type": "available_balance",
                "balance": 550050873.93,
                "destination_ewallet_id": "ewallet_56e3911e5fec5db8e0a36e1212bf4576",
                "destination_balance_type": "received_balance",
                "created_at": 1706673447,
                "status": "CLOSED",
                "reason": "",
                "metadata": {}
            }
        ]
    }