Currency and finance

PayPal REST API

by developer.paypal.com

Currency and finance Added on February 23rd, 2011 Checked and working on November 16th, 2026
Visit developer.paypal.com →

What it does

The PayPal REST APIs let you accept payments on your site or in your app: create and capture orders, handle subscriptions and recurring payments, issue refunds, send payouts to many recipients and manage invoices. Use the sandbox to test everything with fake accounts first. Responses are JSON. Free to use; PayPal charges a fee per transaction. An official MCP server at https://mcp.paypal.com, with a sandbox at https://mcp.sandbox.paypal.com, lets AI agents work with invoices, orders and payments.
  • API
  • JSON
  • MCP
  • REST

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free to use; PayPal charges a fee per transaction.
From the browser
Yes (CORS)
Formats
JSON
Interface
REST, MCP
Provider
developer.paypal.com
Last checked
Working on November 16th, 2026

More information: https://developer.paypal.com/api/rest/

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

developer.paypal.com
PayPal REST API

Example request

curl

curl 'https://api-m.sandbox.paypal.com/v1/notifications/webhooks' \
  -H 'Authorization: Bearer YOUR_API_KEY'

JavaScript

const response = await fetch("https://api-m.sandbox.paypal.com/v1/notifications/webhooks", {
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://api-m.sandbox.paypal.com/v1/notifications/webhooks",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried PayPal REST API.