> ## 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

> Get daily and monthly usage breakdown

# Get Usage

Returns detailed usage breakdown by day and month. Useful for building charts and tracking trends.

## Request

```bash theme={null}
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

```json theme={null}
{
  "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                    |

<Note>
  Monthly breakdown includes the last 12 months of data.
</Note>
