Skip to content
Payments docs are in beta — the OpenAPI contract is the source of truth.API reference
VortexPayments
Esc
↑↓navigate↵open⌘Jpreview

POST /v1/dunning/run

POST/v1/dunning/run
Authorization
x-api-keyAPI key · headerrequired
or
AuthorizationBearer token · headerrequired
Query parameters
environmentstring
Allowed:sandboxproduction
merchantAccountIdstring
min length 1
Header parameters
Idempotency-Keystring

Required for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.

min length 1
Request body
requiredapplication/json
environmentstring | null
Show properties
Any of:
string
string
null
null
merchantAccountIdstring | null
Show properties
Any of:
string
string
null
null
nowstring | null
Show properties
Any of:
string
string
null
null
limitnumber | null
Show properties
Any of:
number
number
null
null
autoCollectboolean | null
Show properties
Any of:
boolean
boolean
null
null
actorIdstring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

dataobjectrequired
Show properties
considerednumberrequired
createdobject[]required
Show properties
Array of object
invoiceIdstringrequired
min length 1
paymentRequestIdstringrequired
min length 1
amountRemainingnumberrequired
collectionsobject[]required
Show properties
Array of object
invoiceIdstringrequired
min length 1
paymentRequestIdstringrequired
min length 1
statusstringrequired
Allowed:succeededpartialfailedpendingskipped
reasonstring | null
Show properties
Any of:
string
string
null
null
skippedobject[]required
Show properties
Array of object
invoiceIdstringrequired
min length 1
reasonstringrequired
min length 1
customerIdstring | null
Show properties
Any of:
string
string
null
null
billingAccountIdstring | null
Show properties
Any of:
string
string
null
null
existingPaymentRequestIdstring | null
Show properties
Any of:
string
string
null
null
campaignIdstring | null
Show properties
Any of:
string
string
null
null
campaignSourcestring | null
Show properties
Any of:
string
string
null
null
requestIdstringrequired
min length 1
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl "https://api.vortex.nyc/v1/dunning/run?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
Response
{
  "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"
}