Use Postman to explore PayPal's REST APIs without a developer account. You can customize requests and receive responses for any of PayPal's core APIs.
To do more with Postman:
- Create your own fork of the collection
- Link your collection to your PayPal Developer Dashboard account
- Start making API calls
1. Fork the PayPal Postman collection
- Sign in to your account.
- Select the Run in Postman below.
- Select Fork Collection.
- Name your fork and select a workspace.
2. AuthenticationAn access token is automatically generated using a default
client_secret. Replace the default access tokens with your own
client_secretfrom the Developer Dashboard.
- On the Developer Dashboard, find your
client_secretunder Dashboard > My Apps & Credentials.
- In Postman, select your fork of the PayPal collection.
- Under the Variables tab, enter your
- Select Save.
access_tokenautomatically. Use the
access_tokenallows you to call any API in the collection.
3. Start making API calls with Postman
This example uses the Orders API to create an order and capture payment using sandbox accounts linked to your Developer Dashboard account. To find your sandbox account credentials, log into the Developer Dashboard and select Sandbox > Accounts.
To create an order:
- In your Postman workspace, navigate to your fork of the PayPal collection.
- Select Orders > Create Order > Send. On a successful call, the API returns a 201 order created response code.
- Find the approve link in the response.
- Open the approve link in a browser.
- Log in with your Developer Dashboard sandbox personal account credentials.
Capture payments in both your personal and business sandbox accounts as follows:
- Find the
idin the response of the order you created and copy the value.
- In the left panel, select your fork of the PayPal collection.
- In the Variables tab, enter the value you copied in the
- Select Orders > Capture payment for order.
- Select Send. The API returns an HTTP
201 order createdresponse code in response to a successful call.