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 | |
|---|---|
| Payments | Run 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 |
| Every 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 | |
| Texts | Sent to one test number, or not sent at all |
| Database | Its own. The sandbox refuses to start against a database that is not a sandbox database |
| Your service API | Never called. A mock connector stands in for it |
| Search engines | Told not to index any page |
| Every page | Says 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
401in production, and a production key answers401in the sandbox. - Webhook URLs follow production's rules:
https, on public addresses only. A receiver on your own machine needs a publichttpsaddress, such as a tunnel. - The echo receiver at
POST /api/partner/v1/webhook-echochecks each delivery's signature exactly as your receiver should, and answers200when it holds and400when 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 test | Use |
|---|---|
| A card | 4242 4242 4242 4242, any future expiry date, any CVC |
| A US bank account | Routing number 110000000, account number 000123456789 |
| Confirming that bank account | The 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 shows | What to look at |
|---|---|
| A quote at every stage | Draft, 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 autopay | Paid by card on the 1st of every month for four months |
| A declining card | A card that always declines, walking the failed-payment notices to the final notice |
| Final notice delivered | Suspension eligible on Collections, waiting for a person to decide |
| Suspended for non-payment | Service suspended and still owing |
| One bill per store | One store's bill is suspension eligible: confirming it switches off that store only, and paying that bill brings it back |
| A bank account waiting | Two test deposits to confirm on the customer's Payment methods page |
| Says paid | The customer says they paid by wire and sent proof, for ByRecord to accept or reject |
| Device health | A two-site customer with a month of device history, an outage, and a recorder that just went offline |
Rehearsing a deal end to end
- 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.
- Create a quote through the API (Your first quote), the Slack app, or the platform.
- Send it. The proposal email goes to the test inbox. The quote's
quoteUrlis in the API's answer. - Open it as the customer. Open
quoteUrlin a private window, signed out:quote.viewed. - Accept and sign:
quote.accepted, thencontract.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. - Save a payment method on the next page, with the test details above:
payment_method.saved. - Record the installation. Sign in as the vendor's deployment sign-in and record it on Installs:
installation.recorded, thenbilling.livewhen the first invoice goes out. - 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.suspendedandservice.restored. - 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
| Sandbox | Production | |
|---|---|---|
| Partner API, webhooks, limits and errors | The same | The same |
| Keys and webhook endpoints | Its own | Its own |
| Money | Stripe test mode | Live |
| One test inbox | The people named | |
| Texts | One test number, or none | Customers who agreed to texts |
| Your service API | Never called: the mock answers | Called for every sync, suspension and restore |
| Clock | Can be moved forward by ByRecord's admins | Real time |
| Sign-in | One click, from a list | Each person's own sign-in |
| Echo receiver | Available | Answers 404 |