Deactivation of the Card ID
Getting a token to make a request (for each operation it is necessary to receive and use the original token)
POST TEST URL https://testoauth.homebank.kz/epay2/oauth2/token A MESSAGE WITH A PROD URL https://epay-oauth.homebank.kz/oauth2/tokenRequest
Body: Form-data
grant_type: "client_credentials" scope: "webapi usermanagement email_send statement verification payment statistics" client_id: "test" client_secret: "yF587AV9Ms94qN2QShFzVR3vFnWkhjbAK3sG"
| Field | Description |
|---|---|
| grant_type | Authorization type, client_credentials type is used for making a payment |
| scope of application | Resource |
| client_id | Merchant ID, can be obtained in the cabinet, issued during registration |
| client_secret | The merchant's access key, which can be obtained in the cabinet, is issued upon registration |
Response
{
"access_token": "DCEB8O_ZM5U7SO_T_U5EJQ",
"expires_in": 7200,
"refresh_token":"",
"scope": "webapi usermanagement email_send statement on checking payment statistics",
"token_type": "Bearer"
}
| Field | Description |
|---|---|
| access_token | Token for the operation |
| expires in | Token expiration time |
| refresh_token | Not used for this type of authorization |
| scope of application | Resource, a resource is used for making a payment |
| token_type | Authorization type |
Request example
METHOD: POST
https://testepay.homebank.kz/api/card/deactivate/cardID https://epay-api.homebank.kz/card/deactivate/cardID
https://testepay.homebank.kz/api/card/deactivate/03c7ac2b-6a71-40a9-ae75-fd5de9ddc631
Answer:
{"status": "card successfully deactivated"}// if the card has been successfully deactivated