Skip to main content

Getting started

Environments

An environment is a separate copy of the Lochting system — with its own URL, its own dataset, and its own credentials. Think of it as a completely independent version of the API.

Each environment has two entry points: the platform and the API. The platform is the web application where pharmacists manage their branch. The API gives you access to the same data programmatically.

This separation means you can safely develop and test your integration on a non-production environment without affecting live data. When you are ready, switch to the production URL and credentials to go live. Always make sure you are targeting the correct environment — your API credentials are tied to a specific one.

Production

The production environment contains the live dataset and is used when your integration has been tested and is ready for real use.

Non-production

Non-production environments are available for integration development and testing. Please contact us for access and the correct URLs for your branch.

note

Non-production data may be reset or differ from production. Use it for development and testing only; do not rely on it for persistent storage.

Making your first request

Try it in the browser

Each endpoint in the API Reference has an interactive request panel where you can send requests and see responses directly in your browser. Change the base URL in the request panel when targeting a different environment.

Every request to the Lochting API (except obtaining a token) must be authenticated. You will need an API keycontact us if you do not have one yet.

Once you have your API key, head over to Authentication to learn how token exchange works and to see an example of your first authenticated request.

You can also download the OpenAPI 3 specification and import it into Postman to start exploring the API.