APICurrentLast updated: May 18th 2022, @ 4:02:27 pm
Postman allows you to explore PayPal's REST APIs without the need for a developer account. You can configure and send requests and receive responses for any of our core APIs.
To do more with Postman:
- Create your own fork of the collection.
- Link your fork to your PayPal Developer Dashboard account.
- Start making API calls.
Follow along with the video tutorial to get started with the PayPal Postman collection.
Fork the collection
- Sign in to your Postman account.
- Select the Run in Postman button.
- Select the Fork Collection button.
- Name your fork and select a workspace.
You successfully forked the PayPal Postman collection.
An access token is automatically generated using a default
client_secret. PayPal recommends using your own
client_secret from the Developer Dashboard.
- On the Developer Dashboard, find your
client_secretunder Dashboard > My Apps & Credentials.
- In Postman, select your fork of the PayPal collection.
- Enter your
client_secretunder the Variables tab.
- Click the Save button.
A pre-request script will generate and manage the
You can now call any API in the collection.
Start making API calls with Postman
PayPal recommends starting with the Orders API. These steps will use the Orders API to create an order and capture payment using sandbox accounts linked to your Developer Dashboard account.
To create an order:
- In your workspace, navigate to your fork of the PayPal collection.
- Select Orders > Create Order.
- Select the Send button to create the order. On a successful call, the API returns a 201 order created response code.
- In the response, find the approve link.
- Open the approve link in a browser.
- Log in with your Developer Dashboard Sandbox Personal Account credentials. You can find those credentials by logging into the Developer Dashboard and selecting Sandbox > Accounts.
- Select the Continue button.
You've completed the order.
To capture payment:
- In the response of the order you created, find the
idand 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. On a successful call, the API returns a 201 order created response code.
Your order was created and payment was captured. You can verify the transaction in both the sandbox personal account and the sandbox business account.