ByRecordDocs
byrecord.com›

Sandbox and testing

What a programme's sandbox is, what in it is real and what is not, and how to rehearse a whole deal there before production.

The sandbox is a complete copy of the platform with made-up customers and test money. It runs the same code as production, against its own database. Nothing done there charges a card, debits a bank, emails a customer or changes anything in your systems.

Build every integration against it first: your calls to the partner API, your webhook receiver, and your CRM's write-back.

What keeps it safe

The platform enforces these itself. A sandbox that would break one refuses to start.

In the sandbox
PaymentsRun in Stripe's test mode. The sandbox refuses to start with a live payment key, so no real card or bank account can be charged
EmailEvery email goes to one test inbox, with the intended recipients in its subject and a first line saying it is a sandbox message. The sandbox refuses to start without that redirect
TextsSent to one test number, or not sent at all
DatabaseIts own. The sandbox refuses to start against a database that is not a sandbox database
Your service APINever called. A mock connector stands in for it
Search enginesTold not to index any page
Every pageSays it is a sandbox, in a bar across the top

Signing in

The sandbox's sign-in page lists who you can be, and one click signs you in as that person: the vendor's account executive, deployment and finance people, ByRecord's staff, and every seeded customer. Use it to see one deal from each side. Switch user, in the sandbox bar, takes you back to the list. A few further sign-ins use a password, which ByRecord gives you separately.

One-click sign-in exists only in the sandbox.

The API and webhooks in the sandbox

  • Base URL https://<sandbox host>/api/partner/v1. The same API, limits and errors as production.
  • Keys and endpoints are made on API & webhooks, signed in as the vendor's finance sign-in. Each environment has its own: a sandbox key answers 401 in production, and a production key answers 401 in the sandbox.
  • Webhook URLs follow production's rules: https, on public addresses only. A receiver on your own machine needs a public https address, such as a tunnel.
  • The echo receiver at POST /api/partner/v1/webhook-echo checks each delivery's signature exactly as your receiver should, and answers 200 when it holds and 400 when it does not. Point an endpoint at it to see deliveries land before your own receiver exists. See Rehearsing.

Test payment details

Customers in the sandbox pay with Stripe's test details:

To testUse
A card4242 4242 4242 4242, any future expiry date, any CVC
A US bank accountRouting number 110000000, account number 000123456789
Confirming that bank accountThe two small test deposits: 32 and 45 cents

A bank account can be charged only once its deposits are confirmed. To see a failed payment and what follows, use the seeded account whose card always declines (below) rather than a card of your own.

Seeded accounts

Each seeded customer is named for what it shows. Among them:

The account showsWhat to look at
A quote at every stageDraft, needs review, sent, opened, accepted, signed, card saved, installed and billing, on the account executive's My deals, with a webhook endpoint pointed at the echo receiver
Card autopayPaid by card on the 1st of every month for four months
A declining cardA card that always declines, walking the failed-payment notices to the final notice
Final notice deliveredSuspension eligible on Collections, waiting for a person to decide
Suspended for non-paymentService suspended and still owing
One bill per storeOne store's bill is suspension eligible: confirming it switches off that store only, and paying that bill brings it back
A bank account waitingTwo test deposits to confirm on the customer's Payment methods page
Says paidThe customer says they paid by wire and sent proof, for ByRecord to accept or reject
Device healthA two-site customer with a month of device history, an outage, and a recorder that just went offline

Rehearsing a deal end to end

  1. Set up. Sign in as the vendor's finance sign-in. On API & webhooks, create a key and add a webhook pointed at your receiver, or at the echo receiver.
  2. Create a quote through the API (Your first quote), the Slack app, or the platform.
  3. Send it. The proposal email goes to the test inbox. The quote's quoteUrl is in the API's answer.
  4. Open it as the customer. Open quoteUrl in a private window, signed out: quote.viewed.
  5. Accept and sign: quote.accepted, then contract.signed. Do this signed out. Accepting while signed in as the vendor's people sends the signing link to the signer's email (the test inbox) instead of opening it.
  6. Save a payment method on the next page, with the test details above: payment_method.saved.
  7. Record the installation. Sign in as the vendor's deployment sign-in and record it on Installs: installation.recorded, then billing.live when the first invoice goes out.
  8. Watch what follows. Monthly invoices, automatic payment, a failed payment's notices, a suspension and the restore after payment all run on the calendar. Ask ByRecord to move time forward, and to confirm a suspension: only ByRecord's people can do either. Those send service.suspended and service.restored.
  9. Check every delivery on API & webhooks: when it was sent, its attempts, and what was recorded about any failure.

Moving time forward

Billing runs on a calendar: invoices go out 7 days before their period, automatic payments are taken in the customer's morning, and notices follow a failed payment on set days. In the sandbox, ByRecord's admins can move an account's time forward, by a day, a week, or to the next bill, so a month plays out in minutes.

  • It moves the platform's clock for everyone in the sandbox, which is why only admins can do it.
  • It moves the account's payment test clock with it, then runs every scheduled job once, so invoices, reminders and retries happen straight away.
  • Webhook signatures keep real time. A delivery made after time has moved is still stamped with the real time, so your five-minute check still passes.
  • Webhook retries follow the sandbox's clock, so moving time forward walks a failing delivery through its retries.

The mock connector

The sandbox never calls your service API. A mock stands in for it:

  • each customer linked to your system has simulated devices at two locations, one recorder online and one degraded;
  • suspending and restoring a location changes the mock's own record of it, which survives a restart, so a restart does not look like your side reversing a suspension;
  • usage figures are invented but repeatable: the same period always gives the same figures, and a period that has not started has none;
  • a seeded account shows an outage, and a recorder that just went offline.

Because the sandbox never calls your service API, it cannot test your side of the connector. Connector requirements says what that side must do. Production never acts through the mock: see Vendor connector.

Starting again

ByRecord can reset the sandbox to its seeded accounts at any time. Anything you created there is removed then, so keep nothing in the sandbox you need later.

How the sandbox differs from production

SandboxProduction
Partner API, webhooks, limits and errorsThe sameThe same
Keys and webhook endpointsIts ownIts own
MoneyStripe test modeLive
EmailOne test inboxThe people named
TextsOne test number, or noneCustomers who agreed to texts
Your service APINever called: the mock answersCalled for every sync, suspension and restore
ClockCan be moved forward by ByRecord's adminsReal time
Sign-inOne click, from a listEach person's own sign-in
Echo receiverAvailableAnswers 404
© 2026 ByRecord · byrecord.com · Status