Skip to main content
SubscriptionFlow Docs
Billing

Time Machine: Test Future Billing in a Sandbox

Updated time-machinesandboxbilling

Time Machine shows you how billing will play out over the coming weeks, months or years, without touching your live account. It works on a sandbox: a copy of your account with its own clock. You move the sandbox clock forward, and SubscriptionFlow runs every day in between just as it would for real: renewals, invoices, invoice status updates and payment retries. Then you look at the results.

Nothing in the sandbox reaches your customers. Emails and SMS are captured in an Outbox instead of being sent, payments are simulated, and webhooks, workflows and integrations don't run.

Use Time Machine to:

  • check what a customer's next renewal invoices will look like before they are created,
  • try a new plan, price or payment retry setting over several billing cycles,
  • show a customer or a colleague how an account will develop over time.

Who can use it: users whose profile has the Time Machine permission. The Administrator profile has it by default. To give it to another profile, see Give other users access below.

Open Time Machine

Settings › Billing & Payments › Time Machine

Time Machine tile in the Billing & Payments group of Settings

Turn on Time Machine

The first time, switch on Time Machine on this account. The status changes to Enabled and the Sandbox card appears below it.

Time Machine on this account switched on, with the Sandbox card and its Create sandbox button

Create a sandbox

  1. On the Sandbox card, click Create sandbox….
  2. Under What to copy, choose one of these:
    • Everything: every customer with their contacts, subscriptions, invoices, payments, credit notes, wallets and usage.
    • Chosen customers: search for customers by name and add up to 10. Their parent and grandparent accounts are added automatically.
    • Chosen subscriptions: search by subscription or customer name and add up to 25 subscriptions.
  3. Click Create sandbox.

Create sandbox dialog with Everything selected and the list of what is copied

The Status shows Building with a percentage while SubscriptionFlow copies your data, then Ready. Building takes from a few seconds to several minutes, depending on how much data you copy. You can leave the page meanwhile.

Sandbox card with the status Ready, the sandbox date and the Open sandbox button

What the sandbox gets:

  • Copied: your configuration, catalog, plans, prices, taxes, templates and users, plus the customers you chose with their records.
  • Left empty: logs, audit history, sent emails and webhook history.
  • Removed: payment gateway, accounting, email, tax and integration credentials.

The sandbox starts on today's date. Your account can have one sandbox at a time: New sandbox… creates a new copy and replaces the current one.

For a large account, copying Everything may not be possible. If SubscriptionFlow says the account is too large, choose customers or subscriptions instead.

Open the sandbox

Click Open sandbox ↗. The sandbox opens in a new browser tab, on its own web address, and you are signed in automatically.

A purple SANDBOX bar at the top of every page shows the sandbox date and reminds you that nothing there touches live data. Inside the sandbox you can use SubscriptionFlow as usual, for example to open customers or change a subscription. Changes you make there stay in the sandbox.

Time Machine page inside the sandbox, with the purple SANDBOX bar showing the sandbox date

The sign-in link is valid for 10 minutes. If it has expired, go back to your live account and click Open sandbox ↗ again.

Travel forward in time

  1. In the sandbox, click Travel to… 📅 in the purple bar or on the Time Machine page.
  2. Pick a date in the calendar, or use a shortcut: +1 day, +1 week, +1 month, +3 months or +1 year.
  3. Click Travel to followed by the date.

Travel the sandbox forward dialog with +3 months selected

SubscriptionFlow runs every day on the way, in order: the bill run, invoice status updates and payment retries, with simulated payments. A progress bar shows the trip, and you can leave the page while it runs.

When the trip finishes, it appears in the list with the number of invoices it created, and the sandbox date moves to the day you chose. You can only travel forward, up to 2 years per trip. To go further, travel again.

Finished trip with the invoices it created, and the Outbox listing the captured invoice emails

Review the results

  • Outbox: on the Time Machine page inside the sandbox, the Outbox lists every email, SMS and webhook that would have gone out, with the sandbox date it would have been sent on. Click Preview next to an email to see it. For invoice emails, the preview shows who would receive it, the customer and the invoice total, with a link to the invoice in the sandbox; the email body and PDF are not rendered there.
  • Invoices, subscriptions and customers: open them as usual in the sandbox. Renewal invoices carry their future dates.

Preview of a captured invoice email in the Outbox

Invoices list inside the sandbox with renewal invoices dated in the future

Test failed payments

Payments in the sandbox are simulated. By default, the card number's last four digits decide the outcome: 4242 succeeds, 0002 is declined, and 9995 fails with insufficient funds. To test payment retries for a particular card, choose its outcome under Payment outcomes (sandbox only) on the Time Machine page inside the sandbox. The list shows the saved cards that were copied into the sandbox.

Go back, start afresh or delete

  • Back to live on the sandbox's Time Machine page, or Live ⇄ Sandbox in the purple bar, takes you back to your live account.
  • Start afresh on the Sandbox card of your live account rebuilds the sandbox from today's live data. Everything in the current sandbox is discarded.
  • Delete removes the sandbox and its Outbox.
  • A sandbox is deleted automatically 7 days after it was created or last travelled. The Sandbox card shows the date under Expires.

Give other users access

Users see Time Machine when their profile has the Time Machine permission.

  1. Go to Settings › Users & Security › Users and click Profiles.
  2. Open the profile.
  3. Under Admin Level Permissions, switch on Time Machine, then save the profile.

Time Machine permission under Admin Level Permissions in a profile

Good to know

  • Nothing you do in the sandbox changes your live account.
  • Integrations can't connect from the sandbox because their credentials are removed, and payments never reach your payment gateway.
  • The sandbox date only changes when you travel. It doesn't follow the real calendar.
  • One trip runs at a time.
  • Delete your sandbox before you switch off Time Machine on this account.
Was this article helpful?0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.