What errors can be produced when using PayPal APIs?
For a complete list of API error codes, see the API Error and Warning Codes page on the PayPal Developer Portal.
We’re sorry. The page you’re looking for is no longer available. To search again or contact us, please visit our Help Centre.
Why did I get the error "Class 'PayPal\Rest\ApiContext' not found" when using the PayPal SDK?Issue The PayPal SDK returned a "class not found" error. Cause The file path in the PHP SDK couldn't be found. Solution Use Composer to update the vendor folder; for example: require('vendor/autoload.php'); $api = new \PayPal\Rest\ApiContext( new \PayPal\Auth\OAuthTokenCredential( $client_ID, $client_Secret ) ); Why did I get a fatal error when using the Call API button in the PHP SDK Web Console?Issue You got a fatal error message - Call to undefined function: getapiusername(). Cause The path for profile certificates is incorrectly specified. Solution Using the Web Console, change the path to the WebTester folder (this is a folder you have control over) and create a folder called tmp; Why did I get the error "Unable to deserialize object" when using the Java SDK to issue an API call?Issue PayPal returned an "unable to deserialize object" error, with a message something like this: ERROR: Unable to deserialize object for Could not call com.paypal.soap.api.PaymentTransactionClassCodeType.readResolve() : null ---- Debugging information ---- required-type : com.paypal.soap.api.PaymentTransactionClassCodeType cause-message : Could not call com.paypal.soap.api.PaymentTransactionClass CodeType.readResolve() : null class : com.paypal.soap.api.TransactionSearchRequestType message : Why did I get API error code 10602?Issue PayPal returned API error code 10602 - Authorization completed. Cause The authorization has already been completed. The following API calls can produce this error: DoAuthorization, DoCapture, DoReauthorization, and DoVoid. Solution Use the GetTransactionDetails API call to check the status of the transaction. If your authorization is pending, Why did I get an exception error when retrieving user certificates with PayPal's Microsoft SDKs?Issue While working with the Microsoft SDKs from PayPal, you got the following error: "com.paypal.sdk.exceptions.FatalException: Unable to retrieve certificate from user or system keystores for: XXXXX." Cause The SDK throws an exception when the Certificate for your API account hasn't been registered properly on your system through the Why did I get error 4002 when using PDT?Issue While you were using Payment Data Transfer, PayPal returned general error code 4002. Causes This error may have several different causes, such as: An invalid tax token. Cookies. Cache. Internet congestion. The email address isn't confirmed on the PayPal account receiving the payment. With regard to Payment Why did I get the error "Sorry, but you cannot view your existing API Signature while your account is unconfirmed" when accessing my API credentials?Issue An error message reported that your existing API Signature isn't viewable. Cause Your PayPal email address isn't appropriately marked as confirmed in our system. Solution If you try to confirm the email address and you're told that it's already confirmed, try adding a second email address and Do I need to use PayPal SDKs to call PayPal APIs?No, you don't need to use PayPal SDKs to call PayPal APIs. However, the PayPal SDKs ease the task of calling PayPal Web Service APIs. They contain libraries that shield the user from the intricacies of the SOAP protocol, and offer a number of other useful features. You What is the “Correlation ID” field in the API used for?This field contains an alphanumeric string that allows PayPal to track every API call attempt. Every PayPal API response includes a Correlation ID field. If you contact PayPal with any questions regarding a specific API call, provide this value either in your support request or by attaching the log file I'm a developer and want to create a crowdfunding campaign platform, where do I get started?Here's how you can create a crowdfunding campaign platform: Sign up for PayPal Developer to innovate, test, and go live. Accept the PayPal Developer Agreement. Create an Adaptive Payments application. This is the PayPal product that supports crowdfunding models. To use Adaptive Payments, your PayPal Business Account must be in How will PayPal let me know when a payment is under Payment Review?You'll receive an email letting you know that a payment is under Payment Review and another email when the review is complete. You'll also find this information on the Transaction Details page. If you use PayPal Instant Payment Notification (IPN) or an API, the payment appears as Pending Why did I get the error “Incorrect API credentials” when I tried to make an API call?Issue PayPal notified you that your REST API credentials are incorrect. Cause This error is related to the REST API credentials you use to make API calls. Solution If you previously had your application set up for testing in the Sandbox environment, you may need to switch your What can I do if I don't have root access and want to use the PayPal PHP SDK on my host?If you want to use the PayPal PHP SDK on your host but don't have root access, you can use one of two alternatives for installing Pear (if your host can't do this for you). See the pear.php.net site for information on installing a local PEAR copy on a Why did I get API error code 10620?Issue PayPal returned API error code 10620 - Order has already been voided, expired, or completed. Cause The order has already been voided, expired, or completed. The DoAuthorization, DoCapture, and DoVoid API calls can produce this error. Solution Don't retry the same API call against the same transaction What format does the API timestamp use?Each API response contains a timestamp with the date and time in Universal Time Coordinated/Greenwich Mean Time (UTC/GMT), sometimes referred to as "Zulu time." Here's a breakdown of the components of an example timestamp (dateTime_in_UTC/GMT = 2015-08-09T21:51:26Z): 2015 -Year 08 - Month 09 - Day T - Time Why did I get API error code 10443?Issue PayPal returned API error code 10443 - Transaction refused because of an invalid argument. See additional error messages for details. Causes The following errors can produce error code 10443: You set PaymentAction to "Sale" with SetExpressCheckout at the first API call. If you receive this error at How do I use PayPal's Authorization and Capture APIs?Upon completion of customer checkout, you can authorize a payment by setting the value of: DoExpressCheckoutPayment to "Authorization" or "Order." DoDirectPayment to "Authorization." The response from these requests returns an Authorization ID. At this point, you can settle (capture funds) with the DoCapture API request. DoCapture requires the Why did I get API error code 10423?Issue PayPal returned API error code 10423 - This transaction cannot be completed with PaymentAction of Authorization. Causes The following errors can produce error code 10423: You set PaymentAction to "Sale" with SetExpressCheckout at the first API call. If you receive this error at the DoExpressCheckout API call, Why did I get the error "Country not specified" when sending an API request?Issue PayPal returned a "Country not specified" error. Cause Your API request didn't specify a country code, or passed it incorrectly. Solution Check that you specified the country code in your API request and passed it as the value of the correct variable. For some languages, notably .NET,
Related articles are currently unavailable
Video is not available
You were logged out to help protect your account.