> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# The tenant's consumption ledger rollup — documents processed and generated,…

> Aggregated consumption for the period (defaults to the last 30 days when from/to are omitted)

### Query parameters

**from** `string,null (date-time)`

Period start (RFC 3339). Defaults to 30 days ago.

**to** `string,null (date-time)`

Period end, exclusive (RFC 3339). Defaults to now.

### Response

`object`

**success** `boolean` *required*

**data** `UsageSummary` *required*

Aggregated consumption for a tenant over a period.

**UsageSummary**

**by\_kind** `object` *required*

Totals per action kind. Additional keys map to values of type `integer (int64)`.

**by\_partner** `object` *required*

Totals per partner. Additional keys map to values of type `integer (int64)`.

**by\_transaction\_set** `object` *required*

Totals per transaction set (documents only). Additional keys map to values of type `integer (int64)`.

**tenant\_id** `string` *required*

**total** `integer (int64)` *required*

**period** `object` *required*

The resolved reporting window.

**period**

**from** `string (date-time)` *required*

**to** `string (date-time)` *required*

### Status codes

| Code | Meaning |
| - | - |
| `200` | Aggregated consumption for the period (defaults to the last 30 days when `from`/`to` are omitted) |
| `403` | Admin or tenant credential required |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request GET \
  --url 'https://api.edi.stateset.com/v1/usage' \
  --header "Authorization: Bearer $EDI_API_TOKEN"
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "by_kind": {},
    "by_partner": {},
    "by_transaction_set": {},
    "tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "total": 102
  },
  "period": {
    "from": "2026-08-31T14:22:05Z",
    "to": "2026-08-31T14:22:05Z"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.