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

**curl**

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

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `ruleId` (string | null)
- `walletId` (string | null)
- `trigger` (string, required)
- `interval` (string | null)
- `thresholdCredits` (string | null)
- `method` (string | null)
- `paidCredits` (boolean | null)
- `grantedCredits` (string | null)
- `targetCredits` (string | null)
- `priceId` (string | null)
- `metadata` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "ruleId": "string",
  "walletId": "string",
  "trigger": "interval",
  "interval": "weekly",
  "thresholdCredits": "string",
  "method": "fixed",
  "paidCredits": true,
  "grantedCredits": "string",
  "targetCredits": "string",
  "priceId": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "ruleId": "string",
    "walletId": "string",
    "trigger": "interval",
    "interval": "weekly",
    "thresholdCredits": "string",
    "method": "fixed",
    "paidCredits": true,
    "grantedCredits": "string",
    "targetCredits": "string",
    "priceId": "string",
    "startedAt": "string",
    "lastTriggeredAt": "string",
    "terminatedAt": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "createdAt": "string",
    "updatedAt": "string"
  },
  "requestId": "string"
}
```
