On DarajaPay Kenya when you create an account, you get a service wallet, this wallet is used to fund your service usage like payments transaction costs, SMS, WhatsApp and withdrawals
API Method
This endpoint is used to query for your service wallet balance
GEThttps://darajapay.com/api/v1/wallets
Query Parameters
Name
Type
Description
wallet_type*
String
Value : service_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=service_wallet";
client.DefaultRequestHeaders.Add("Authorization", "Basic YOUR_API_KEY");
var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}