Why did I get API error code 10562 or 10563?

This error occurs when the API request contains an invalid expiration date.

To resolve this, review the error code received and amend the corresponding part of the credit card's expiration date:

  • 10562 - The expiration year must contain four digits (YYYY) and be equal to or greater than the current year (for example, "2030").
  • 10563 - The expiration month must contain two digits (MM) between "01" and "12." Include a leading zero where necessary (for example, "05" for May).


PayPal NVP and SOAP API Reference Guides.

See the Developer Portal for a complete list of NVP/SOAP API error codes.

More ways we can help

Resolution Center

Fix transaction and account related issues

Tax center

Get your 1099-K and other tax info here

Business Help

Get help with using any of our PayPal products

Technical Help

Find out how PayPal works for your business

Message Center

Send, receive, and view your PayPal messages