Re: Customer Rules API - Batch Enrollment Error

pwharff
Helper

Customer Rules API - Batch Enrollment Error

When trying to perform a batch enrollment, I get the error below. Am I missing something? I am able to register the PAN successfully. Please help: 

 

Response Body

{
    "metainfo": {
        "Description": "Bad Request",
        "Code": 400
    },
    "error": "No validator could be found for type: com.visa.ip.vctc.model.transactioncontrol.BaseControl"
}

 

Request Body

{
	"cardsType": "PAN",
	"enrolledCards": [{
		"accountIdentifier": "XXXXXXXXXXXXXXXX"
	}],
	"controlRules": {
		"globalControl": {
			"alertThreshold": 10,
			"declineThreshold": 100,
			"isControlEnabled": true,
			"shouldAlertOnDecline": true,
			"shouldDeclineAll": false
		},
		"transactionControls": [{
				"alertThreshold": 10,
				"controlType": "TCT_ATM_WITHDRAW",
				"declineThreshold": 100,
				"isControlEnabled": true,
				"shouldAlertOnDecline": true,
				"shouldDeclineAll": false
			}
		]
	},
	"forceEnrollment": true
}

 

URI

https://sandbox.api.visa.com/vctc/customerrules/v1/consumertransactioncontrols/batch
16 REPLIES 16
API_Products
Visa Developer Support Specialist

Re: Customer Rules API - Batch Enrollment Error

Hi,

 

Thanks for asking this question! The error you are receiving indicates you have an invalid certificate and are failing authentication. Please follow the steps in the “Get Started” link below to register and create a Visa Developer application. https://developer.visa.com/vdpguide#get-started-overview

 

This guide walks you through the key steps for application creation, credentials, and connection validation. May I please request you to confirm that you have successfully completed the steps in the Get Started (including using SOAP UI and the Hello World sample application) to validate your credentials? Please provide screenshots of errors.

 

If the error persists, please send the response request of the error received and screenshot of the error for further investigation.

 

Thank you,

Diana




Thanks,

Diana



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

pwharff
Helper

Re: Customer Rules API - Batch Enrollment Error

Yes, I've followed the Getting Started guide. Authentication seems to be working as I've gotten "Hello World" and other REST calls working as well, including: Registration, Acccount Inquiry, Allowed Cards. 

 

Here is a screenshot from SoapUI:

 

VisaEnrollApi.PNG

pwharff
Helper

Re: Customer Rules API - Batch Enrollment Error

Also, is Enrollment and Registration essentially the same thing? Whereas Batch Enrollment is for registering multiple cards and Registration is for registering a single card?

API_Products
Visa Developer Support Specialist

Re: Customer Rules API - Batch Enrollment Error

Hi,

 

Can you please send the Correlation ID via email to Developer@visa.com and reference this post for further investigation? I'd like to keep your Correlation ID private so that's why I'm requesting you to email this information to Developer@visa.com.
 
Below are the steps to get the Correlation ID using a Google Chrome browser.
1>Open Chrome menu.
2>Click on More tools then Developer tools.
3>Check the box to Preserve Log for the Network Tab.
4>Then try to click on the add API link.
5>You can find the Correlation ID in the network log for add API call.

 

Thank you,

Diana




Thanks,

Diana



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

pwharff
Helper

Re: Customer Rules API - Batch Enrollment Error

I do not see the "add API" link, although your title does say it includes a link. Just don't see it.

API_Products
Visa Developer Support Specialist

Re: Customer Rules API - Batch Enrollment Error

Hi,

 

Instead of clicking on the "add API" link, can you please get the X-CORRELATION-ID from the response header of the call so that we can track back the logs?

 

Thank you,

Diana




Thanks,

Diana



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

pwharff
Helper

Re: Customer Rules API - Batch Enrollment Error

Ok, I've emailed you the X-CORRELATION-ID. Thanks Diana

pwharff
Helper

Re: Customer Rules API - Batch Enrollment Error

Also, is Enrollment and Registration essentially the same thing? Whereas Batch Enrollment is for registering multiple cards and Registration is for registering a single card?

API_Products
Visa Developer Support Specialist

Re: Customer Rules API - Batch Enrollment Error

Hi,

 

Registration: Register a primaryAccountNumber or Visa token or Bank Account Number in VTC.

https://developer.visa.com/capabilities/vctc/reference#vctc__customer_rules__v1__registration


Batch Enrollment: This API will allow Issuer to enroll multiple cards in to VTC with common set of VTC controls. API accepts List of Cards and control rules templates what will be applied to all cards being enrolled. forceEnrollment flag is set to true then any previous enrollment for any of requested PAN will be over written with then controls in the request.

https://developer.visa.com/capabilities/vctc/reference#vctc__customer_rules__v1__batch_enrollment

 

Thank you,

Diana

 




Thanks,

Diana



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