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

POST/v1/usage-thresholds
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
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
environmentstring | null
Show properties
Any of:
string
string
null
null
merchantAccountIdstring | null
Show properties
Any of:
string
string
null
null
meterIdstringrequired
min length 1
thresholdValuenumberrequired
customerIdstring | null
Show properties
Any of:
string
string
null
null
thresholdIdstring | null
Show properties
Any of:
string
string
null
null
Responses
201

Success

dataobjectrequired
Show properties
thresholdIdstringrequired
min length 1
meterIdstringrequired
min length 1
thresholdValuenumberrequired
createdAtstringrequired
min length 1
customerIdstring | null
Show properties
Any of:
string
string
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/usage-thresholds?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "data": {
    "thresholdId": "string",
    "meterId": "string",
    "thresholdValue": 0,
    "createdAt": "string",
    "customerId": "string",
    "archivedAt": "string"
  },
  "requestId": "string"
}