Error Codes

DOCS

Last updated: Aug 15th, 7:07am

View return URL errors and HTTP status error codes for PayPal Link operations.

Return URL errors

PayPal generally handles most errors internally. However, in some situations, PayPal might return the user to the merchant's redirect_uri with an error_description and error parameters. This table describes the possible errors:

ErrorError descriptionExplanationRecommendation
RESTRICTED_ACCOUNTNot applicablePossible issue with user account. For assistance, user must contact PayPal.Notify the user that a problem occurred linking their account. For assistance, user must contact PayPal.
COUNTRY_NOT_SUPPORTEDNot applicableThis product is not available in your country.Contact PayPal for assistance.
2FA_NOT_SUPPORTEDNot applicableUser has two-factor authentication enabled.Disable two-factor authentication (not recommended by PayPal).
BIZ_ACCOUNT_NOT_SUPPORTEDNot applicableUser has a PayPal business account. This integration does not support business accounts.
REFERRAL_EXPIREDNot applicableUser clicked or was directed to a link that took more than 15 minutes to open.Relaunch the flow by starting with the referral ID creation.
SESSION_TIMEOUTNot applicableToo much time spent trying to complete the process or the PayPal configuration was not set up correctly.
  • If timeout happens during testing, escalate the error to your PayPal account manager.
  • If this error occurs only once in live PayPal, relaunch the linking flow from the beginning of card selection/referral ID creation.
  • If you repeatedly run into issues after going live, escalate to your PayPal account manager.
    • | | `CREATE_ACCOUNT_ERROR` | Not applicable | PayPal might be experiencing site issues |
      • If the error happens during testing, escalate the error to your PayPal account manager.
      • If this error occurs only once in live PayPal, relaunch the linking flow from the beginning of card selection/referral ID creation.
      • If you repeatedly run into issues after going live, escalate to your PayPal account manager.
      | | `INTERNAL_SERVER_ERROR` | Not applicable | PayPal might be experiencing site issues |
      • If the error happens during testing, escalate the error to your PayPal account manager.
      • If live, and one off, relaunch the linking flow from the beginning of card selection/referral ID creation.
      • If you repeatedly run into issues after going live, escalate to your PayPal account manager.
| | `ACCESS_DENIED`| Consent denied | User clicked the **Not Now** option on the PayPal consent screen. | Notify the user to click **Agree** on the final consent screen to complete the linking flow. Then, prompt the user to restart the process. |

HTTP status error codes

HTTP status codeErrorDescriptionDetails
2002fa_enabled_so_no_kmliUser is 2FA-enabled, so KMLI is not honored.2FA takes precedence over One Touch.
400invalid_clientClient authentication failed.Authorization header not present.
400invalid_clientClient credentials are missing.Invalid basic auth token.
400invalid_requestInvalid scope requested.Resend with a valid scope.
400invalid_requestrefresh_token is a required parameter.Add the refresh_token parameter and value.
400invalid_requestSupports token for response_type.Incorrect response type sent.
400invalid_requestRefresh token is invalid.Resend with a valid refresh_token.
400invalid_requestNo permission to set target_client_id.Make sure the client_id has the scope of GRANT_PROXY_CLIENT to use the target_client_id parameter.
400invalid_requestThe redirect_uri is a required parameter.Resend with this parameter and value.
400unsupported_grant_typeUnsupported grant type.Specify a valid grant_type
400invalid_response_typeInvalid response type for the request:[code].grant_type=client_credentials

Use with response_type=token
401invalid_authz_codeAuthorization code is invalid.Check your authorization_code and resend.
401invalid_clientClient authentication failed.Base64 encoded client credentials passed in the authorization header are invalid.
401invalid_redirect_uriRedirect URI does not match.Ensure that redirect_uri matches one configured during the application registration.
401risk_declineRequest declined by risk.Risk can decline due to bad IP, OFAC check, and suspicious fraudulent activity.
401invalid_userDevice authentication failed.Incorrect device information.
401invalid_requestUnable to decrypt refresh token: Base64 decode failed.Invalid refresh token passed when trying to get an AT from RT.
401invalid_requestUnable to decrypt refresh token: Input length of 0 received; expected at least 36.Incorrect refresh token.
401invalid_tokenClient authentication failed.
401invalid_authz_codeAuthorization code is invalid.Auth code not passed or is invalid.
401invalid_authz_codeAuthorization code not found in cache.Use a new auth code.
401invalid_tokenToken signature verification failed.
401unauthorized_clientClient not authorized.Check your permissions and try again.
401remember_me_expiredRemember Me on the device has expired.Legal mandate to clear off One Touch in a country-specific, pre-configure period (currently six months).
401invalid_tokenThe token was not found in the system.Unlink the user. They have revoked consent.