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

**curl**

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

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `customerId` (string, required)
- `billingAccountId` (string, required)
- `meterId` (string, required)
- `eventName` (string, required)
- `quantity` (number, required)
- `occurredAt` (string, required)
- `usageEventId` (string | null)
- `subscriptionId` (string | null)
- `subscriptionItemId` (string | null)
- `metadata` (object | null)
- `idempotencyKey` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "customerId": "string",
  "billingAccountId": "string",
  "meterId": "string",
  "eventName": "string",
  "quantity": 0,
  "occurredAt": "string",
  "usageEventId": "string",
  "subscriptionId": "string",
  "subscriptionItemId": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "idempotencyKey": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "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"
  },
  "requestId": "string"
}
```
