Create and Manage NVP/SOAP API Credentials

API

Last updated: Sept 18th, 5:50pm

When you call PayPal NVP/SOAP APIs, you must authenticate each request through a set of API credentials. PayPal associates these credentials with a PayPal account. You can generate credentials for any PayPal Business or Premier account.

Types of credentials

All PayPal API certificate credentials are 2048-bit, SHA-256 certificates that expire every three years.

The NVP/SOAP APIs support:

  • API certificates

    Contain the API user name and password and the certificate.

    PayPal recommends that you use certificate credentials for security reasons. See API certificates.

  • API signatures

    Contain the API user name and password and the signature. See API signatures.

API certificates

Learn how to create and manage certificate API credentials.

Create API certificates

  1. For live credentials, log in to your PayPal business account at www.paypal.com.

    For test credentials, log in to the PayPal sandbox at www.sandbox.paypal.com with a sandbox merchant account.

  2. Hover over your name and then click Account Settings from the dropdown menu.

  3. On the Account access page, click Update for the API access item.

  4. Click Manage API Credentials in the NVP/SOAP API Integration (Classic) section.

  5. On the Request API certificate page, select Request API certificate.

    Then, click Agree and Submit.

    The Manage API certificate page appears.

  6. Click Download Certificate.

The cert_key_pem.txt file contains the certificate. Save the file to a secure location.

PayPal formats the API certificate file in PEM format. The file contains both your public certificate and the associated private key. Although the PEM certificate is not human readable, the file is not encrypted. For details, see Encrypt your certificate.

Renew API certificates

To prevent an interruption in API services, you must renew and replace your certificate before it expires.

  1. For live credentials, log in to your PayPal business account at www.paypal.com.

    For test credentials, log in to the PayPal sandbox at www.sandbox.paypal.com with a sandbox business account.

  2. Hover over your name and then click Account Settings from the dropdown menu.

  3. On the Account access page, click Update for the API access item.

  4. Click Manage API Credentials in the NVP/SOAP API Integration (Classic) section.

  5. Check the status of your API certificate to verify whether it is Active or Expires soon.

  6. If the status is Expires soon, click Renew Certificate.

    This action generates an additional certificate with the Active status. The Manage API certificate page shows both certificates.

  7. On the certificate marked as Active, click Download Certificate and follow the steps to download a certificate.

After you import the new API certificate, test your integration to ensure it works with the certificate. Distribute your certificate to all affected partners. After the old certificate expires, click Remove Certificate to remove the certificate.

Encrypt API certificates

The PayPal SDKs for Java and ASP.NET require that you encrypt the certificate into PKCS12 format before you can use it with the SDKs.

The steps to encrypt your certificate require the OpenSSL encryption tool. While UNIX users likely have this tool installed with their operating system, Windows users must download OpenSSL. To install OpenSSL, accept the defaults.

  1. In a command prompt, ensure that the OpenSSL bin directory is in your system path. If not, add it to your path.

  2. Change directories to the location of the certificate to encrypt (cert_key_pem.txt) and run:

      1openssl pkcs12 -export -in cert_key_pem.txt -inkey cert_key_pem.txt -out paypal_cert.p12

    The paypal_cert.p12 file contains your encrypted API certificate.

    Install API certificates for ASP.NET

    If you are developing with the PayPal SDK for ASP.NET, Windows requires that you:

    For more information, see the PayPal How do I import my certificate into the Windows key store? knowledge base article.

    API signatures

    To create an API signature:

    1. For live credentials, log in to your PayPal business account at www.paypal.com.

      For test credentials, log in to the PayPal sandbox at www.sandbox.paypal.com with a sandbox business account.

    2. Hover over your name and then click Account Settings from the dropdown menu.

    3. On the Account access page, click Update for the API access item.

    4. Click Manage API Credentials in the NVP/SOAP API Integration (Classic) section.

    5. Select Request API signature. Then, click Agree and Submit.

    We use cookies to improve your experience on our site. May we use marketing cookies to show you personalized ads? Manage all cookies