Get Wallet by Wallet Account Number
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/account/{accountNumber} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/account/{accountNumber}"
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/api/v1/wallets/get/wallet/account/{accountNumber}', 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/api/v1/wallets/get/wallet/account/{accountNumber}",
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/api/v1/wallets/get/wallet/account/{accountNumber}"
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/api/v1/wallets/get/wallet/account/{accountNumber}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/account/{accountNumber}")
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": "d3ewbc11-3c8b-66f0-97d7-7c1e54678c35",
"walletGroupId": null,
"customerId": "b1c8a40b-3c8b-11f0-87d7-7c1e59753c35",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": null,
"walletClassificationId": "2c02427d-90a2-46fa-afce-a9c2cc720a12",
"currencyId": "12345f0c-24fa-410c-b66c-1hhec56e5cd8",
"isInternal": false,
"isDefault": true,
"name": "Maximum Ali",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710123456",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
}
}
{
"code": "400",
"success": false,
"message": "The wallet you have specified does not exist",
"data": null
}
{
"code": "404",
"success": false,
"message": "Account number not found",
"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 Wallet Account Number
The endpoint retrieves the details of a specific wallet using its associated account number..
GET
/
wallets
/
get
/
wallet
/
account
/
{accountNumber}
Get Wallet by Wallet Account Number
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/account/{accountNumber} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/account/{accountNumber}"
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/api/v1/wallets/get/wallet/account/{accountNumber}', 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/api/v1/wallets/get/wallet/account/{accountNumber}",
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/api/v1/wallets/get/wallet/account/{accountNumber}"
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/api/v1/wallets/get/wallet/account/{accountNumber}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/account/{accountNumber}")
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": "d3ewbc11-3c8b-66f0-97d7-7c1e54678c35",
"walletGroupId": null,
"customerId": "b1c8a40b-3c8b-11f0-87d7-7c1e59753c35",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": null,
"walletClassificationId": "2c02427d-90a2-46fa-afce-a9c2cc720a12",
"currencyId": "12345f0c-24fa-410c-b66c-1hhec56e5cd8",
"isInternal": false,
"isDefault": true,
"name": "Maximum Ali",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710123456",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
}
}
{
"code": "400",
"success": false,
"message": "The wallet you have specified does not exist",
"data": null
}
{
"code": "404",
"success": false,
"message": "Account number not found",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
string
required
Unique identifier for the account
{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": {
"id": "d3ewbc11-3c8b-66f0-97d7-7c1e54678c35",
"walletGroupId": null,
"customerId": "b1c8a40b-3c8b-11f0-87d7-7c1e59753c35",
"availableBalance": 0,
"ledgerBalance": 0,
"walletRestrictionId": null,
"walletClassificationId": "2c02427d-90a2-46fa-afce-a9c2cc720a12",
"currencyId": "12345f0c-24fa-410c-b66c-1hhec56e5cd8",
"isInternal": false,
"isDefault": true,
"name": "Maximum Ali",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710123456",
"bankCode": "232",
"bankName": "Sterling Bank"
},
"mobNum": null,
"customerTypeId": "00000000-0000-0000-0000-000000000000"
}
}
{
"code": "400",
"success": false,
"message": "The wallet you have specified does not exist",
"data": null
}
{
"code": "404",
"success": false,
"message": "Account number not found",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
⌘I