Skip to main content

Documentation

Retrieve Virtual Account Transaction

Retrieve a virtual account transaction and the remitter details.

To retrieve other wallet transactions, see List Wallet Transactions and Get Details of Wallet Transaction.

Note

This endpoint replaces the deprecated endpoint - GET /v1/issuing/bankaccounts/:virtual_account/transactions/:transaction

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

    • virtual_account

    • ID of the virtual account. String starting with issuing_.

Code Samples
    • .NET

      • using System;
        
        namespace RapydApiRequestSample
        {
            class Program
            {
                static void Main(string[] args)
                {
                    try
                    {
        
                        string bankAccount = "issuing_b1dcb7ceedb740200f7656cfa191f47d";
                        string transaction = "isutran_38be3b9c019f337a5a12bd47eb0fd3bd";
        
                        string result = RapydApiRequestSample.Utilities.MakeRequest("GET", $"/v1/virtual_accounts/{bankAccount}/transactions/{transaction}");
        
                        Console.WriteLine(result);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("Error completing request: " + e.Message);
                    }
                }
            }
        }
    • JavaScript

      • const makeRequest = require('../../../../Utilities/JS/utilities').makeRequest;
        
        async function main() {
          try {
            const result = await makeRequest(
              'GET',
              '/v1/virtual_accounts/issuing_b1dcb7ceedb740200f7656cfa191f47d/transactions/isutran_38be3b9c019f337a5a12bd47eb0fd3bd'
            );
        
            console.log(result);
          } catch (error) {
            console.error('Error completing request', error);
          }
        }
    • PHP

      • <?php
        $path = $_SERVER['DOCUMENT_ROOT'];
        $path .= "/code_race_2020/Utilities/PHP/utilities.php";
        include($path);
        try {
            $object = make_request('get', '/v1/virtual_accounts/issuing_b1dcb7ceedb740200f7656cfa191f47d/transactions/isutran_38be3b9c019f337a5a12bd47eb0fd3bd');
            var_dump($object);
        } catch(Exception $e) {
            echo "Error: $e";
        }
        ?>
    • Python

      • from pprint import pprint
        
        from utilities import make_request
        
        results = make_request(method='get',
                               path=f'/v1/virtual_accounts/issuing_b1dcb7ceedb740200f7656cfa191f47d/transactions/isutran_38be3b9c019f337a5a12bd47eb0fd3bd')
        pprint(results)
  • /v1/virtual_accounts/:virtual_account/transactions/:transaction

  • Retrieve Virtual Account Transaction

  • curl - X get
    https: //sandboxapi.rapyd.net/v1/virtual_accounts/issuing_355a19f1049afc91cf9c46dbff06df8a/transactions/isutran_518bd34376cb17382607f6091d7047f5
    -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": "37d861ae-4230-4510-a598-06e6e66c6822"
        },
        "data": {
            "id": "isutran_518bd34376cb17382607f6091d7047f5",
            "ewallet": "ewallet_f95ed68265974e0af57675a5c2f24fcc",
            "account_id": "7981378242373243",
            "account_id_type": "account_number",
            "amount": 101,
            "currency": "HKD",
            "original_amount": 101,
            "original_currency": "HKD",
            "fx_rate": 1,
            "created_at": 1694067957
            "remitter_reference": "5543793536343996",
            "partner_transaction_id": "c5021de2-e281-4668-8f3a-812e897a1fdd",
            "created_at_gw": "2021-11-17T23:03:20.000Z",
            "sender_iban": "GB00CLRB04054200005418",
            "sender_account_name": "AMAZON PAYMENTS UK",
            "sender_sort_code": "231048",
            "sender_account_number": "0092780602",
            "sender_bank_code": "032-727",
            "sender_bank_name": "Westpac Banking Corporation, Petrie Plaza, Canberra"
        }
    }
    {