PayPal
APIPayments API for PayPal, Venmo, cards, invoicing and payouts
- Price
- Fee per transaction
- Access
- Client ID and secret
About
Payments platform whose REST APIs take PayPal, Venmo, Pay Later and card payments, run subscriptions, send invoices and pay out to many recipients at once. Buyers and sellers can use it in most countries; fees depend on the payment type and country.
What you can do with it
- Accept PayPal, Venmo, Pay Later and card payments with the Orders API
- Send invoices and charge customers on a schedule with the Subscriptions API
- Send money to many recipients in one batch with the Payouts API
Get started
- Log in to the Developer Dashboard and open Apps & Credentials
- Copy the sandbox client ID and secret
- Exchange them for an access token
Example
curl -X POST https://api-m.sandbox.paypal.com/v1/oauth2/token \
-u "$PAYPAL_CLIENT_ID:$PAYPAL_CLIENT_SECRET" \
-d "grant_type=client_credentials"
curl -X POST https://api-m.sandbox.paypal.com/v2/checkout/orders \
-H "Authorization: Bearer $PAYPAL_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"intent": "CAPTURE", "purchase_units": [{"amount": {"currency_code": "USD", "value": "100.00"}}]}'Details
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- C#, Java, PHP, Python, Ruby, JavaScript/TypeScript, Swift, Kotlin
- MCP server
- Remote