Postman Guide
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. Authentication
An access token is automatically generated using a defaultclient_id
and client_secret
. Replace the default access tokens with your own client_id
and client_secret
from the Developer Dashboard.- On the Developer Dashboard, find your
client_id
andclient_secret
under Dashboard > My Apps & Credentials. - In Postman, select your fork of the PayPal collection.
- Under the Variables tab, enter your
client_id
andclient_secret
. - Select Save.
access_token
automatically. Use the access_token
allows 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
Capture payments in both your personal and business sandbox accounts as follows:
- Find the
id
in 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
order_id
field. - Select Orders > Capture payment for order.
- Select Send. The API returns an HTTP
201 order created
response code in response to a successful call.