Visa Developer Community

Highlighted
Occasional Contributor

"userKey" parmeter in Enroll Customer API

For the Enroll Customer API, I set the value of "userKey" parmeter as unique string of user(such as email or mp). And only one card is contained in the "cards" parmeter every call of API. When I call the API to bind other card for user, the response is that:
{

    "errorCode": "RTMENRE0025",
    "errorMessage": "The UserKey provided is already in use."
}

 

So how to solve this problem?


Should I call the Unenroll Customer API first and then call the Enroll Customer API of containing all the user's card ? Or I can generate a different userKey every time call for the same user ?

 

A confuse, is the "userKey" parmeter related to user or user's card?

4 REPLIES
Occasional Contributor

Re: "userKey" parmeter in Enroll Customer API

Where Visa Developers hide? Come out, I need your answer.
Community Manager

Re: "userKey" parmeter in Enroll Customer API

Hi,

 

We are looking into the options which can resolve this for you. we will get back to you shortly.

 

Thanks

Sanobar

Community Manager

Re: "userKey" parmeter in Enroll Customer API

Hello,

Add card functionality isn't available yet. So if multiple cards need to be enrolled then it needs to be unenrolled and then add multiple cards to it.

 

Thanks

Sanobar

Occasional Contributor

Re: "userKey" parmeter in Enroll Customer API

This method seems complex. 

Can I generate a different UserKey for the different card of the same user ? That means every user has more different UserKeys value for different cards and use the userKey value related to this card to do something else like active offer. Is is 

reasonable and correct ?