Customer Rules API - updating controls

Solved! Go to solution
AndrewMoore
Regular Visitor

Customer Rules API - updating controls

Hi all!

New here, so I hope this is not out of place. I have what I think is a very simple question. Say I have a card already enrolled, and some controls are set for it. Among them, there is a declineThreshold set to a certain amount. If I now want to leave free that setting, without touching the rest of the control, what exactly do I do? Send that parameter as 0? Sending a new control without that? Like, should my body be like this:

 

{
"globalControls": [
{
"isControlEnabled": true,
"shouldAlertOnDecline": false,
"shouldDeclineAll": false,
"userIdentifier": "abhi-539d-4f93-ba00-77ef9ff873a2",
"declineThreshold": 0, "alertThreshold": 15 } ] }

Or like this:

 

 

{
"globalControls": [
{
"isControlEnabled": true,
"shouldAlertOnDecline": false,
"shouldDeclineAll": false,
"userIdentifier": "abhi-539d-4f93-ba00-77ef9ff873a2",
"alertThreshold": 15
}
]
}

Or any other way?

 

Thanks in advance!

 

1 REPLY 1
API_Products
Visa Developer Support Specialist

Re: Customer Rules API - updating controls

Hi @AndrewMoore,

 

That's a good question! If you do not want to use that parameter, then you will not have to include it in the code.

 

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.