RecurringStack Dunning Rule API

The Dunning Rule API provides a powerful way to automate the process of managing delinquent customer subscriptions. Dunning rules allow you to define specific actions that RecurringStack should take when a subscription's invoice becomes overdue, helping to reduce churn and recover revenue. Each dunning rule is associated with a specific product_group. A rule is triggered when an invoice linked to a subscription within that group meets the defined criteria for both the number of days it is overdue (overdue_days) and its outstanding balance (overdue_amount). When the conditions are met, a predefined enforcement_action is automatically executed. Key Features & Concepts Rule Triggers: A rule is activated only when an invoice's overdue status is an exact match for the overdue_days value and the unpaid balance meets or exceeds the specified overdue_amount. Scoped to Product Groups: All rules must be linked to a product_group, ensuring they only apply to subscriptions for products within that group. This allows for different dunning strategies for different product offerings. Multiple Simultaneous Rules: A single product group can have multiple dunning rules. If the conditions for several rules are met simultaneously (e.g., a 'REMIND' and a 'POST' rule for the same number of overdue days), all corresponding actions will be executed. Automated Enforcement Actions: You can configure one of several actions to be taken when a rule is matched: SUSPEND: Suspends the associated subscription. DELETE: Cancels/deletes the associated subscription. REMIND: Sends the standard 'Invoice Reminder' notification to the customer. POST: Sends a POST request with invoice and customer details to a specified URL (post_url) for custom integration or workflow automation. Note: Dunning rules only apply to invoices that are automatically generated for active subscriptions. They do not affect manually created invoices or invoices that are not linked to a subscription.

GitHub OpenAPI

Operations 4

GET /dunningrule/list List all dunning rules #
POST /dunningrule/create Create a new dunning rule #
PATCH /dunningrule/update Update an existing dunning rule #
DELETE /dunningrule/delete Delete an existing dunning rule #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/recurringstack-com:recurringstack-com-dunningrule-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

recurringstack-com-dunningrule-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RecurringStack Dunning Rule API
  description: RecurringStack is a subscription management and business automation platform that provides APIs for customers, products, subscriptions, invoices, payments, marketing automation, account portals, reporting, support operations, and workflow automation.
  version: 1.0.0
  contact:
    name: RecurringStack Support
    url: https://recurringstack.com/docs/api
    email: support@recurringstack.com
  license:
    name: Commercial
servers:
- url: https://api.recurringstack.com
  description: Production API
security:
- X-Api-Key: []
  X-User-Key: []
  X-Brand-Id: []
tags:
- name: DunningRule
  description: 'The Dunning Rule API provides a powerful way to automate the process of managing delinquent customer subscriptions. Dunning rules allow you to define specific actions that RecurringStack should take when a subscription''s invoice becomes overdue, helping to reduce churn and recover revenue.


    Each dunning rule is associated with a specific product_group. A rule is triggered when an invoice linked to a subscription within that group meets the defined criteria for both the number of days it is overdue (overdue_days) and its outstanding balance (overdue_amount). When the conditions are met, a predefined enforcement_action is automatically executed.


    Key Features & Concepts


    Rule Triggers: A rule is activated only when an invoice''s overdue status is an exact match for the overdue_days value and the unpaid balance meets or exceeds the specified overdue_amount.


    Scoped to Product Groups: All rules must be linked to a product_group, ensuring they only apply to subscriptions for products within that group. This allows for different dunning strategies for different product offerings.


    Multiple Simultaneous Rules: A single product group can have multiple dunning rules. If the conditions for several rules are met simultaneously (e.g., a ''REMIND'' and a ''POST'' rule for the same number of overdue days), all corresponding actions will be executed.


    Automated Enforcement Actions: You can configure one of several actions to be taken when a rule is matched:


    SUSPEND: Suspends the associated subscription.


    DELETE: Cancels/deletes the associated subscription.


    REMIND: Sends the standard ''Invoice Reminder'' notification to the customer.


    POST: Sends a POST request with invoice and customer details to a specified URL (post_url) for custom integration or workflow automation.


    Note: Dunning rules only apply to invoices that are automatically generated for active subscriptions. They do not affect manually created invoices or invoices that are not linked to a subscription.'
paths:
  /dunningrule/list:
    get:
      operationId: ListDunningRule
      tags:
      - DunningRule
      summary: List all dunning rules
      description: List all dunning rules for one or more product groups.
      responses:
        '200':
          description: Successful operation
      parameters:
      - name: product_group_id
        in: query
        required: false
        description: Specificy a 'product_group_id' to get dunning rules from a specific product group.
        schema:
          type: string
  /dunningrule/create:
    post:
      operationId: CreateDunningRule
      tags:
      - DunningRule
      summary: Create a new dunning rule
      description: Dunning rules determine when a subscription is suspended or deleted based on the status of past-due invoices linked to the subscription. In the absence of custom rules, the system applies a 90-day fail-safe recovery cycle that transitions to Grace Period at 30 days, Suspension at 60 days, and Cancellation at 90 days.
      responses:
        '200':
          description: Successful operation
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                product_group_id:
                  type: string
                name:
                  type: string
                description:
                  type: string
                overdue_days:
                  type: string
                overdue_amount:
                  type: string
                enforcement_action:
                  type: string
                post_url:
                  type: string
              required:
              - product_group_id
              - name
              - description
              - overdue_days
              - overdue_amount
              - enforcement_action
  /dunningrule/update:
    patch:
      operationId: UpdateDunningRule
      tags:
      - DunningRule
      summary: Update an existing dunning rule
      description: Update an existing dunning rule.
      responses:
        '200':
          description: Successful operation
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                rule_id:
                  type: string
                product_group_id:
                  type: string
                name:
                  type: string
                description:
                  type: string
                overdue_days:
                  type: string
                overdue_amount:
                  type: string
                enforcement_action:
                  type: string
                post_url:
                  type: string
              required:
              - rule_id
              - product_group_id
              - name
              - description
              - overdue_days
              - overdue_amount
              - enforcement_action
  /dunningrule/delete:
    delete:
      operationId: DeleteDunningRule
      tags:
      - DunningRule
      summary: Delete an existing dunning rule
      description: Deletes an pre-existing dunning rule.
      responses:
        '200':
          description: Successful operation
      parameters:
      - name: rule_id
        in: query
        required: true
        description: The 'rule_id' of the rule you wish to delete.
        schema:
          type: string
components:
  securitySchemes:
    X-Api-Key:
      type: apiKey
      in: header
      name: X-Api-Key
    X-User-Key:
      type: apiKey
      in: header
      name: X-User-Key
    X-Brand-Id:
      type: apiKey
      in: header
      name: X-Brand-Id