Skip to main content

recurrent/disable

recurrent/disable

This request is used to disable a recurrent token. Pass the token in the request, in the response you will get is_active: false. This means the token has been disabled, you cannot perform recurrent payments with this token any longer.

Endpoint

api/v1/recurrent/disable

Request parameters

NameMandatoryTypeDescription
recurrent+RecurrentTokenToken data

Request example

curl -X POST \
https://demo.smart-glocal.com/api/v1/recurrent/disable \
-H 'Content-Type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: 721af394d5a7aefd0e91f5390abc4d7e20fb2b5784b091fef621f3c61b7abb4b' \
-d '{
"recurrent": {
"token": "97417d4a9a23da9c2401c510a3fc45c2d1752f68ac9fd2a366698d70293b6427"
}
}'

Response parameters

NameMandatoryTypeDescription
status+stringStatus. Options: error, ok
recurrent+RecurrentTokenInfoToken data
error-ErrorError

Successful response example

{
"recurrent": {
"token": "97417d4a9a23da9c2401c510a3fc45c2d1752f68ac9fd2a366698d70293b6427",
"created_at": "2020-07-14T13:17:11+03:00",
"finished_at": "2020-07-31T16:05:42+03:00",
"is_active": false
},
"status": "ok"
}

Unsuccessful response example

    {
"error": {
"code": "error code",
"description": "error description"
},
"status": "error"
}