Retrieve a Payment Log

Retrieve a Payment Log from Virtual Accounts

When you perform a Virtual Account (VA) transaction, there are two transactions written inside the ledger:

  • One transaction log for the VA sender
  • One transaction log for the VA recipient of the transaction

Log differences:

  • The accountID and counterAccountID for the transaction are opposite
  • The transactionType is DEBIT or CREDIT based on the sender and recipient account
  • The marketValue might be different based on the settings of the accounts in the transaction

To get the details of both transactions, enter the reference ID of the Virtual Account transaction. Additional details are available in the following article.

List a Payment Log from reference

Request Example:

  • The response will contain details about both virtual account transactions.
curl --location --request GET 'https://api.tatum.io/v3/ledger/transaction/reference/9e179f90-0221-480f-adb4-28bd1937bb20' \
--header 'x-api-key: {YOUR_API_KEY}'
//Response:
[
    {
        "amount": "-0.000001",
        "operationType": "PAYMENT",
        "currency": "BTC",
        "transactionType": "DEBIT_PAYMENT",
        "accountId": "5fad2aa1cac7f2e8aeac0e6b",
        "anonymous": false,
        "reference": "9e179f90-0221-480f-adb4-28bd1937bb20",
        "counterAccountId": "5fbaca3001421166273b3779",
        "senderNote": null,
        "recipientNote": null,
        "paymentId": null,
        "transactionCode": null,
        "marketValue": {
            "currency": "EUR",
            "source": "CoinGecko",
            "sourceDate": 1606076765607,
            "amount": "-0.01566745999999999889"
        },
        "created": 1606076989819
    },
    {
        "amount": "0.000001",
        "operationType": "PAYMENT",
        "currency": "BTC",
        "transactionType": "CREDIT_PAYMENT",
        "accountId": "5fbaca3001421166273b3779",
        "anonymous": false,
        "reference": "9e179f90-0221-480f-adb4-28bd1937bb20",
        "counterAccountId": "5fad2aa1cac7f2e8aeac0e6b",
        "senderNote": null,
        "recipientNote": null,
        "paymentId": null,
        "transactionCode": null,
        "marketValue": {
            "currency": "EUR",
            "source": "CoinGecko",
            "sourceDate": 1606076765607,
            "amount": "0.01566745999999999889"
        },
        "created": 1606076989819
    }
]