Skip to main content
In test mode, time is controllable. You can simulate an entire year of billing in seconds.

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
Common durations:

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

Check subscription state — it’s now 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

Subscription is now grace. subscription.grace webhook fired. The 7-day grace window is open.
6

Advance 8 more days + tick — delinquent

Subscription is now delinquent. subscription.delinquent webhook fired. has_access: false.
The shared sandbox clock is rate-limited to 1 advance per minute per tenant. If you’re running intensive tests (CI pipelines, load tests), request a dedicated sandbox key from support — it has no rate limit.