List Accounts with Filtering
curl --request GET \
--url http://localhost:8080/api/v1/accountsimport requests
url = "http://localhost:8080/api/v1/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/api/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"account_name": "<string>",
"account_number": "<string>",
"account_type": "CURRENT",
"available_balance": "1000.50",
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"current_balance": "1000.50",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"opened_date": "2023-11-07T05:31:56Z",
"reserved_balance": "0.00",
"status": "PENDING",
"updated_at": "2023-11-07T05:31:56Z",
"closed_date": "2023-11-07T05:31:56Z",
"daily_limit": "10000.00",
"description": "<string>",
"external_account_id": "<string>",
"last_activity_date": "2023-11-07T05:31:56Z",
"monthly_limit": "50000.00",
"yearly_limit": "500000.00"
}
]Accounts
List Accounts with Filtering
List accounts with optional filters (client_id, account_type, status, currency, and a case-insensitive search) and pagination (limit default 50, max 100). Sorted newest first.
GET
/
api
/
v1
/
accounts
List Accounts with Filtering
curl --request GET \
--url http://localhost:8080/api/v1/accountsimport requests
url = "http://localhost:8080/api/v1/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/api/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v1/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"account_name": "<string>",
"account_number": "<string>",
"account_type": "CURRENT",
"available_balance": "1000.50",
"client_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"current_balance": "1000.50",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"opened_date": "2023-11-07T05:31:56Z",
"reserved_balance": "0.00",
"status": "PENDING",
"updated_at": "2023-11-07T05:31:56Z",
"closed_date": "2023-11-07T05:31:56Z",
"daily_limit": "10000.00",
"description": "<string>",
"external_account_id": "<string>",
"last_activity_date": "2023-11-07T05:31:56Z",
"monthly_limit": "50000.00",
"yearly_limit": "500000.00"
}
]Query Parameters
Account Type - Different types of accounts that can be created
Available options:
CURRENT, SAVINGS, ESCROW Account Status - Current status of the account
Available options:
PENDING, ACTIVE, SUSPENDED, CLOSED Response
List of accounts
Account Type - Different types of accounts that can be created
Available options:
CURRENT, SAVINGS, ESCROW Example:
"1000.50"
Example:
"1000.50"
Example:
"0.00"
Account Status - Current status of the account
Available options:
PENDING, ACTIVE, SUSPENDED, CLOSED Example:
"10000.00"
Example:
"50000.00"
Example:
"500000.00"