Why did I get API error code 10005?
Check your code to confirm you're not passing an unsupported argument. For more information on the valid arguments you can use, see the NVP and SOAP API reference and PayPal NVP/SOAP API SDKs.
See the Developer Portal for a complete list of NVP/SOAP API error codes.