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

POST /v1/meters

POST/v1/meters
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Header parameters
Idempotency-Keystring

Required for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.

min length 1
Request body
requiredapplication/json
environmentstringrequired
Allowed:sandboxproduction
merchantAccountIdstringrequired
min length 1
namestringrequired
min length 1
eventNamestringrequired
min length 1
aggregationTypestringrequired
Allowed:sumcountmax
windowGrainstringrequired
Allowed:dayweekmonth
meterIdstring | null
Show properties
Any of:
string
string
null
null
filterSchemaobject | null
Show properties
Any of:
object
object
null
null
Responses
201

Success

dataobjectrequired
Show properties
meterIdstringrequired
min length 1
namestringrequired
min length 1
eventNamestringrequired
min length 1
aggregationTypestringrequired
Allowed:sumcountmax
windowGrainstringrequired
Allowed:dayweekmonth
createdAtstringrequired
min length 1
filterSchemaobject | null
Show properties
Any of:
object
object
null
null
archivedAtstring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/meters?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"meterId":"meter_api_calls","name":"API calls","eventName":"api.call","aggregationType":"sum","windowGrain":"month"}'
Response
{
  "data": {
    "meterId": "string",
    "name": "string",
    "eventName": "string",
    "aggregationType": "sum",
    "windowGrain": "day",
    "createdAt": "string",
    "filterSchema": {
      "property1": "string",
      "property2": "string"
    },
    "archivedAt": "string"
  },
  "requestId": "string"
}

Was this page helpful?