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/token

Request

Body: Form-data

grant_type: "client_credentials"
scope: "webapi usermanagement email_send statement verification payment statistics"
client_id: "test"
client_secret: "yF587AV9Ms94qN2QShFzVR3vFnWkhjbAK3sG"

FieldDescription
grant_typeAuthorization type, client_credentials type is used for making a payment
scope of applicationResource
client_idMerchant ID, can be obtained in the cabinet, issued during registration
client_secretThe 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"
}

FieldDescription
access_tokenToken for the operation
expires inToken expiration time
refresh_tokenNot used for this type of authorization
scope of applicationResource, a resource is used for making a payment
token_typeAuthorization 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