FINANCE

Snapshot pre-amendment waterfall to Snowflake on inbound amendment webhook

Receives an amendment notification from your CPQ or billing system via webhook and snapshots the contract's current deferred-revenue schedule into a versioned Snowflake history…

CategoryFinance
Enginesim
Difficultybeginner
Triggerwebhook
Steps5
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerInbound amendment webhookHTTP webhook
  • LogicValidate contract id and effective date
  • ActionRead current active schedule from SnowflakeSnowflakeSnowflake
  • ActionWrite versioned snapshot to history tableSnowflakeSnowflake
  • OutputReturn snapshot id confirmation to callerHTTP webhook

What it does

Before a waterfall is recomputed, the prior schedule should be preserved so auditors can see exactly what changed and when. This workflow listens for an amendment notification from any system that can call a webhook, captures the contract's current schedule, and writes an immutable, timestamped snapshot to a Snowflake history table.

When to use it

Use it as the first stage of your amendment pipeline, especially when amendments originate outside Stripe — a CPQ tool, a manual ops form, or a contract-management system. It guarantees you never lose the pre-change schedule even if the downstream recompute runs immediately after.

How it works

  1. 1An inbound HTTP webhook delivers the amendment payload with the contract identifier and effective date.
  2. 2A logic step validates the payload has a known contract id and a future-or-current effective date, rejecting malformed calls.
  3. 3It reads the contract's current active schedule rows from Snowflake.
  4. 4It writes those rows to a versioned snapshot table with a snapshot timestamp and the originating amendment reference.
  5. 5It returns a confirmation with the snapshot id so the caller can chain the recompute step.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect SnowflakeWarehouses, queries, shares.
  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.