VTS Enroll card api issue

Solved! Go to solution
KarinaChibunina
Regular Visitor

VTS Enroll card api issue

I have an issue with the visa token service API. Here is an example of my request:

Request URL
https://cert.api.visa.com/vts/panEnrollments?apiKey={myKey}

Request HEADERS

{"User-Agent":"Conveyor 1.0","Accept-Charset":"utf-8","Content-Type":"application/json; charset=utf-8","X-Corezoid-Process":"710477","X-Corezoid-TaskID":"5e9420fd513aa0645132c8cf","x-pay-token":"x:1586766086:4dfc02b4999e6fb73d7101a119304f8be9cac3e7fd934cc52983b7a47b907860","x-request-id":"5e9420fd513aa0645132c8cf"}

Request BODY
{
     "locale": "en_US",
     "clientWalletAccountID": "3D53EEB00F3E95E5",
     "panSource": "ONFILE",
     "encPaymentInstrument": "ZXlKaGJHY2lPaUpRUWtWVE1pMUlVelV4TWl0Qk1qVTJTMWNpTENKd01uTWlPaUk0VVRGVGVtbHVZWE5TTTNoamFGbDZObHBhWTBoQklpd2ljREpqSWpvNE1Ua3lMQ0pqZEhraU9pSnFkMnN0YzJWMEsycHpiMjRpTENKbGJtTWlPaUpCTVRJNFEwSkRMVWhUTWpVMkluMC5EeklsdFdud3JLOGU2ZE5KU1M3ZnhWY2l4SkVIZVZPNWo5TmJTZElMaE5JaGdyN0JIbDhKYncuQkw1dGNJR3FWOTJUd0t5b0gyajFjUS5aNjN4dnJtTzB1MkExaldlYWNmV0tPd0VlZWtCakFoZU1sVXFscUJJTi1RVmZ3RG9Jb1NnYkRDaVV1WkJjRUt6dWY2UE1oNmpMZE5Xd05QeWN5TF9CQ3NHdWZORFVqZHVVVTd2Q0VyckQtMUxnbVljTlpVaWxkZXZPLVJGUkhfck42SFY0dW8wdHpQRnhxT2VIUlFteERnS05felN1NmVZRzBzblliZzRzazdhSGxnTGlKTWFhSG95b1lvaXdJYmQubnNObnp2X0Q0clR1Szc1Y2JGb0VDUQ==",
     "clientAppID": "a24"
}

and got response code 400

Response BODY

{"errorResponse":{"status":400,"message":"The request does not have minimum set of parameters required to process the business function. Following parameters may be missing:<encPaymentInstrument>","reason":"incompleteRequest","details":[{"location":"encPaymentInstrument"}]}}


For generating encPaymentInstrument I use such a body:

{
       "accountNumber": "4323********1672",
       "expirationDate": {
           "year": "2021",
           "month": "11"
       }
}

What can be the reason for an error?

 

3 REPLIES 3
KarinaChibunina
Regular Visitor

Re: VTS Enroll card api issue

solved

the problem was in JWE algorithm 

API_Products
Visa Developer Support Specialist

Re: VTS Enroll card api issue

Hey @KarinaChibunina,

 

Thanks for letting us know how the issue got resolved. Have a nice day.

 




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.

paul_earnest
Regular Contributor

Re: VTS Enroll card api issue

Dear Diana, 

 

Even we faced this issue earlier during our VTS implementation, Just a general observation is the reason or the response code and message framework in VTS should be improved a lot. It takes a lot of time to debug either from the Visa support executive or from our end to find out the root cause.

 

Thank You

Paul