Whats91
Developers

Read current customer wallet balance for billing reconciliation.

Wallet

Summary

Read current customer wallet balance for billing reconciliation.

Prerequisites

  • Authorization: Bearer w91_live_xxx
  • Content-Type: application/json for JSON requests

Endpoint: GET /api/v2/billing/wallet. Use this endpoint to read the current wallet balance and billing account status exposed by Whats91.

GET/api/v2/billing/wallet
ParameterTypeRequiredDescription
senderIdstringOptionalOptional WhatsApp sender phone number when wallet context is sender scoped.
Get wallet
curl "https://graph.whats91.com/api/v2/billing/wallet" \
  -H "Authorization: Bearer w91_live_xxx"
Wallet response
{
  "success": true,
  "message": "Wallet retrieved",
  "data": {
    "wallet": {
      "balance": 1250.75,
      "currency": "INR",
      "status": "ACTIVE"
    }
  }
}

SDK Examples

Use these examples as starting points for server-side implementations.

cURL
curl -X GET "https://graph.whats91.com/api/v2/billing/wallet" \
  -H "Authorization: Bearer w91_live_xxx"
Node.js
const response = await fetch("https://graph.whats91.com/api/v2/billing/wallet", {
  method: "GET",
  headers: {
    "Authorization": "Bearer w91_live_xxx",
    "Content-Type": "application/json"
  }
});

const data = await response.json();
console.log(data);
PHP
$ch = curl_init("https://graph.whats91.com/api/v2/billing/wallet");
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer w91_live_xxx",
    "Content-Type: application/json"
  ]
]);

$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests

response = requests.request(
    "GET",
    "https://graph.whats91.com/api/v2/billing/wallet",
    headers={
        "Authorization": "Bearer w91_live_xxx",
        "Content-Type": "application/json",
    }
)

print(response.json())
C#
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer w91_live_xxx");

var request = new HttpRequestMessage(HttpMethod.Get, "https://graph.whats91.com/api/v2/billing/wallet");

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());

Related APIs