---
search:
  tags:
    - usage
    - POST
seo:
  description: >-
    Reference for the POST /v1/usage-thresholds endpoint in the Vortex Payments
    API.
sidebar:
  label: POST /v1/usage-thresholds
  badge: POST
title: POST /v1/usage-thresholds
type: openapi-operation
---
`POST /v1/usage-thresholds`

**curl**

```bash
curl "https://api.vortex.nyc/v1/usage-thresholds?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

```ts
import { createBillingUsageThreshold, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createBillingUsageThreshold({
  client: vortex,
  query: { environment: "...", merchantAccountId: "..." },
  body: {...},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `meterId` (string, required)
- `thresholdValue` (number, required)
- `customerId` (string | null)
- `thresholdId` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "meterId": "string",
  "thresholdValue": 0,
  "customerId": "string",
  "thresholdId": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "thresholdId": "string",
    "meterId": "string",
    "thresholdValue": 0,
    "createdAt": "string",
    "customerId": "string",
    "archivedAt": "string"
  },
  "requestId": "string"
}
```
