Selflane API
The Selflane API lets your own software read a business’s Selflane data, for example to feed a reporting dashboard or an accounting system. These pages are for the developer who writes that software.
How it works
- The API lives at
https://developer.selflane.com/v1. Every request is an HTTPSGETthat returns JSON. - A business owner creates an API key in Back Office and gives it to you. The key decides which locations and which kinds of data you can read.
- Money is in integer cents with a
currencyfield (usdorcad). Times are ISO 8601 in UTC.
What you can read today
| Endpoint | Scope | Returns |
|---|---|---|
GET /v1/locations | business:read | The locations the key covers |
GET /v1/business | business:read | One location’s name, address, timezone, and currency |
Coming soon: daily sales (GET /v1/reports, already documented) once Back Office lets owners add Reports to a key, then payouts, payments, menu, and orders. See Scopes for what each one will cover.
Start here
- Getting started: get a key and make your first call.
- Authentication: send and protect the key.
- Locations: work with keys that cover several locations.
- Scopes: what each scope returns.
- Errors, rate limits, and versions: handle failures and stay compatible.
- API reference: every endpoint, generated from the OpenAPI spec.
Related
Last updated on