Stable Pro
Payments and invoicing•6 min read

Use the test environment

Have a connection tested with sample data, without touching your centre’s data.

The test environment is a separate copy of your centre, filled with sample data. It lets whoever is building a connection to Stable Pro, such as invoicing software, try it out without using your real data. Nothing that happens in the test environment changes your centre’s data.

Before you start

  • Only the centre’s owner can create and manage the test environment.
  • The centre’s plan must include the Accounting area and the API: both are included in the Pro and Business plans.
  • Each centre can have only one test environment.

Live environment and test environment

In Settings → API & integrations you’ll find a selector at the top with two options:

  • Live environment: connections created here access your centre’s data, according to the permissions you grant. Their keys start with sp_live_.
  • Test environment: connections created here access only the sample data. Their keys start with sp_test_.

The two lists of connections are kept separate. The program uses the same address with either key: the key decides which data it reads.

Create the test environment

  1. Go to Settings → API & integrations and choose Test environment in the selector.
  2. Select Create test environment and confirm in the window.
  3. Wait a few seconds while Stable Pro prepares the data. When the environment is ready, Stable Pro takes you to its API & integrations page.

The environment starts with your centre’s settings, such as price lists, services, lesson plans, time zone, currency and language. The members, horses and transactions are made up: charges, payments received with their receipts, an advance payment, a refund, a few corrections and a document recorded by a sample invoicing program.

While you are in the test environment, a light blue banner at the top of every page reminds you where you are. To return to your centre, select Back to your stable in the banner, or choose Live environment in the selector.

View the test environment

When you choose Test environment in the selector, the page shows:

  • the Test environment box, with its status and the number of sample members, horses and charges;
  • Test API connections, the connections created in the test environment;
  • Test API log, the requests received with the test keys;
  • API documentation, the instructions for whoever is developing the connection.

Go to the test dashboard opens Stable Pro inside the test environment, where you can browse the sample data just as you would your centre’s own.

Invite a developer

You can let the person building the connection into the test environment without giving them access to your centre.

  1. In the Test environment box, open Developers and select Invite a developer.
  2. Enter the developer’s Name and Email address and select Send the invitation.

The developer receives an email, chooses a password and can then sign in to the test environment only. They can view the pages of Stable Pro but cannot change anything, and in API & integrations they can create test connections and keys. They cannot see anything from your centre and cannot create live keys.

Next to each developer you can see whether they have signed in yet. If the email hasn’t arrived, select Resend invitation. You can invite up to 10 developers.

Note: for now, you cannot invite an email address that already has a Stable Pro account.

Revoke a developer’s access

  1. In Developers, select Revoke access next to the developer’s name.
  2. If the developer has created API keys, leave Also revoke the API keys created by the developer selected: integrations that use those keys stop working immediately.
  3. Select Revoke access.

The developer can no longer sign in to the test environment. The connections they created stay in the list; their keys stop working only if you chose to revoke them. If the environment has other active keys, created by other people, the window tells you: if the developer knows them, replace or revoke them in Test API connections.

Create a test API key

On the test environment page, in Test API connections, select New connection. Test environment appears under the window title. Everything else works as it does for a live connection: choose the permissions and the expiry, then copy the key. The steps are described in Connect invoicing software.

A test key reads and writes only the sample data. Test requests have the same limits as live ones, but they are counted separately: they don’t use up your centre’s limits.

Check the request log

The Test API log shows the last 100 requests made with the test keys: time, operation, result, duration, connection and request ID. With Errors only you see just the requests that failed. API limit usage shows how many requests were made in the last 24 hours.

The content of requests is not stored. If you need to report a problem to support, give them the request ID.

Manage the sample data

In the Test environment box, open Data management. You’ll find three commands there.

Prepare next month

This creates next month’s charges right away, as happens on the 1st of each month: boarding fees, fees for services and lesson plans, and staff pay. You can prepare one month at a time, up to 12 months beyond the current one. Today’s date doesn’t change: due dates and payment reminders follow the actual date. When that month really arrives, the charges are not created a second time.

Restore sample data

This takes the environment back to its initial data, using your centre’s current settings. Any changes made to the sample data are lost. Developers, connections and API keys are kept. The restored sample data has new IDs, so whoever is developing the connection needs to read it again. While the restore is running, which takes a few seconds, test keys receive a temporary error.

Delete test environment

This permanently deletes the environment, its data, and its test connections and API keys. Invited developers lose access. Select Delete permanently to confirm: this cannot be undone. Afterwards you can create a new environment, with new keys; developers will need to be invited again.

If the test environment isn’t used

The test environment counts as used when someone opens it or when a program makes a request with a test key.

  • After 5 months without use, you receive an email with the date it will be suspended.
  • After 6 months, the environment is suspended: test keys receive an error. A request from the program is not enough to reactivate it. To reactivate it, go to Settings → API & integrations, choose Test environment and select Reactivate.
  • After 30 days of suspension, the environment is deleted, together with its data and keys. You receive a final warning 7 days beforehand.

You are notified of each step by email. Your centre is never affected.

Switch to the live environment

Once the connection works, create a connection in Live environment with the permissions it needs, and give the new key to the person who built it. The test key keeps reading only the sample data. The IDs in the sample data don’t exist in your centre, so the program must keep them separate.

Frequently asked questions

Do my members receive emails from the test environment?

No. Emails to the sample customers, such as payment reminders, receipts and notices, are not sent. Only service emails go out, for example developer invitations and inactivity warnings.

Does the test environment have its own subscription?

No. It uses your centre’s plan and doesn’t allow purchases. Importing from another program isn’t available either, so that no real data ends up in the test environment.

Can the developer see my centre’s data?

No. They can only sign in to the test environment and can only create test keys. To connect the program to your real data, you create the key yourself in Live environment.