Get Usage
curl --request GET \
--url https://api.stablepay.global/v2/account/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stablepay.global/v2/account/usage"
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/usage', 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/usage",
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/usage"
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/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/account/usage")
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 Usage
Get daily and monthly usage breakdown
GET
/
v2
/
account
/
usage
Get Usage
curl --request GET \
--url https://api.stablepay.global/v2/account/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stablepay.global/v2/account/usage"
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/usage', 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/usage",
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/usage"
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/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stablepay.global/v2/account/usage")
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 Usage
Returns detailed usage breakdown by day and month. Useful for building charts and tracking trends.Request
curl "https://api.stablepay.global/v2/account/usage?days=30" \
-H "Authorization: Bearer YOUR_API_KEY"
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
days | number | 30 | Number of days for daily breakdown (max 90) |
Response
{
"success": true,
"data": {
"daily": [
{
"date": "2025-06-15",
"transactionCount": 45,
"volumeUsd": 9500,
"volumeInr": 802750,
"feesInr": 4013.75
},
{
"date": "2025-06-14",
"transactionCount": 52,
"volumeUsd": 11200,
"volumeInr": 946400,
"feesInr": 4732
}
],
"monthly": [
{
"month": "2025-06",
"transactionCount": 892,
"volumeUsd": 178400,
"volumeInr": 15074800,
"feesInr": 75374
},
{
"month": "2025-05",
"transactionCount": 1245,
"volumeUsd": 249000,
"volumeInr": 21040500,
"feesInr": 105202.50
}
]
}
}
Response Fields
Daily Breakdown
| Field | Description |
|---|---|
date | Date (YYYY-MM-DD) |
transactionCount | Completed transactions that day |
volumeUsd | USD volume |
volumeInr | INR payouts |
feesInr | Fees collected |
Monthly Breakdown
| Field | Description |
|---|---|
month | Month (YYYY-MM) |
transactionCount | Completed transactions that month |
volumeUsd | USD volume |
volumeInr | INR payouts |
feesInr | Fees collected |
Monthly breakdown includes the last 12 months of data.
⌘I
