OptoSoft Developers API
Programmatic access to your optical retail operations — customers, orders, quick sale, invoices and receipts — over a secure JSON REST API.
Overview
The OptoSoft Developers API is a JSON-over-HTTPS REST API that lets your systems read and write optical retail data — patients/customers, sales orders, quick-sale transactions, invoices and receipts. All requests are authenticated with a JSON Web Token (JWT) obtained from the login endpoint. API access is available to OptoSoft account holders; contact our team to enable it for your store.
Base URL
https://app.opto-soft.com/global/api-v1
Auth & Format
JWT Bearer · application/json
Quickstart
-
1
Get an access token
Exchange your OptoSoft credentials for a JWT.
curl -X POST https://app.opto-soft.com/global/api-v1/api/Auth/login \ -H "Content-Type: application/json" \ -d '{"userName":"YOUR_USERNAME","password":"YOUR_PASSWORD"}' -
2
Call an endpoint with the token
Send the token in the
Authorizationheader on every request.curl https://app.opto-soft.com/global/api-v1/api/Account/user-details \ -H "Authorization: Bearer YOUR_JWT_TOKEN" -
3
Explore the reference
Browse every endpoint, request body and response schema in the API reference — or download the Postman collection and call the API straight away. The login request stores your token automatically, so every other request is authorised.
Postman collection
A ready-to-import Postman collection is generated from the same specification that powers the reference, so it always matches the live API. It ships one folder per resource group, 80 requests, example JSON bodies, and collection-level Bearer auth.
- Download the collection and import it in Postman (Import → Files).
- Open the collection's Variables tab and fill in
userNameandpassword. - Run
POST /api/Auth/login— the JWT is stored inaccessTokenand every other request inherits it.
Resource groups
Auth
Obtain and manage access tokens
1 endpoint
Account
Signed-in user and profile details
2 endpoints
Customer
Patient/customer records and eye info
14 endpoints
Orders
Sales orders, status and advances
10 endpoints
Quick Sale
Fast counter billing workflow
31 endpoints
Invoice
Invoices and invoice lists
6 endpoints
Receipts
Payment receipts
2 endpoints
Dashboard
Store performance summaries
1 endpoint
Common
Shared lookups and master data
13 endpoints
Authentication
Log in and use JWT bearer tokens.
API Reference
Every endpoint, field and response.
Postman collection
Import and call the API in minutes.
Errors & Conventions
Status codes, paging, versioning.