Get Transactions
Endpoint for getting all Wallet transactions.
info
Please be aware that this endpoint requires a Wallet API Key.
GET /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/wallet/transaction
Request Query Parameters
Name | Description | Type | Required |
---|---|---|---|
limit | The limit of wallet transactions. | uint64 | Required |
offset | The offset of wallet transactions. | uint64 | Required |
transaction_type | The transaction type of wallet transactions. Possible values: add_funds , payout , wallet_to_wallet . | string | Required |
status | The status of wallet transactions. | string |
Response
Code | Description |
---|---|
200 | Success |
400 | Bad Request / Validation error |
500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
walletTransaction.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
const group_id = '';
const linked_account_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/wallet/transaction`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
walletTransaction.py
import requests
group_id = ""
linked_account_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/revere_pay/" + linked_account_id + "/wallet/transaction"
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
walletTransaction.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
const linked_account_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/revere_pay/" + linked_account_id + "/wallet/transaction"
client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Success Response
{
"data": [
{
"processor_transaction_id": "4d7834e5-68f4-4f85-9b4e-2dd97b6fba0a",
"transaction_type": "wallet_to_wallet",
"description": "Weekly commission",
"amount": 1000,
"balance": 100000,
"status": "settled",
"created_at": "2024-07-20T15:11:16.975339432Z"
}
]
}