dev123
New Contributor

Getting NPPS012 Bad Request Response

2021-11-19 14:06:51.253 payload plaintext: {"stopInstructionId":"1234567"}
2021-11-19 14:06:51.371 ---> POST https://sandbox.api.visa.com/vsps/retrieve HTTP/1.1
2021-11-19 14:06:51.372 Authorization: Basic RkNCVVpSNjVPTTRISTdUMTVGWUMyMWNNOUZhemVBd2RPanVJUWhsMXZmdjUzd0FlODpOZEJIdFdocFUyNzQ2ZG41NDhvRzlFQmwxMlc4WHU=
2021-11-19 14:06:51.372 Content-Length: 578
2021-11-19 14:06:51.372 Content-Type: application/json
2021-11-19 14:06:51.373 keyId: 9d1aacff-7697-4743-9521-e377ed7b9682
2021-11-19 14:06:51.373
2021-11-19 14:06:51.373 {"encData":"eyJlbmMiOiJBMTI4R0NNIiwiaWF0IjoxNjM3MzUyNDExMjY0LCJhbGciOiJSU0EtT0FFUC0yNTYiLCJraWQiOiI5ZDFhYWNmZi03Njk3LTQ3NDMtOTUyMS1lMzc3ZWQ3Yjk2ODIifQ.Pzr15rIOS9kvMfOLDRuV4Dk_z4dbjrSX7sXEmb1q-JRW5dHFNUeY9MapwpcsfrN1mBZoBWFFtD0Bi5KN1CJ97hhG9_6cH29vEJvX3iyiOVcSofzYG8IIyp354K7EFKTC8NJ-zxsx0aky8IrrcXiA4OfP5JXY22aYzQKB9O78yWFQhk4AKGkcFr-iuKwW6a4VWOGEm7qIXLTp2_K9WtpsPrN3RrsilqrxXyIQaHuDMGkley-qfdXB7dI1GUpGmoFN1oZY6Aj_WlPSjbmGlGssK3eb_09vIxSpzulgcNBlsvMIsxnI2Z8fb9p9i3x5Yt0Vwv1vvFy05TRvRLXGFVUckQ.kizok97mRFmVKVDc.AXCMKrfUa_yFArzdihq_MeBFqkIhTQKHaFQFSVJ1KA.tWiSCwuugeRd4tBgAnEKfA"}
2021-11-19 14:06:51.373 ---> END HTTP (578-byte body)
2021-11-19 14:06:51.858 <--- HTTP/1.1 400 Bad Request (480ms)
2021-11-19 14:06:51.858 cache-control: no-cache, no-store, must-revalidate
2021-11-19 14:06:51.858 connection: keep-alive
2021-11-19 14:06:51.858 content-length: 65
2021-11-19 14:06:51.858 content-type: application/json;charset=UTF-8
2021-11-19 14:06:51.859 date: Fri, 19 Nov 2021 20:06:51 GMT
2021-11-19 14:06:51.859 expires: -1
2021-11-19 14:06:51.859 pragma: no-cache
2021-11-19 14:06:51.859 server: nginx
2021-11-19 14:06:51.859 x-app-status: 400
2021-11-19 14:06:51.859 x-cnection: close
2021-11-19 14:06:51.859 x-cnection: close
2021-11-19 14:06:51.859 x-content-type-options: nosniff
2021-11-19 14:06:51.859 x-correlation-id: 1637352411_629_2074129984_l55c015_VDP_WS
2021-11-19 14:06:51.859 x-error-origin: 9300
2021-11-19 14:06:51.859 x-frame-options: SAMEORIGIN
2021-11-19 14:06:51.859 x-served-by: l55c015
2021-11-19 14:06:51.860 x-xss-protection: 1; mode=block
2021-11-19 14:06:51.860
2021-11-19 14:06:51.861 {"status":"BAD_REQUEST","code":"NPPS012","message":"Bad request"}
2021-11-19 14:06:51.861 <--- END HTTP (65-byte body)

2 REPLIES 2
jenn_kh
Community Moderator

Re: Getting NPPS012 Bad Request Response

Thank you for reaching out, @dev123! An agent is looking for a solution for you and will get back with you shortly! If any community members know of a solution, please feel free to respond in this thread. - Jenn

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: Getting NPPS012 Bad Request Response

Hi @dev123,

 

Please double-check that you are encrypting the request payload properly.

 

Please refer to the MLE resources in the below links and try again.

 


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.