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

**curl**

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

**TypeScript**

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

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

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

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `now` (string | null)
- `limit` (number | null)
- `autoCollect` (boolean | null)
- `actorId` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "now": "string",
  "limit": 0,
  "autoCollect": true,
  "actorId": "string"
}
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "considered": 0,
    "created": [
      {
        "invoiceId": "string",
        "paymentRequestId": "string",
        "amountRemaining": 0
      }
    ],
    "collections": [
      {
        "invoiceId": "string",
        "paymentRequestId": "string",
        "status": "succeeded",
        "reason": "string"
      }
    ],
    "skipped": [
      {
        "invoiceId": "string",
        "reason": "string",
        "customerId": "string",
        "billingAccountId": "string",
        "existingPaymentRequestId": "string",
        "campaignId": "string",
        "campaignSource": "billing_account"
      }
    ]
  },
  "requestId": "string"
}
```
