Get Wallet By Customer ID
curl --request GET \
--url https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": [
{
"id": "22353aea-8a48-11f0-a7cf-0274f77d4a81",
"walletGroupId": null,
"customerId": "15d8ac99-83ef-11f0-a7cf-0274f77d4a81",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": "b9606a2c-7e5b-11f0-a7cf-0274f77d4a81",
"walletClassificationId": "4f734eea-b0d8-4c6c-8738-a5e13668c32f",
"currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"isInternal": false,
"isDefault": false,
"name": "Tchnology",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710005689",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
},
{
"id": "28aa090a-8a48-11f0-a7cf-0274f77d4a81",
"walletGroupId": null,
"customerId": "15d8ac99-83ef-11f0-a7cf-0274f77d4a81",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": "b9606a2c-7e5b-11f0-a7cf-0274f77d4a81",
"walletClassificationId": "4f734eea-b0d8-4c6c-8738-a5e13668c32f",
"currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"isInternal": false,
"isDefault": false,
"name": "Investments",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710005698",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
}
]
}
{
"code": "400",
"success": false,
"message": "Invalid Customer ID specified",
"data": null
}
{
"code": "404",
"success": false,
"message": "Invalid Customer",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
Wallet
Get Wallet By Customer ID
The endpoint retrieves the details of a specific wallet using its associated account number..
GET
/
WaasCore
/
api
/
v1
/
wallets
/
get
/
list
/
{customerId}
Get Wallet By Customer ID
curl --request GET \
--url https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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 := "https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/WaasCore/api/v1/wallets/get/list/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": [
{
"id": "22353aea-8a48-11f0-a7cf-0274f77d4a81",
"walletGroupId": null,
"customerId": "15d8ac99-83ef-11f0-a7cf-0274f77d4a81",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": "b9606a2c-7e5b-11f0-a7cf-0274f77d4a81",
"walletClassificationId": "4f734eea-b0d8-4c6c-8738-a5e13668c32f",
"currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"isInternal": false,
"isDefault": false,
"name": "Tchnology",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710005689",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
},
{
"id": "28aa090a-8a48-11f0-a7cf-0274f77d4a81",
"walletGroupId": null,
"customerId": "15d8ac99-83ef-11f0-a7cf-0274f77d4a81",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": "b9606a2c-7e5b-11f0-a7cf-0274f77d4a81",
"walletClassificationId": "4f734eea-b0d8-4c6c-8738-a5e13668c32f",
"currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"isInternal": false,
"isDefault": false,
"name": "Investments",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710005698",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
}
]
}
{
"code": "400",
"success": false,
"message": "Invalid Customer ID specified",
"data": null
}
{
"code": "404",
"success": false,
"message": "Invalid Customer",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
Unique identifier for the customer
{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": [
{
"id": "22353aea-8a48-11f0-a7cf-0274f77d4a81",
"walletGroupId": null,
"customerId": "15d8ac99-83ef-11f0-a7cf-0274f77d4a81",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": "b9606a2c-7e5b-11f0-a7cf-0274f77d4a81",
"walletClassificationId": "4f734eea-b0d8-4c6c-8738-a5e13668c32f",
"currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"isInternal": false,
"isDefault": false,
"name": "Tchnology",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710005689",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
},
{
"id": "28aa090a-8a48-11f0-a7cf-0274f77d4a81",
"walletGroupId": null,
"customerId": "15d8ac99-83ef-11f0-a7cf-0274f77d4a81",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": "b9606a2c-7e5b-11f0-a7cf-0274f77d4a81",
"walletClassificationId": "4f734eea-b0d8-4c6c-8738-a5e13668c32f",
"currencyId": "fd5e474d-bb42-4db1-ab74-e8d2a01047e9",
"isInternal": false,
"isDefault": false,
"name": "Investments",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710005698",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
}
]
}
{
"code": "400",
"success": false,
"message": "Invalid Customer ID specified",
"data": null
}
{
"code": "404",
"success": false,
"message": "Invalid Customer",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
⌘I