Wallet to Wallet Transfers
curl --request PUT \
--url https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fromAccount": "<string>",
"toAccount": "<string>",
"amount": 123,
"transactionReference": "<string>",
"remarks": "<string>"
}
'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet"
payload = {
"fromAccount": "<string>",
"toAccount": "<string>",
"amount": 123,
"transactionReference": "<string>",
"remarks": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromAccount: '<string>',
toAccount: '<string>',
amount: 123,
transactionReference: '<string>',
remarks: '<string>'
})
};
fetch('https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet', 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/wallet/transaction/v2/wallet-to-wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'fromAccount' => '<string>',
'toAccount' => '<string>',
'amount' => 123,
'transactionReference' => '<string>',
'remarks' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet"
payload := strings.NewReader("{\n \"fromAccount\": \"<string>\",\n \"toAccount\": \"<string>\",\n \"amount\": 123,\n \"transactionReference\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fromAccount\": \"<string>\",\n \"toAccount\": \"<string>\",\n \"amount\": 123,\n \"transactionReference\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fromAccount\": \"<string>\",\n \"toAccount\": \"<string>\",\n \"amount\": 123,\n \"transactionReference\": \"<string>\",\n \"remarks\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": "00",
"success": true,
"message": "Transfer processed successfully",
"data": 0
}
{
"code": "401",
"success": false,
"message": "x-api-key is missing in the header",
"data": null
}
{
"code":"-999",
"success":false,
"message":"Insufficient funds in the from wallet",
"data":null
}
{
"code": "-2",
"success": false,
"message": "Transaction amount exceeds single debit limit of 100000.00",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
Wallet
Wallet to Wallet Transfers
This endpoint enables fund transfers between wallets within the same organization profile.
It can be used for:
- Allowing customers to send funds to your organization wallet(s) and vice versa.
- Collecting charges or fees from customer wallets.
- Performing intra-organization transfers between customer wallets and organization wallets.
- Any use case that involves movement of funds within your organization.
Each request must include a unique transactionReference. We recommend using a GUID or any randomly generated unique string of at least 10 characters.
Transfers are instant. A successful response means the transfer has been completed immediately. For verification, a dedicated requery endpoint is available to check the status of any transaction. See the next section for details.
PUT
/
wallets
/
wallet
/
transaction
/
v2
/
wallet-to-wallet
Wallet to Wallet Transfers
curl --request PUT \
--url https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"fromAccount": "<string>",
"toAccount": "<string>",
"amount": 123,
"transactionReference": "<string>",
"remarks": "<string>"
}
'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet"
payload = {
"fromAccount": "<string>",
"toAccount": "<string>",
"amount": 123,
"transactionReference": "<string>",
"remarks": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromAccount: '<string>',
toAccount: '<string>',
amount: 123,
transactionReference: '<string>',
remarks: '<string>'
})
};
fetch('https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet', 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/wallet/transaction/v2/wallet-to-wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'fromAccount' => '<string>',
'toAccount' => '<string>',
'amount' => 123,
'transactionReference' => '<string>',
'remarks' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet"
payload := strings.NewReader("{\n \"fromAccount\": \"<string>\",\n \"toAccount\": \"<string>\",\n \"amount\": 123,\n \"transactionReference\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fromAccount\": \"<string>\",\n \"toAccount\": \"<string>\",\n \"amount\": 123,\n \"transactionReference\": \"<string>\",\n \"remarks\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/v2/wallet-to-wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"fromAccount\": \"<string>\",\n \"toAccount\": \"<string>\",\n \"amount\": 123,\n \"transactionReference\": \"<string>\",\n \"remarks\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": "00",
"success": true,
"message": "Transfer processed successfully",
"data": 0
}
{
"code": "401",
"success": false,
"message": "x-api-key is missing in the header",
"data": null
}
{
"code":"-999",
"success":false,
"message":"Insufficient funds in the from wallet",
"data":null
}
{
"code": "-2",
"success": false,
"message": "Transaction amount exceeds single debit limit of 100000.00",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
string
required
The source account number for the transfer. Example: “3025831139”
string
required
The destination account number for the transfer. Example: “211651183”
number
required
The amount to transfer. Example: 100000
string
required
A unique reference identifier for the transaction. Example:
“retw33344556670900”
string
Additional notes or description for the transaction. Remarks here should not
be more than 100 characters. Example: “For Holidays”
{
"code": "00",
"success": true,
"message": "Transfer processed successfully",
"data": 0
}
{
"code": "401",
"success": false,
"message": "x-api-key is missing in the header",
"data": null
}
{
"code":"-999",
"success":false,
"message":"Insufficient funds in the from wallet",
"data":null
}
{
"code": "-2",
"success": false,
"message": "Transaction amount exceeds single debit limit of 100000.00",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
⌘I