On DarajaPay Kenya when you create an account, you get a payments wallet, this wallet is used to hold funds that customers Pay You via 3rd party services that we have integrated with.
You can withdraw funds held in your payments wallet to MPESA, Airtel Money, T-Kash, or Bank Accounts.
API Method
This endpoint is used to query for your payments wallet balance
GEThttps://darajapay.com/api/v1/wallets
Query Parameters
Name
Type
Description
wallet_type*
String
Value : payment_wallet
Headers
Name
Type
Description
Authorization:*
String
Basic basicAuthToken
Response
200: OK Upon successful request you will get a JSON response as shown below
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var client = new HttpClient();
var url = "https://darajapay.com/api/v1/wallets?wallet_type=payments_wallet";
client.DefaultRequestHeaders.Add("Authorization", "Basic YOUR_API_KEY");
var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}