iVendNextDevelopers My apps

The hosted sandbox site — what you receive, your first hour, and its limits — the recipe

A sandbox site is your company's iVendNext site, hosted by us, where you build and test before you touch a customer's site. You choose its made-up demo data: a sandbox handed to a developer starts empty, and the one a partner's owner receives on the partner portal has Multi-category retail loaded within a few minutes. This recipe is for any company in the iVendNext partner programme, and anyone whose partner application we approve. Every one of them receives the same site, made the same way.

Next: Build your first appAll recipes

When to use it. From step 2 of the path: right after you register, before you quote or build anything. It is where you try every rung of the ladder and run your tests.

What you receive

Nothing else. You never receive the software, a server, a container or a connection to the database. Your own code runs on your own machine or server and talks to your site over HTTPS, exactly as it will talk to a customer's site.

Every sandbox site is its own database, so no builder sees or touches another's.

What is on your site

Before you load anything: the product itself and the site's own set-up. There is no company, store, till, item or sale yet. Sign-in by user name is on, mail is off, and every extension point is present with nothing of ours installed beyond the product.

After you load Multi-category retail you have one chain, Demo Retail: a US company in US dollars with 8% sales tax added at checkout, three stores with two tills each, about 220 items in ten departments with barcodes, prices and stock, a price list, the promotion DEMO-10-OFF, customers with a loyalty programme, a gift card, a store credit and two past sales. Demo data for your sandbox lists every part, and every other pack.

The retailer's defaults, and what you will see:

The people on your site, and what each may do:

Who Sign-in (Desk) · till ID Roles it is given What for
You, the administrator admin@demo-retail.example System Manager, Item Manager, Sales Master Manager, Stock User, Retail Manager set up iVendNext as a customer's administrator does: items, prices and price lists, promotions, pricing rules, coupons, till profiles, POS Studio, receipts, workflows, reports, roles, users and keys; read the sales made at the till
Store manager (with Multi-category retail) manager@demo-retail.example · manager Retail Manager a manager's work at the till: approvals, returns, closing the day
Cashier 1 and Cashier 2 (with Multi-category retail) cashier1@demo-retail.example · cashier1, cashier2@demo-retail.example · cashier2 Retail Cashier selling at the till, in any of the three stores
Integration user integration@demo-retail.example Demo Integration — starts with one right: read items your first connected app. It has no password and no key yet: you make its key (Your first hour, in the hosted sandbox recipe)

The e-mail addresses are made up. The site also gives every user its standard roles, and gives the administrator the right to edit the shared Desk workspaces. Each role in the table is there because the administrator needs it for at least one of the jobs listed, and together they cover all of them; our own check before hand-over proves both.

Your first hour

  1. Sign in at your address as admin@demo-retail.example with the one-time password the partner portal or My sites showed you. Choose your own password when the site asks.

  2. Load your demo data (skip this on the sandbox your owner received on the partner portal: Demo data already shows Multi-category retail loaded): on My sites, press Demo data on your sandbox, then Load on Multi-category retail (or run ivn demo load multi-category). It takes a few minutes; the screen then shows the store manager's and the cashiers' logins.

  3. Check your site with the kit's sandbox check (Python 3, plus bash, curl and jq):

    BASE=https://<your-site> KEY=<api key> SECRET=<api secret> python3 tools/sandbox_check/check.py
    

    It checks that the site answers, that your key signs in, that the POS apps are installed, the demo company and its three stores, the integration user, the extension points' record types, and the request collection's first three files. On an empty sandbox the company, the stores and the collection each pass and say no demo data is loaded yet. With another pack alone on the site, the company and the stores pass and say Multi-category retail is not loaded. The last line says SANDBOX CHECK GREEN or SANDBOX CHECK RED and names what failed. If it is red, send us its output: it never prints your key or secret.

    On a site you made yourself (not the hosted sandbox), three checks read the hosted sandbox's own data: the demo company, its three stores and the integration user. Name your own in the environment, and the check reads those instead:

    SANDBOX_COMPANY="<your company>" SANDBOX_STORE_PREFIX="<the start of each store's name>" SANDBOX_STORES=<how many> \
    SANDBOX_INTEGRATION_USER=<your integration user> SANDBOX_INTEGRATION_ROLE="<its role>" \
    BASE=… KEY=… SECRET=… python3 tools/sandbox_check/check.py
    

    Each one left out keeps the hosted sandbox's value (Demo Retail, Demo Retail — Store , 3, integration@demo-retail.example, Demo Integration). The other six checks are the same on every site.

  4. Give your connected app its key: open the integration user and press Generate Keys. Its role starts with one right, reading items; widen it to what your app needs, as recipes/integration_user.md shows. Use this key in your app, never the administrator's.

  5. Sell on the till: sign in to the till as a cashier with the till ID and password the pack showed, open a day, sell, and close the day before you stop.

The limits

You may You may not
Configure anything a customer's administrator can: prices, promotions, coupons, POS Studio, receipts, workflows, numbering, permissions, reports Install a Python app on the site or the server
Make roles and users, and an API key for each connected app (one app, one user) Reach a server, connect to the database, or reach a container or the app source
Call the API from your own machine or server over HTTPS, and run api/collection/run.sh Run server scripts, or rely on client scripts, custom HTML blocks or script print formats (intake refuses them)
Check an app with ivn check, then install it on your sandbox with ivn try Change a total after the cashier has seen it, or override or patch iVendNext (the four rules)
Register a feed reader and subscribe webhooks to your own public address Use a hosted till key, which is for the CitiXsys Consulting Team only
Make a till key answered by your own public HTTPS server (private and loopback addresses are refused; use a tunnel or a public test server) Ask for another builder's site or data
Open a POS day on a till and run sales to test your work Leave a POS day open at the end of a test

Close every POS day you open. An unclosed day holds its cashier in every later test and fails far from its cause. Your tests should close what they open.

Reset and removal

What is refused, and why

When your service is down, and when the till is offline

The sandbox does not change either rule. Your site is online whenever our hosting is. A till on your site that you take offline behaves as on any customer's site: your remote answers are not asked for, and the event feed holds what you have not collected. Use the sandbox to rehearse both.

Technical notes

How a sandbox site is made

The sandbox check

What was proven where

Not this recipe

It does not build the sandbox installation on our hosting, choose the sandbox domain, set the sandbox licence's limits, build the sign-up flow or the self-service reset, or add monitoring and backups.

This page in the kit