Simulate a goal event
simulate_goal_eventMoves a sandbox goal through its lifecycle instantly; each event sends the real signed webhook to the seller's webhookUrl, exactly as live would. confirm: the buyer signs up and links a bank (goal.deposit_paid if there is a deposit; for subscriptions also goal.subscription_created, plus goal.cycle_paid at once if the deposit paid the first period in full). collect: one round-up chunk, $3 by default (goal.round_up_collected); fails with ALREADY_FUNDED when the current period is already paid. complete: one-time goals finish (goal.completed); subscriptions pay the current period and start the next (goal.cycle_paid; the goal stays SAVING). payment_failed: a failed chunk (goal.payment_failed), with reversal=true for the clawback path. expire: a deadline goal fell short (goal.deadline_charge_failed). Confirm first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| amount | No | collect / payment_failed only: cents, default 300 | |
| goalId | Yes | goalId from create_test_goal | |
| reason | No | payment_failed with reversal only | |
| reversal | No | payment_failed only: true = a chunk already counted is reversed (clawback); false = a collection failed |