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:
An access token is automatically generated using a default client_id
and client_secret
. Replace the default access tokens with your own client_id
and client_secret
from the Developer Dashboard.
client_id
and client_secret
under Dashboard > My Apps & Credentials.client_id
and client_secret
.A pre-request script generates and manages the access_token
automatically. Use the access_token
allows you to call any API in the collection.
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:
Capture payments in both your personal and business sandbox accounts as follows:
id
in the response of the order you created and copy the value.order_id
field.201 order created
response code in response to a successful call.The PayPal REST API is organized around transaction workflows, including: orders, payments, subscriptions, invoicing, and disputes. Check out these additional resources.