Getting NPPS012 Bad Request error with MLE encryption

Solved! Go to solution
sabandi
Regular Visitor

Getting NPPS012 Bad Request error with MLE encryption

Request:

 

curl --location --request POST 'https://sandbox.api.visa.com/forward/cardservices/v1/cards/v-402-f7e55034-0b62-44fe-894e-d3363f48a92...' \
--header 'keyid: d872793f-8e2f-4db6-aaaa-xxxxx' \
--header 'Authorization: Basic NU1aS1dETTRNOFRQSjc2TjVHMjcyMU54NlJrbTFFcF80Y2ZV.................SjkwbTE1' \
--header 'Content-Type: application/json' \
--data-raw '{
"encData": "eyJlbmMiOiJBMTI4R0NNIiwiaWF0IjoxNjcyOTIxMTY5Mjg3LCJhbGciOiJSU0EtT0FFUC0yNTYiLCJraWQiOiJkODcyNzkzZi04ZTJmLTRkYjYtYWFhYS0zMWE3MjM0NDA0NzcifQ.JkvT9h9DCi3bZG-X7hvUbrEQA8f2oCCa_9m2gH6MIWLAWeCylg8vf2XxfBZXtvTUrblpUwG9QlnS3oYaYMQ40kT66OX5gb8gX5ABrygADro8SDaSvNNIEnoMQpN4AS4ltFX61pRdjDF8HP37S29ag_w7iySLc2_NVqG8XJ6HsXZoO5d1Xwy8cbvi8GKze8OvVWfNcjFrbw0rZxH_PqG3TT25BpBBrNqQC1I2WBfzsbI6k1uTqOafLdaUvfDJaDLUQFJOSnl_exjMNbropzEh-aBDpZCee4YJTWexjXmxTT70BBwOOIaOPYYjg1VAaysYog9dVfuJrX6SpfRG577ajA.8SLhTrne_MkTyG3X.vInRZiUCagaUanMKPi0.Raxdh8bQqMLcA2AFitCiyw"
}'

Request Payload in Plain Text:

{"pin" :"1234"}

 

Response:

{
"status": "BAD_REQUEST",
"code": "NPPS012",
"message": "Bad request"
}

 

Correlation ID: 1672921169_771_1033299389_-5b57c5-8_VDP_WS

 

4 REPLIES 4
jenn_kh
Community Moderator

Re: Getting NPPS012 Bad Request error with MLE encryption

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

sabandi
Regular Visitor

Re: Getting NPPS012 Bad Request error with MLE encryption

Hi @jenn_kh,

We have identified that the issue is due to an invalid character in the certificate.
jenn_kh
Community Moderator

Re: Getting NPPS012 Bad Request error with MLE encryption

Thank you for letting us know, @sabandi. -Jenn

srinivasulu
New Contributor

Re: Getting NPPS012 Bad Request error with MLE encryption

Can you share piece of certificate where you find the invalid character