VTS Enroll card api issue

SOLVED
Highlighted
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?

 

2 REPLIES 2
Highlighted
Regular Visitor

Re: VTS Enroll card api issue

solved

the problem was in JWE algorithm 

Highlighted
Visa Dev Moderator

Re: VTS Enroll card api issue

Hey @KarinaChibunina,

 

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

 



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

Thanks,
Diana