Authentication and Authorization
This method allows businesses to undergo the authentication process. Upon calling the API, the online payment server returns the Bearer Token, which is the necessary authentication parameter for calling all further methods.
OAuth 2.0 Client Credentials1
- Token URL:
POST https://oauth2.bog.ge/auth/realms/bog/protocol/openid-connect/token - Grant type:
client_credentials - Headers:
Authorization: Basic <base64(client_id:client_secret)>,Content-Type: application/x-www-form-urlencoded - Body:
grant_type=client_credentials - Response:
access_token,token_type=Bearer,expires_in(seconds)
- REQUEST
curl -X POST 'https://oauth2.bog.ge/auth/realms/bog/protocol/openid-connect/token' \
-u {client_id}:{client_secret} \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials'
- RESPONSE
{
"access_token": "<JWT>",
"token_type": "Bearer",
"expires_in": 1634719923245
}