Receiving token
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 Body:
grant_type: "client_credentials" scope: "webapi" client_id: "CLIENTID" client_secret: "CLIENTSECRET"
Response
{
"access_token": "DCEB8O_ZM5U7SO_T_U5EJQ",
"expires_in": 7200,
"scope": "webapi",
"token_type": "Bearer"
}
Error
HTTP code 4XX.X
Password credentials
Request Header
deviceid: "69f3db46-8092-4094-8910-bb6e3d6ba969" //not required ip: "10.3.23.42" //not required fingerprint: "asdasdfr90a7889a7sdasd9" //not required
Request Body:
grant_type: "password" username: "USERNAME" password: "USERPASSWORD" scope: "api" client_id: "CLIENTID" client_secret: "CLIENTSECRET"
Response
{ "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