Get Wallet by Wallet ID
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/{walletId} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/{walletId}"
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/{walletId}', 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/{walletId}",
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/{walletId}"
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/{walletId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/{walletId}")
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": "ed2876a2-3a17-11f0-97d7-7c1e52753c35",
"walletGroupId": "b012627c-41f2-11f0-97d7-7c1e52753c35",
"customerId": "21a345ab-3a11-11f0-97d7-7c1e52753c35",
"availableBalance": 1400,
"ledgerBalance": 1400,
"walletRestrictionId": null,
"walletClassificationId": "2c02427d-90a2-46fa-afce-a9c2cc720a09",
"currencyId": "45852f0c-84fa-410c-b66c-1ffec56e5cd8",
"isInternal": false,
"isDefault": true,
"name": "John Doe",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710067201",
"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 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 ID
The endpoint retrieves the details of a specific wallet using its unique wallet ID.
GET
/
wallets
/
get
/
wallet
/
{walletId}
Get Wallet by Wallet ID
curl --request GET \
--url https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/{walletId} \
--header 'x-api-key: <api-key>'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/{walletId}"
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/{walletId}', 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/{walletId}",
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/{walletId}"
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/{walletId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/get/wallet/{walletId}")
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": "ed2876a2-3a17-11f0-97d7-7c1e52753c35",
"walletGroupId": "b012627c-41f2-11f0-97d7-7c1e52753c35",
"customerId": "21a345ab-3a11-11f0-97d7-7c1e52753c35",
"availableBalance": 1400,
"ledgerBalance": 1400,
"walletRestrictionId": null,
"walletClassificationId": "2c02427d-90a2-46fa-afce-a9c2cc720a09",
"currencyId": "45852f0c-84fa-410c-b66c-1ffec56e5cd8",
"isInternal": false,
"isDefault": true,
"name": "John Doe",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710067201",
"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 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 wallet. Example:
“3fa85f64-5717-4562-b3fc-2c963f66afa6”
{
"code": "00",
"success": true,
"message": "Retrieved Successfully",
"data": {
"id": "ed2876a2-3a17-11f0-97d7-7c1e52753c35",
"walletGroupId": "b012627c-41f2-11f0-97d7-7c1e52753c35",
"customerId": "21a345ab-3a11-11f0-97d7-7c1e52753c35",
"availableBalance": 1400,
"ledgerBalance": 1400,
"walletRestrictionId": null,
"walletClassificationId": "2c02427d-90a2-46fa-afce-a9c2cc720a09",
"currencyId": "45852f0c-84fa-410c-b66c-1ffec56e5cd8",
"isInternal": false,
"isDefault": true,
"name": "John Doe",
"overdraft": null,
"virtualAccount": {
"accountNumber": "9710067201",
"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 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