ErrorCode 10002, Security Header is not valid.

Vitthal
Contributor
Contributor

Hi,

I am trying to integrate PayPal with IBM WCS9 using a Sandbox account. I am trying to retrieve token using SetExpressCheckout API, but getting 10002 error. Below are the details. Kindly help.

 

URL: https://api-3t.sandbox.paypal.com/nvp?METHOD=SetExpressCheckout&RETURNURL=http%3A%2F%2Flocalhost%2Fw...

 

Response: 

TIMESTAMP=2018%2d01%2d31T07%3a07%3a50Z&CORRELATIONID=528451eabf4c0&ACK=Failure&VERSION=0%2e000000&BUILD=43109726&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error

 

Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
Hello,

The "10002" API response means that there is an issue with the API credentials you have provided. Check the credentials that you've entered, ensure that there are no "white spaces" at the start or the end of the credentials.

All our API error codes are available to view here : https://developer.paypal.com/docs/classic/api/errors/
If you copied and pasted the credentials from your PayPal account, ensure that if your pasting them into a program, that the program isn't modifying the credentials as some programs do to accomplish formatting.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Vitthal
Contributor
Contributor
Hi Justin, The API credentials work fine when I use it in a SOAP request. But in NVP, I tried different ways to use these credentials, through Postman client and browser too, but no luck. Can you pls confirm whether I need to pass these credentials as parameters in the url along with other parameters, as mentioned above, or do I need to pass them in request headers? Also the PayPal documentation doesn’t have any details about how to use API credentials for NVP format. Thanks, Vitthal
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

The following PayPal documentation covers this topic - https://developer.paypal.com/docs/classic/api/gs_PayPalAPIs/#payload

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.