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

**curl**

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

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `code` (string, required)
- `name` (string, required)
- `daysBetweenAttempts` (number, required)
- `maxAttempts` (number, required)
- `campaignId` (string | null)
- `terminalAction` (string | null)
- `isDefault` (boolean | null)
- `description` (string | null)
- `attemptSchedules` (object[] | null)
- `thresholds` (object[] | null)
- `metadata` (object | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "code": "string",
  "name": "string",
  "daysBetweenAttempts": 0,
  "maxAttempts": 0,
  "campaignId": "string",
  "terminalAction": "none",
  "isDefault": true,
  "description": "string",
  "attemptSchedules": [
    {
      "attemptNumber": 0,
      "daysAfterPrevious": 0
    }
  ],
  "thresholds": [
    {
      "currency": "string",
      "amountCents": 0
    }
  ],
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "campaignId": "string",
    "code": "string",
    "name": "string",
    "daysBetweenAttempts": 0,
    "maxAttempts": 0,
    "terminalAction": "none",
    "status": "active",
    "isDefault": true,
    "createdAt": "string",
    "updatedAt": "string",
    "metadata": {
      "property1": "string",
      "property2": "string"
    },
    "description": "string",
    "attemptSchedules": [
      {
        "attemptNumber": 0,
        "daysAfterPrevious": 0
      }
    ],
    "thresholds": [
      {
        "currency": "string",
        "amountCents": 0
      }
    ],
    "archivedAt": "string"
  },
  "requestId": "string"
}
```
