v20.24.1.2
OpenAPI 3.1.1
Account
Account and authentication API.
Covers the full account and authentication API family, spanning both the v1 (cookie-only) and v2/v3 endpoints exposed under the Account route. Together these endpoints allow callers to:
- Log in with a username/password using either cookie based sessions (v1
Login, v2CreateCookieSession) or JWT bearer tokens (v2Token/GenerateToken), and log out of either scheme (Logout,RevokeToken). - Discover whether a login uses Auth0 (OAuth) or basic password authentication (
AuthType/AuthSettings), and complete the Auth0 login redirect/callback handshake (LoginAuth0,Auth0Callback). - Refresh or revoke JWT tokens, and exchange a JWT for a cookie session or vice versa.
- Read the current account/profile information, business date, preferences, language and notification settings.
- Switch the active company (for employees who work across multiple companies) and switch the active store/unit within a company, including switching back to a parent context.
- Perform self-service password management: change password while logged in, or reset a forgotten password via an emailed token.
- Integrate with Brink POS single sign-on: validate a Brink token, create a session, and map a Brink user to a DC (DataCentral) user.
Most endpoints require an authenticated session (cookie or JWT bearer, depending on the endpoint); endpoints used before a session exists (login, forgot/reset password, Auth0/Brink handshakes) are anonymous. New clients should prefer the v2/v3 endpoints, which support both cookie and JWT bearer authentication; the v1 endpoints are kept for callers that only use cookie based login.
Client Libraries
