Usage
View as Markdown

A meter’s aggregate for one customer over [from, to)

Needs the usage:read scope, or a full-access key. About scopes

GET
/api/v1/meter-events/summary

Authorization

Authorization
Required
Bearer <token>

An API key: gpy_test_… or gpy_live_… (or an agent key, agk_…).

In: header

Query Parameters

meter
Required
string

customer_idstring

Format: "uuid"

customer_external_idstring

from
Required
string

Format: "date-time"

to
Required
string

Format: "date-time"
curl -X GET "https://globalymint.com/api/v1/meter-events/summary?meter=string&customer_id=3fa85f64-5717-4562-b3fc-2c963f66afa6&customer_external_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z" \
  -H "Authorization: Bearer <token>"

The aggregate.

{
  "data": {
    "meter": "string",
    "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "aggregation": "sum",
    "from": "2019-08-24T14:15:22Z",
    "to": "2019-08-24T14:15:22Z",
    "value": 0
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}