Concepts & Glossary
Understanding the key entities in OC App Store.
How it works
A Connector creates a Connection with a Company to access their data via the API.
Entities
Connector
An external app or platform that integrates with OlaClick. It represents your system as a whole.
- Has one set of OAuth credentials (
client_id+client_secret) - Can connect to multiple Companies
- Manages its connections via app-level scopes
Examples: a POS system, a fiscal notes provider, an analytics platform.
Company
A restaurant or food business registered in OlaClick. Companies have their own orders, menu, clients, and settings.
- Identified by a
company_id(UUID) - Can be connected to multiple Connectors
- The company owner approves or manages connections from the OlaClick panel
Connection
The link between a Connector and a Company. It determines what data the Connector can access for that specific Company.
- Has a status that reflects the onboarding/KYC state
- Created when a company installs/connects your app
- Scoped to one (Connector, Company) pair
Connection statuses
| Status | Description |
|---|---|
pending | Connection created, waiting for the provider to complete onboarding/KYC |
active | Connection fully operational, the company is receiving events |
in_provider_review | Provider is reviewing the company's application |
awaiting_company_confirmation | Provider needs the company to take action (e.g. complete a KYC step) |
rejected | Provider rejected the company's application |
revoked | Company or admin disconnected, connection terminated |
Connection status is informational — it describes the KYC/onboarding state, not API access. A Company Token can be obtained for any non-revoked connection.
Status transitions
Only apps can transition statuses via PATCH /v1/conections/:id. Admin transitions are unrestricted.
Token types
Connectors use two types of tokens depending on the operation. See Authentication for the full flow.
| Token | company_id in request | Use case |
|---|---|---|
| App Token | No | Manage connections (list, activate, reject) |
| Company Token | Yes | Access company data (orders, menu, invoices) |
Glossary
| Term | Definition |
|---|---|
| Connector | Your app registered in OC App Store |
| Company | A restaurant/business on OlaClick (identified by company_id) |
| Connection | The link between a Connector and a Company |
| App Token | OAuth token without company context — for managing connections |
| Company Token | OAuth token with company_id — for accessing a specific company's data |
| Scope | Permission granted to a token (e.g. orders:read, conections:write) |
| client_id | Public identifier for your OAuth client |
| client_secret | Secret credential for authenticating your OAuth client |
| application_id | Internal UUID identifying your app |
Relationship summary
| Relationship | Cardinality |
|---|---|
| Connector → Connections | One to many |
| Company → Connections | One to many |
| Connector → Companies (via Connections) | Many to many |