Why did I get the error “Incorrect API credentials” when I tried to make an API call?

This error populates if you are using an incorrect set of REST API credentials, client ID and secret, for your specified environment, Sandbox vs. Live.

If you previously had your application set up for testing in the Sandbox environment, you may need to switch your current REST API credentials mode from Sandbox to Live (or vice versa).

Here's how: 

  1. Log in to your PayPal Developer account.
  2. Click Dashboard.
  3. Select the app you'll be editing under Apps & Credentials.
  4. Toggle the app from Sandbox to Live or from Live to Sandbox.
  5. Use the Live or Sandbox API credentials displayed to set your credentials in your API call appropriately.

When you copy and paste your credentials into your application, ensure you do not copy any leading or trailing space as this may add an extra character space to your credentials that will populate this error.

Autres manières d'obtenir de l'aide

Ressources pour les développeurs

Accédez à la documentation, aux API et plus encore.

Assistance Braintree

Trouvez des informations techniques sur le traitement des paiements avec Braintree.

État du site

Informez-vous sur l'état des maintenances programmées et plus encore.

Aide pour les particuliers

Obtenez de l'aide pour utiliser l'un de nos produits PayPal.

Aide pour les professionnels

Obtenez de l'aide pour utiliser l'un de nos produits PayPal.

Messagerie

Envoyez, recevez et consultez vos messages PayPal