Why this exists
No other billing API lets you test dunning recovery or grace period expiry without waiting days. With the test clock, you advance time, trigger the billing tick, and see the result immediately. Testing a full dunning cycle — failed card, 4 retries, grace period, delinquent — takes under 2 minutes.Check current simulated time
Response
Advance the clock
Response
Trigger the billing tick
Advancing the clock alone doesn’t bill anyone. You need to run the tick to process renewals, retries, and state transitions at the new simulated time.Response
Full scenario: simulate a dunning cycle in 2 minutes
1
Create a subscription that will fail
tok_test_decline always fails. This lets you simulate dunning without any real card.2
Advance 1 month + tick — subscription goes past_due
past_due. The subscription.past_due webhook fired.3
Advance 3 days + tick — retry fires (still fails)
4
Advance 7 days + tick — retry fires (still fails)
5
Advance 14 days + tick — final retry, subscription enters grace
grace. subscription.grace webhook fired. The 7-day grace window is open.6
Advance 8 more days + tick — delinquent
delinquent. subscription.delinquent webhook fired. has_access: false.