Skip to content
Payments docs are in beta — the OpenAPI contract is the source of truth.API reference
VortexPayments
Esc
↑↓navigate↵open⌘Jpreview

GET /v1/meters/{meterId}/aggregate

GET/v1/meters/{meterId}/aggregate
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Path parameters
meterIdstringrequired
min length 1
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
customerIdstring
min length 1
atstring
min length 1
limitstring
matches ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
cursorstring
min length 1
Responses
200

Success

dataobjectrequired
Show properties
meterIdstringrequired
min length 1
eventNamestringrequired
min length 1
aggregationTypestringrequired
Allowed:sumcountmax
windowGrainstringrequired
Allowed:dayweekmonth
windowStartAtstringrequired
min length 1
windowEndAtstringrequired
min length 1
aggregatedQuantitynumberrequired
customersobjectrequired
Show properties
itemsobject[]required
Show properties
Array of object
customerIdstringrequired
min length 1
aggregatedQuantitynumberrequired
hasMorebooleanrequired
totalnumberrequired
nextCursorstring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Request
curl "https://api.vortex.nyc/v1/meters/{meterId}/aggregate?customerId=...&at=...&environment=sandbox&merchantAccountId=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "meterId": "string",
    "eventName": "string",
    "aggregationType": "sum",
    "windowGrain": "day",
    "windowStartAt": "string",
    "windowEndAt": "string",
    "aggregatedQuantity": 0,
    "customers": {
      "items": [
        {
          "customerId": "string",
          "aggregatedQuantity": 0
        }
      ],
      "hasMore": true,
      "total": 0,
      "nextCursor": "string"
    }
  },
  "requestId": "string"
}

Was this page helpful?