Why did I get API error code 10627?
PayPal returned API error code 10627 - Transaction refused because of an invalid argument. See additional error messages for details.
Cause
The transaction failed because of an invalid argument. This often occurs with the DoCapture API call if you specify an Invoice ID field when capturing a basic authorization.
Solution
Don't use the Invoice ID parameter when performing a DoAuthorization, DoReauthorization, or DoVoid. The Invoice ID field can be used only with a DoCapture API call.
See the Developer Portal for a complete list of NVP/SOAP API error codes.
See also:
DoAuthorization API Operation (NVP ans SOAP)