Visa Developer Community

Regular Visitor

Transaction not supported

Hi!

 

I'm working with the sandobox, and I'm getting an error when trying to create the controls for a new card. What I send is as follows:

 

{
		"globalControls": [
		{
			"isControlEnabled": true,
			“shouldAlertOnDecline”: false,
		"shouldDeclineAll": true,
			"shouldTargetSpecificCard": "false",
		}
		],
		"transactionControls": [
		{
			"isControlEnabled": true,
			"shouldDeclineAll": false,
			"shouldAlertOnDecline": false,
			"shouldTargetSpecificCard": false,
			"controlType": "TCT_ATM_WITHDRAW"
		},
		{
			"isControlEnabled": true,
			"shouldDeclineAll": false,
			"shouldAlertOnDecline": false,
			"shouldTargetSpecificCard": false,
			"controlType": "TCT_CROSS_BORDER"
		},
{
		"isControlEnabled": true,
		"shouldDeclineAll": false,
		"shouldAlertOnDecline": false,
		"shouldTargetSpecificCard": false,
		"controlType": "TCT_CONTACTLESS"
	},
{
		"isControlEnabled": true,
		"shouldDeclineAll": false,
		"shouldAlertOnDecline": false,
		"shouldTargetSpecificCard": false,
		"controlType": "TCT_BRICK_AND_MORTAR"
	},
{
		"isControlEnabled": true,
		"shouldDeclineAll": false,
		"shouldAlertOnDecline": false,
		"shouldTargetSpecificCard": false,
		"controlType": "TCT_E_COMMERCE"
	}
]
}

I get the following error (from postman):

 

 

The following transaction type rules are not supported: TCT_BRICK_AND_MORTAR,TCT_ATM_WITHDRAW,TCT_E_COMMERCE,TCT_CROSS_BORDER

I've taken the transaction types from the API description, and what puzzles me the most is only four of the types I'm sending get rejected. "TCT_CONTACTLESS" seems to work fine. This exact same call to the createRules service used to work in the past, so I don't know if I actually changed something without noticing, or there is something that I'n not understanding.

 

Any help is welcome. Thanks in advance!

2 REPLIES
Valued Supporter

Re: Transaction not supported

Hello @AndrewMoore

 

I am working on your inquiry, I will get back to you soon. 

 

Thank you, 

Vaibhav 

Highlighted
Valued Supporter

Re: Transaction not supported

Hello @AndrewMoore

 

I tried this and it worked fine for me. Can you please retry and provide us the x-correlation-id & end point URL if issue still persists.

 

JSON format had some issues in the below. I had to correct it to make it work.

 

Updated Format Below

 

{

"globalControls": [

{

"isControlEnabled": true,

"shouldAlertOnDecline": false,

"shouldDeclineAll": true,

"shouldTargetSpecificCard": "false"

}

],

"transactionControls": [

{

"isControlEnabled": true,

"shouldDeclineAll": false,

"shouldAlertOnDecline": false,

"shouldTargetSpecificCard": false,

"controlType": "TCT_ATM_WITHDRAW"

},

{

"isControlEnabled": true,

"shouldDeclineAll": false,

"shouldAlertOnDecline": false,

"shouldTargetSpecificCard": false,

"controlType": "TCT_CROSS_BORDER"

},

{

"isControlEnabled": true,

"shouldDeclineAll": false,

"shouldAlertOnDecline": false,

"shouldTargetSpecificCard": false,

"controlType": "TCT_CONTACTLESS"

},

{

"isControlEnabled": true,

"shouldDeclineAll": false,

"shouldAlertOnDecline": false,

"shouldTargetSpecificCard": false,

"controlType": "TCT_BRICK_AND_MORTAR"

},

{

"isControlEnabled": true,

"shouldDeclineAll": false,

"shouldAlertOnDecline": false,

"shouldTargetSpecificCard": false,

"controlType": "TCT_E_COMMERCE"

}

]

}

 

Thank you, 

Vaibhav