---
title: Authentication
description: Favrit uses standard OAuth 2.  If your implementation doesn't support Oauth 2, you may generate an access token by making a direct request, as described below. To get an access token, you'll need to g
---

[Skip to content](https://support.favrit.com/authentication#main-content)

English

Show submenu for translations

[![Favrit logo](https://support.favrit.com/hs-fs/hubfs/Favrit_Logo_Positive_RGB-Aug-01-2022-01-35-58-31-PM.png?height=40&name=Favrit_Logo_Positive_RGB-Aug-01-2022-01-35-58-31-PM.png)](https://support.favrit.com?hsLang=en)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Contact Favrit Support](https://support.ordr.no/contact-ordr#)

[Contact Favrit Support](https://support.ordr.no/contact-ordr#)

 Favrit Support

- There are no suggestions because the search field is empty.

1. [Support](https://support.favrit.com/?hsLang=en)
2. [Developer](https://support.favrit.com/developer?hsLang=en)
3. [Rest API introduction](https://support.favrit.com/developer?hsLang=en#rest-api-introduction)

January 10, 2025

# Authentication

Favrit uses standard OAuth 2. 

If your implementation doesn't support Oauth 2, you may generate an access token by making a direct request, as described below.

To get an access token, you'll need to generate a base64-encoded string from your ClientId and SecretId using a colon (:) separator (i.e \<ClientId\>:\<SecretId\>) and send an authentication request like below.

Request Sample:

```
curl --location --request POST 'https://accounting-api-auth.favrit.com/oauth2/token' \  --header 'Authorization: Basic ***************' \  --header 'Content-Type: application/x-www-form-urlencoded' \  --data-urlencode 'grant_type=client_credentials' \  --data-urlencode 'scope=prod/user prod/accounting prod/transaction'
```

Here \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* is the base64 valuer of your \<ClientId\>:\<SecretId\>

Response Sample:

```
{    "access_token": "eyJraWQiOiI3ZFU5Y2ljU0RMemlEQTdQNEVLVUpheEZ5TWgrMU1YNWJNazJOQWZLUVdRPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIxYjhzYzA3czl1c2twamNibjk2ZTF0ZTVmNCIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoicHJvZFwvYWNjb3VudGluZyIsImF1dGhfdGltZSI6MTYzNDA5Nzk2MywiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmV1LW5vcnRoLTEuYW1hem9uYXdzLmNvbVwvZXUtbm9ydGgtMV9TdHdiQzBTZ0ciLCJleHAiOjE2MzQxMDE1NjMsImlhdCI6MTYzNDA5Nzk2MywidmVyc2lvbiI6MiwianRpIjoiNjJjNjk1M2YtMzBjMC00MjM3LWJkYWUtNDg0YTBlZDhmZmFmIiwiY2xpZW50X2lkIjoiMWI4c2MwN3M5dXNrcGpjYm45NmUxdGU1ZjQifQ.FM_uiOpLRm3tn42kefpkgDyicZGrruKXGf9Z4xYCudR8i6KGHEYw8ne6LPYtVQwYvBNuoCk54Dy90QLVXlXYob9EBH-hKlrymY0lnGxlKcSr9urswwqsTYHW5t3WyoX55cNw6cO5Dzxkdvk_vkXvXFVe7G4uM21OTDp_i6uuDdrBJjJea0lCW28TTmar_1nnHRLrMbDM_FjMqBhaFqGF0FUt8ppo3FHQlHTWEwhxlMUbIEjI01ScC3hd460E0_313QQTH12WdgpqWwxTjI0kqtRmvh6ZzuxWcL4OQ2v6BFhinaQU7SLCgHanNswhdHsCLUx9Xw-trvqqfL49I46ybg",    "expires_in": 3600,    "token_type": "Bearer"}
```

The access token should be used as an authorization token (i.e 'Bearer \<access\_token\>') for subsequent API calls. The \`expires\_in\` value is represented in seconds, which means it will be expired after 3600 second.

- [Account and access](https://support.favrit.com/account-and-access?hsLang=en)
- [Menu](https://support.favrit.com/menu?hsLang=en)
- [Printers and cash drawers](https://support.favrit.com/printers-and-cash-drawers?hsLang=en)
- [Payment terminals](https://support.favrit.com/payment-terminals?hsLang=en)
- [Orders and payments](https://support.favrit.com/orders-and-payments?hsLang=en)
- [Accounting and integrations](https://support.favrit.com/accounting-and-integrations?hsLang=en)
- [Reports](https://support.favrit.com/reports?hsLang=en)
- [QR codes and guest ordering](https://support.favrit.com/qr-codes-and-guest-ordering?hsLang=en)
- [Billing and company account](https://support.favrit.com/billing-and-company-account?hsLang=en)
- [Help for Guests](https://support.favrit.com/help-for-guests?hsLang=en)
- [Developer](https://support.favrit.com/developer?hsLang=en#main-content)

    - [Rest API introduction](https://support.favrit.com/developer?hsLang=en#rest-api-introduction)
    - [Endpoints and models](https://support.favrit.com/developer?hsLang=en#endpoints-and-models)
- [Contact and Company information](https://support.favrit.com/contact-and-company-information?hsLang=en)

[![Scheme=Light Mode](https://support.favrit.com/hs-fs/hubfs/Scheme=Light%20Mode.png?width=86&height=24&name=Scheme=Light%20Mode.png "Scheme=Light Mode")](http://favrit.com)

Favrit Support is available through phone and email support. Opening hours: see [Contact Favrit Support](https://support.favrit.com/contact-favrit?hsLang=en)   
Status page: [status.favrit.com](https://status.favrit.com/)

Copyright © 2026, Favrit AS