In this section, you will learn how to disable card authorisation type in Tuum.
In this use case, we will deactivate purchase transactions with cash back for the card.
We will update the settings for card C001664282649.
We will disable purchases with cash back (serviceCode = 09).
To disable a card authorisation type, use the following endpoint:
https://card-api.sandbox.tuumplatform.com/api/v1/cards/{cardId}/settings/authorisation-types/{serviceCode}/disable
The sample request body is as follows:
No request body.
curl -X 'POST' \
'https://card-api.sandbox.tuumplatform.com/api/v1/cards/C001664282649/settings/authorisation-types/09/disable' \
-H 'accept: */*' \
-H 'x-tenant-code: MB' \
-H 'Accept-Language: en' \
-H 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjUtMDQtMDJUMDg6MDE6NTQiLCJleHAiOjE3NDM1ODA5MTQsInJvbGVzIjpbIkFETUlOIiwiUE9TVElOR1NfVEVBTSIsIlNZU1RFTSJdfQ.UbVbQx2Q4anDZxWxIQ9919A2Ka15uneqhM5ZmIoOAYw' \
-d ''
Below is an example of the response body for the API call above.
Cash back purchases (serviceCode = 09
) are no longer allowed on card C001664282649
. Changes to card services take effect immediately.
...cards/C001664282649/settings/...
...authorisation-types/09/disable