Skip to main content
GET
/
v2
/
account
/
usage
Get Usage
curl --request GET \
  --url https://api.stablepay.global/v2/account/usage \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.stablepay.global/llms.txt

Use this file to discover all available pages before exploring further.

Get 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

ParameterTypeDefaultDescription
daysnumber30Number 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

FieldDescription
dateDate (YYYY-MM-DD)
transactionCountCompleted transactions that day
volumeUsdUSD volume
volumeInrINR payouts
feesInrFees collected

Monthly Breakdown

FieldDescription
monthMonth (YYYY-MM)
transactionCountCompleted transactions that month
volumeUsdUSD volume
volumeInrINR payouts
feesInrFees collected
Monthly breakdown includes the last 12 months of data.