Skip to main content

Documentación

Retrieve Details of Wallet Transaction

Retrieve the details of a wallet transaction.

Nota

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

The examples do not include responses of all transaction types.

Nota

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

Rapyd no longer supports the deprecated endpoint.

    • 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

  • Retrieve Details of Wallet Transaction - balance transfer

  • curl -X get 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_31fb2dbbaf6519461ee4fbe1062220d3/transactions/wt_adae2a5d591dbd405e2d48b76df17519' \
    -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": "ab131f11-dc87-4154-9726-e80bb37bfd23"
        },
        "data": {
            "id": "wt_adae2a5d591dbd405e2d48b76df17519",
            "currency": "EUR",
            "amount": 28,
            "ewallet_id": "ewallet_31fb2dbbaf6519461ee4fbe1062220d3",
            "type": "put_funds_on_hold",
            "subtype": null,
            "balance_type": "on_hold_balance",
            "balance": 34,
            "source_ewallet_id": "ewallet_31fb2dbbaf6519461ee4fbe1062220d3",
            "source_balance_type": "available_balance",
            "created_at": 1764838142,
            "status": "CLOSED",
            "reason": "",
            "metadata": {}
        }
    }
  • Retrieve 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": {}
            }
        ]
    }