Post Wallet Transaction
curl --request PUT \
--url https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": 123,
"productId": "<string>",
"organizationId": "<string>",
"amount": 123,
"fee": 123,
"postedDate": "<string>",
"valueDate": "<string>",
"transactionReference": "<string>",
"walletId": "<string>",
"customerId": "<string>",
"isPosted": true,
"direction": "<string>",
"remarks": "<string>",
"currency": "<string>",
"batchReference": "<string>",
"accountNumber": "<string>"
}
'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post"
payload = {
"id": 123,
"productId": "<string>",
"organizationId": "<string>",
"amount": 123,
"fee": 123,
"postedDate": "<string>",
"valueDate": "<string>",
"transactionReference": "<string>",
"walletId": "<string>",
"customerId": "<string>",
"isPosted": True,
"direction": "<string>",
"remarks": "<string>",
"currency": "<string>",
"batchReference": "<string>",
"accountNumber": "<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({
id: 123,
productId: '<string>',
organizationId: '<string>',
amount: 123,
fee: 123,
postedDate: '<string>',
valueDate: '<string>',
transactionReference: '<string>',
walletId: '<string>',
customerId: '<string>',
isPosted: true,
direction: '<string>',
remarks: '<string>',
currency: '<string>',
batchReference: '<string>',
accountNumber: '<string>'
})
};
fetch('https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post', 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/account-number/post",
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([
'id' => 123,
'productId' => '<string>',
'organizationId' => '<string>',
'amount' => 123,
'fee' => 123,
'postedDate' => '<string>',
'valueDate' => '<string>',
'transactionReference' => '<string>',
'walletId' => '<string>',
'customerId' => '<string>',
'isPosted' => true,
'direction' => '<string>',
'remarks' => '<string>',
'currency' => '<string>',
'batchReference' => '<string>',
'accountNumber' => '<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/account-number/post"
payload := strings.NewReader("{\n \"id\": 123,\n \"productId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"amount\": 123,\n \"fee\": 123,\n \"postedDate\": \"<string>\",\n \"valueDate\": \"<string>\",\n \"transactionReference\": \"<string>\",\n \"walletId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"isPosted\": true,\n \"direction\": \"<string>\",\n \"remarks\": \"<string>\",\n \"currency\": \"<string>\",\n \"batchReference\": \"<string>\",\n \"accountNumber\": \"<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/account-number/post")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"productId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"amount\": 123,\n \"fee\": 123,\n \"postedDate\": \"<string>\",\n \"valueDate\": \"<string>\",\n \"transactionReference\": \"<string>\",\n \"walletId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"isPosted\": true,\n \"direction\": \"<string>\",\n \"remarks\": \"<string>\",\n \"currency\": \"<string>\",\n \"batchReference\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post")
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 \"id\": 123,\n \"productId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"amount\": 123,\n \"fee\": 123,\n \"postedDate\": \"<string>\",\n \"valueDate\": \"<string>\",\n \"transactionReference\": \"<string>\",\n \"walletId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"isPosted\": true,\n \"direction\": \"<string>\",\n \"remarks\": \"<string>\",\n \"currency\": \"<string>\",\n \"batchReference\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": "200",
"success": true,
"message": "Transaction posted successfully.",
"data": {
// Additional data fields if applicable
}
}
{
"code": "400",
"success": false,
"message": "Invalid request data",
"data": null
}
{
"code": "404",
"success": false,
"message": "Invalid account number and organization",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
Post Wallet Transaction
The endpoint posts a transaction to a specified wallet using the account number..
PUT
/
wallets
/
wallet
/
transaction
/
account-number
/
post
Post Wallet Transaction
curl --request PUT \
--url https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": 123,
"productId": "<string>",
"organizationId": "<string>",
"amount": 123,
"fee": 123,
"postedDate": "<string>",
"valueDate": "<string>",
"transactionReference": "<string>",
"walletId": "<string>",
"customerId": "<string>",
"isPosted": true,
"direction": "<string>",
"remarks": "<string>",
"currency": "<string>",
"batchReference": "<string>",
"accountNumber": "<string>"
}
'import requests
url = "https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post"
payload = {
"id": 123,
"productId": "<string>",
"organizationId": "<string>",
"amount": 123,
"fee": 123,
"postedDate": "<string>",
"valueDate": "<string>",
"transactionReference": "<string>",
"walletId": "<string>",
"customerId": "<string>",
"isPosted": True,
"direction": "<string>",
"remarks": "<string>",
"currency": "<string>",
"batchReference": "<string>",
"accountNumber": "<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({
id: 123,
productId: '<string>',
organizationId: '<string>',
amount: 123,
fee: 123,
postedDate: '<string>',
valueDate: '<string>',
transactionReference: '<string>',
walletId: '<string>',
customerId: '<string>',
isPosted: true,
direction: '<string>',
remarks: '<string>',
currency: '<string>',
batchReference: '<string>',
accountNumber: '<string>'
})
};
fetch('https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post', 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/account-number/post",
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([
'id' => 123,
'productId' => '<string>',
'organizationId' => '<string>',
'amount' => 123,
'fee' => 123,
'postedDate' => '<string>',
'valueDate' => '<string>',
'transactionReference' => '<string>',
'walletId' => '<string>',
'customerId' => '<string>',
'isPosted' => true,
'direction' => '<string>',
'remarks' => '<string>',
'currency' => '<string>',
'batchReference' => '<string>',
'accountNumber' => '<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/account-number/post"
payload := strings.NewReader("{\n \"id\": 123,\n \"productId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"amount\": 123,\n \"fee\": 123,\n \"postedDate\": \"<string>\",\n \"valueDate\": \"<string>\",\n \"transactionReference\": \"<string>\",\n \"walletId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"isPosted\": true,\n \"direction\": \"<string>\",\n \"remarks\": \"<string>\",\n \"currency\": \"<string>\",\n \"batchReference\": \"<string>\",\n \"accountNumber\": \"<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/account-number/post")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": 123,\n \"productId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"amount\": 123,\n \"fee\": 123,\n \"postedDate\": \"<string>\",\n \"valueDate\": \"<string>\",\n \"transactionReference\": \"<string>\",\n \"walletId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"isPosted\": true,\n \"direction\": \"<string>\",\n \"remarks\": \"<string>\",\n \"currency\": \"<string>\",\n \"batchReference\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://waas-staging.embedly.ng/api/v1/wallets/wallet/transaction/account-number/post")
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 \"id\": 123,\n \"productId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"amount\": 123,\n \"fee\": 123,\n \"postedDate\": \"<string>\",\n \"valueDate\": \"<string>\",\n \"transactionReference\": \"<string>\",\n \"walletId\": \"<string>\",\n \"customerId\": \"<string>\",\n \"isPosted\": true,\n \"direction\": \"<string>\",\n \"remarks\": \"<string>\",\n \"currency\": \"<string>\",\n \"batchReference\": \"<string>\",\n \"accountNumber\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": "200",
"success": true,
"message": "Transaction posted successfully.",
"data": {
// Additional data fields if applicable
}
}
{
"code": "400",
"success": false,
"message": "Invalid request data",
"data": null
}
{
"code": "404",
"success": false,
"message": "Invalid account number and organization",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}
Request Body
number
Internal identifier for the transaction. Example: 0
string
required
Unique identifier for the product associated with the transaction.
Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”
string
Unique identifier for the organization processing the transaction.
Example: “3fa85f64-5717-4562-b3fc-2c963f66afa6”
number
required
The amount of the transaction. Example: 200
number
The fee charged for the transaction. Example: 1.0
string
The date and time when the transaction was posted. Example:
“2025-03-20T18:28:13.015Z”
string
The date and time when the transaction takes effect. Example:
“2025-03-20T18:28:13.015Z”
string
A unique reference identifier for the transaction. Example: “Rf399596950”
string
Unique identifier for the wallet involved in the transaction. Example:
“3fa85f64-5717-4562-b3fc-2c963f66afa6”
string
Unique identifier for the customer who owns the wallet. Example:
“3fa85f64-5717-4562-b3fc-2c963f66afa6”
boolean
Indicates whether the transaction has been posted. Example: true
string
required
The direction of the transaction (CREDIT/DEBIT).
string
Additional notes or description for the transaction. Example: “Dog food”
string
required
The currency code for the transaction. Example: “USD”
string
Reference number for batch transactions. Example: “5869999”
string
The account number associated with the transaction. Example: “3025831129”
{
"code": "200",
"success": true,
"message": "Transaction posted successfully.",
"data": {
// Additional data fields if applicable
}
}
{
"code": "400",
"success": false,
"message": "Invalid request data",
"data": null
}
{
"code": "404",
"success": false,
"message": "Invalid account number and organization",
"data": null
}
{
"code": "401",
"success": false,
"message": "Unauthorized access",
"data": null
}
{
"code": "500",
"success": false,
"message": "An unexpected error occurred",
"data": null
}