Get Stats
curl --request GET \
--url https://api.stablepay.global/v2/account/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stablepay.global/v2/account/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stablepay.global/v2/account/stats', 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://api.stablepay.global/v2/account/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stablepay.global/v2/account/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stablepay.global/v2/account/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/account/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAccount
Get Stats
Get transaction and user statistics
GET
/
v2
/
account
/
stats
Get Stats
curl --request GET \
--url https://api.stablepay.global/v2/account/stats \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stablepay.global/v2/account/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stablepay.global/v2/account/stats', 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://api.stablepay.global/v2/account/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.stablepay.global/v2/account/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.stablepay.global/v2/account/stats")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/account/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyGet Stats
Returns aggregated statistics for your account including user counts, transaction counts, and volume summaries.Request
curl https://api.stablepay.global/v2/account/stats \
-H "Authorization: Bearer YOUR_API_KEY"
Response
{
"success": true,
"data": {
"users": {
"total": 1250,
"kycVerified": 1100,
"kycPending": 150
},
"transactions": {
"total": 5420,
"completed": 5200,
"pending": 45,
"failed": 175
},
"volume": {
"totalUsd": 1250000,
"totalInr": 105625000,
"monthlyUsd": 125000,
"monthlyInr": 10562500
},
"last30Days": {
"transactionCount": 892,
"volumeUsd": 178400,
"avgTransactionUsd": 200
}
}
}
Response Fields
Users
| Field | Description |
|---|---|
total | Total users created |
kycVerified | Users with completed KYC |
kycPending | Users with pending/incomplete KYC |
Transactions
| Field | Description |
|---|---|
total | All-time transaction count |
completed | Successfully completed transactions |
pending | Currently processing transactions |
failed | Failed or cancelled transactions |
Volume
| Field | Description |
|---|---|
totalUsd | All-time USD volume |
totalInr | All-time INR payouts |
monthlyUsd | Current month USD volume |
monthlyInr | Current month INR payouts |
Last 30 Days
| Field | Description |
|---|---|
transactionCount | Transactions in last 30 days |
volumeUsd | USD volume in last 30 days |
avgTransactionUsd | Average transaction size |
⌘I
