Paypal API – Security header is not valid (10002)


When integrating the PayPal API you might get the following error returned:

array(9) {
  ["TIMESTAMP"] => string(20) "2010-04-05T09:10:07Z"
  ["CORRELATIONID"] => string(12) "928a82db523e"
  ["ACK"] => string(7) "Failure"
  ["VERSION"] => string(2) "56"
  ["BUILD"] => string(7) "1236498"
  ["L_ERRORCODE0"] => string(5) "10002"
  ["L_SHORTMESSAGE0"] => string(14) "Security error"
  ["L_LONGMESSAGE0"] => string(28) "Security header is not valid"
  ["L_SEVERITYCODE0"] => string(5) "Error"

This might have two possible causes:

  1. you are using the wrong credentials (trying to connect to the Sandbox API URL using the Live credentials or vice versa)
  2. you are missing a & character in the NVP string, after the SIGNATURE, PWD or USER keys.

29 Responses to “Paypal API – Security header is not valid (10002)”

  1. 1 jay

    in my case, it’s because i called test mode link instead of live link.

    • Very helpful information. Thanks Jay

    • 3 sgr

      @jay: which one is the live link..?

    • 4 lojiSmith

      c n you please help me on sandbox user? i mean i am confused by different users, i thought the user remains the same but if we call on sandbox url this call is considered as test call otherwise its considered live call. you were correct, i used the live credentials on sandbox api
      please help me creating sandbox user, tx

  2. 6 keha76

    Had the same problem, in my case i just misspelled the the sandbox variable though.

  3. Thanks a lot!!! 😀 😀 😀

  4. 9 ravik

    i am not getting! same error

  5. 10 ravik

    any one plz help me

  6. 11 Admin Adm

    @ravik, no one on the internet has the time and patience to help you. that’s not how you succeed as a developer. Read the info, comprehend it and move along. If you can’t figure out, maybe you should try a different job

  7. Outstanding submit. I used to be checking consistently that web site using this program . empowered! Very useful information and facts especially the very last element 🙂 We maintain this kind of data lots. I’d been interested in this unique details for a while. Cheers and also involving good fortune.

  8. In my case i was getting an error because of api signature . When i copied and pasted from paypal i was having a trailing space also but i removed it . That caused my error .

  9. missing ‘&’. I love you mate

  10. Hi, I do thinmk this is an excellent website.
    I stumbledupon it 😉 I aam goinbg to revisit yet
    again since I saved as a favorite it. Money and freedom is thhe best way
    to change, may you be rich and continue to guide other people.

  1. 1
  2. 2
  3. 3 Matalan discount code
  4. 4 cheap hotels new york times square
  5. 5 discount codes 2015
  6. 6 congressman john lewis new book
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11 promo codes for howrse Passes
  12. 12 discount vouchers for restaurants in york
  13. 13 ninjavouchers.Co.Uk
  14. 14

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: