Токенді алу
URL POST /oauth2/token
URL test https://testoauth.homebank.kz/epay2 URL prod https://epay-oauth.homebank.kz
Client credentials
Request Body:
grant_type: "client_credentials" scope: "webapi usermanagement email_send verification statement statistics payment" 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
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"
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