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

**curl**

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

**TypeScript**

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

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

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

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "asOf": "string",
  "idempotencyKey": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "expiredGrantCount": 0,
    "terminatedWalletCount": 0,
    "triggeredRuleCount": 0,
    "topUpInvoiceCount": 0
  },
  "requestId": "string"
}
```
