Export transactions

This method filters the transactions of the wallet provided, based on the criteria entered and outputs the result in excel form (Open XML).

The file type is .xlsx and the content type of the response is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.

HTTP Request

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

URI Parameters

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

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"
    ]
}

Example

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

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