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/usage-events

GET/v1/usage-events
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
customerIdstring
min length 1
meterIdstring
min length 1
eventNamestring
min length 1
limitstring
matches ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
cursorstring
min length 1
Responses
200

Success

dataobjectrequired
Show properties
itemsobject[]required
Show properties
Array of object
usageEventIdstringrequired
min length 1
idempotencyKeystring | null
Show properties
Any of:
string
string
null
null
customerIdstringrequired
min length 1
billingAccountIdstringrequired
min length 1
meterIdstringrequired
min length 1
eventNamestringrequired
min length 1
quantitynumberrequired
occurredAtstringrequired
min length 1
ingestedAtstringrequired
min length 1
metadataobjectrequired
subscriptionIdstring | null
Show properties
Any of:
string
string
null
null
subscriptionItemIdstring | null
Show properties
Any of:
string
string
null
null
hasMorebooleanrequired
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/usage-events?environment=...&merchantAccountId=...&customerId=...&meterId=...&eventName=...&limit=...&cursor=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
Response
{
  "data": {
    "items": [
      {
        "usageEventId": "string",
        "idempotencyKey": "string",
        "customerId": "string",
        "billingAccountId": "string",
        "meterId": "string",
        "eventName": "string",
        "quantity": 0,
        "occurredAt": "string",
        "ingestedAt": "string",
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "subscriptionId": "string",
        "subscriptionItemId": "string"
      }
    ],
    "hasMore": true,
    "nextCursor": "string"
  },
  "requestId": "string"
}

Was this page helpful?