To make REST API calls, you must create a PayPal REST app and get an access token.
If a third-party developer wants to build an app, the merchant must go through a one-time PayPal login experience to grant the third-party developer permissions.
You can use the PayPal sandbox to complete an end-to-end test of your invoicing integration, including creating, sending, managing, and paying invoices.
1. Make your first call
Create a PayPal app. In response, PayPal generates a set of OAuth credentials.
2. Create sandbox accounts
To generate mock transactions to test your app, complete these steps twice. First, create a business account to represent the merchant in a transaction. Then, create a personal account to represent the customer in a transaction.
From the Developer Portal, click Log into Dashboard and enter your PayPal business account email and password.
Note: If you do not have a business account, click Sign Up.
Under Sandbox, click Accounts. Then, click Create Account.
In the dialog box, enter these required fields:
Field Value Account Type Business (Merchant Account) or Personal (Buyer Account). Email Address A fake or valid email address. If you use a valid address, you receive email notifications when you run test transactions. Password A simple, easy-to-remember password, such as
PayPal Balance A high amount. For example,
You can also enter optional fields.
Click Create Account.
For more information, see Create a sandbox account.
3. Get third-party-permissions
If a third-party developer wants to build an app, the merchant must go through a one-time PayPal login experience to grant the third-party developer permissions. After that, the developer can call the Invoicing API in apps to create, send, and manage invoices on the merchant's behalf.
To call the Invoicing API on behalf of a merchant, you must get third-party permissions:
Set the access privileges of the access token to the invoicing scope:
scopevalues in a URL encoded, space-separated, case-sensitive list when you integrate with Connect with PayPal.
The merchant uses your app to Connect with PayPal, log in to their software, and grant you third-party permissions.
You can now call the Invoicing API on behalf of the merchant.