INVOICE PROCESSING

Hold Recurring Stripe Invoices That Spike Above a Percentage Cap

Compares each finalized recurring invoice total against the customer's prior invoice total and, if the increase exceeds a configured cap, voids the auto-charge and alerts billing.

CategoryInvoice Processing
Enginesim
Difficultybeginner
Triggerevent
Steps6
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerStripe invoice.finalized eventStripeStripe
  • ActionFetch prior invoice totalStripeStripe
  • LogicCompute percentage increase vs prior period
  • LogicBranch: increase over the cap?
  • ActionPause auto-advance to hold the chargeStripeStripe
  • OutputAlert billing in Slack with the totalsSlack

What it does

This is the simplest creep guard: a total-versus-total check. For each finalized recurring invoice it reads the previous invoice's amount, computes the percentage increase, and stops any charge that jumps more than your allowed cap, regardless of which line items caused it.

When to use it

Use this as a blunt but reliable backstop when you do not need line-level detail and just want to never silently bill a customer 3x their usual amount. It pairs well with the line-item auditors as a catch-all.

How it works

  1. 1Stripe fires `invoice.finalized` for a recurring invoice.
  2. 2The flow fetches the customer's prior invoice total.
  3. 3A logic step computes the period-over-period percentage increase.
  4. 4A branch checks the increase against the configured cap.
  5. 5If exceeded, the invoice auto-advance is paused so it will not charge.
  6. 6A Slack alert reports the old total, new total, and percentage jump to billing.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect StripeCustomers, subscriptions, payments.
  2. 2
    Connect SlackChannels, DMs, threads, mentions.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.