Skip to main content
Customers can pay for your sandboxes with BoxRouter Credits. Those sandboxes run on BoxRouter’s own account with you, and we pay you for them. We charge each customer from your own record of what their sandbox cost. We never charge from our clock or an estimate. If you can’t give us that record, your sandboxes can still be offered to customers who use their own account with you.

What We Need

Most providers already have this in a billing or usage API. If we build your integration, we read it from there.
  1. Your prices, published, for example on your pricing page. We hold a customer’s Credits at these prices while the sandbox runs, so we need no figures from you until it ends.
  2. A record for each sandbox, found by the ID your create call returns, or by a tag or label our integration sets to that ID at create, one at a time or in bulk (a periodic export of your account’s usage by that tag counts as bulk): its cost, its usage per billed item, or the times it started, paused, resumed, and ended, with its size. A sandbox that ran for a few seconds has one too.
  3. Kept after the sandbox is deleted, until it is complete, which must be within 7 days of the sandbox ending. A long-running sandbox’s record keeps its early parts until the whole record is complete.
  4. Amounts at your list price at the time of use, in US dollars, before any plan, free tier, trial, discount, or credit on our account. A zero means nothing was billed, never “not counted yet”.

Tell Us

Send these answers with your application, or in your reply to us.
  • How soon after a sandbox ends its record is complete, and whether it can change after that (if it can, how long you keep it).
  • Anything you bill that the record leaves out (BoxRouter pays those on its account), and the rate limit on the lookup.
  • How you bill: when billing starts and stops, what a paused or stopped sandbox, its disk, and its snapshots cost, minimums and rounding, whether a GB is 10^9 bytes, and, if a sandbox can use more than its size, the most it can use.

If You’re Building a New API

If you have no per-sandbox record yet, build the Sandbox Provider Spec’s cost operation in your own API or in an SPS adapter. GET /v1/sandboxes/{sandbox_id}/cost returns:
status is accruing until the record is complete, then final. The cost rules cover the rest, and the SPS tester checks them. Prices and billing rules that your SPS discovery states need not be sent again.

Next Steps

  • Implement SPS: The guide that takes a provider to a passing tester run, including the cost operation.
  • Go Live on BoxRouter: Register a provider and reach customers who bring their own account.