Search for transactions

This method can be used to search transaction that affect the balance of a specified wallet, namely wallet transactions. Wallet transactions can be debit or credit, furthermore these transactions are classified by sub types. Sub types are categorized in groups.

HTTP Request

POST /walletaccounts/v1/wallets/{walletId}/transactions:search

URI Parameters

Parameter Type Description
walletId long The Id of a wallet that belongs to the authorized user. Transactions returned will be about this wallet

Query Parameters

Parameter Type Required Default Description
skip int false 0 The number of transactions to skip from the top of the response, it is applied after calculating the result and sorting it by created date descending. Range: [0, ∞).
limit int false 50 The total number of transactions to return in the response, it is applied after skip. Range: [1, 50].

Authorization

Roles: Client Merchant Reseller

Request body

Content-Type: application/json

{
    "isCredit": "bool?",
    "amountTo": "decimal?",
    "amountFrom": "decimal?",
    "dateTo": "date?",
    "dateFrom": "date?",
    "walletTransactionId": "uuid?",
    "subTypeGroups": [
        "int"
    ]
}

Response

[
    {
        "amount": "decimal",
        "description": "string",
        "currencyCode": "string",
        "walletAmount": "decimal?",
        "created": "date",
        "walletTransactionId": "uuid?",
        "valueDate": "date?",
        "walletAvailableAmount": "decimal?",
        "subTypeId": "int"
    }
]

Example

let access_token = '';
let host = "https://uat-api.vivapayments.com";

fetch(`${host}/walletaccounts/v1/wallets/687864856050/transactions:search?skip=0&limit=50`, {
    method: "POST",         
    headers: {
        "Authorization": `Bearer ${access_token}`,
        "Content-Type": "application/json; charset=utf-8"
    },
});