Re: Customer Rules Registration, always return 9159

Solved! Go to solution
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Customer Rules Registration, always return 9159

Hi @JavierSivack,

 

Correct, the tool is not compatible with Mac, unfortunately.


Best,
Stacey

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

Re: Customer Rules Registration, always return 9159

So? What can I do?


Javier Sivack
Software Engineer
Ciphertext Solutions, Inc.
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Customer Rules Registration, always return 9159

Hi @JavierSivack,

 

Please try the following:

resourcePath = 'customerrules/v1/consumertransactioncontrols';

postBody = pm.request.body.toString();

 

And add to the Postman Body

{"primaryAccountNumber": "451417000000XXXX"}

 

I was able to get a successful response in Postman.

 


Best,
Stacey

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

Re: Customer Rules Registration, always return 9159

Hi Stacy.

 

Ok, thanks make a change. 

But now I have these response:

{
    "metainfo": {
        "Description": "Bad Request",
        "Code": 400
    },
    "error": [
        "primaryAccountNumber can only have numeric digit."
    ]
}

 

 


Javier Sivack
Software Engineer
Ciphertext Solutions, Inc.
JavierSivack
Regular Contributor

Re: Customer Rules Registration, always return 9159

Testing with what you send me, and what I had, my auth problem was the resourcePath. I never tried that you send me, I think when I tried something similar I added the vctc part of the path like "vctc/customerrules/v1/consumertransactioncontrols".

Any way, now the problem is with data I think, response error message is "primaryAccountNumber can only have numeric digit." 

Strange, because on test data, it has that xxxx mask. 


Javier Sivack
Software Engineer
Ciphertext Solutions, Inc.
SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Customer Rules Registration, always return 9159

Hi @JavierSivack,

 

Please try and replace xxxx with 0001.

 

The sample test PAN for the Customer Rules API is also provided in the code explorer here: 

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

 


Best,
Stacey

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

Re: Customer Rules Registration, always return 9159

Stacy, that worked!

I'm wrong, or the Api references, has changed, I think I remember that it said that account number must be masked.

And if I look now in the Test Data in my dashboard, it still show a masked account number.


Javier Sivack
Software Engineer
Ciphertext Solutions, Inc.