URL POST /oauth2/token

TEST URL POST https://testoauth.homebank.kz/epay2/oauth2/token
PROD  URL POST https://epay-oauth.homebank.kz/oauth2/token

Client credentials

Request

Request Body:
    grant_type:         "client_credentials"
    scope:              "webapi"
    client_id:          "CLIENTID"
    client_secret:      "CLIENTSECRET"

Responce

{
    "access_token": "DCEB8O_ZM5U7SO_T_U5EJQ",
    "expires_in": 7200,
    "scope": "webapi",
    "token_type": "Bearer"
}

Error

HTTP code 4XX.X 

Password credentials

Request

Request Header
    deviceid:          "69f3db46-8092-4094-8910-bb6e3d6ba969"	//не обязательное
    ip:                "10.3.23.42"								//не обязательное
    fingerprint:       "asdasdfr90a7889a7sdasd9"				//не обязательное

Request Body:
    grant_type:        "password"
    username:          "USERNAME"
    password:          "USERPASSWORD"
    scope:             "api"
    client_id:         "CLIENTID"
    client_secret:     "CLIENTSECRET"

Responce

{
    "access_token":"f2288c2b-1d08-4aac-a210-d62c0901f915",
    "token_type":"bearer",
    "refresh_token":"3f94522d-5a5a-4a22-bc85-f5f5a56920b4",
    "expires_in":43199
}

Error

HTTP code 4XX.X