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 |
GET /v1/reports, GET /v1/reports/today | reports:read | Daily sales summaries, and sales so far today |
GET /v1/payouts | payouts:read | Payouts and their fees |
GET /v1/payments | payments:read | Card payments with their tips, refunds, and disputes |
GET /v1/menu | menu:read | Menu: categories, items, modifiers, prices, taxes, and discounts |
GET /v1/orders, GET /v1/orders/today | orders:read | Orders with their items, amounts, and tenders |
GET /v1/staff | staff:read | Staff and their roles |
GET /v1/timecards | timecards:read | Timecards: clock-ins, breaks, and declared tips |
GET /v1/cash-drawers | cash:read | Cash drawers: sessions and counts |
See Scopes for what each scope returns, and the API reference for every field.
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.