PayPal Integration

OAuth2 Client Credentials

Connect your AI agent to PayPal. Process payments, manage invoices, send payouts, and review transaction history from conversations.

What your agent can do

With PayPal credentials, your agent gets access to payments, invoicing, and payouts through the PayPal REST API.

Payment processing

Create orders, capture payments, and process authorized transactions through the PayPal REST API.

Invoice management

Generate invoices, send payment reminders, and track invoice status across your accounts.

Payout creation

Send batch payouts to multiple recipients via email or PayPal ID with a single API call.

Transaction history

Search and filter past transactions, view settlement details, and export records for reconciliation.

Prerequisites

  • A PayPal Business account
  • A REST API app created in the PayPal Developer Dashboard
  • A ClawTrust agent on any plan (Starter, Pro, or Enterprise)

Step-by-step setup

Create a REST API app in PayPal and add the credentials to your agent.

1

Open PayPal Developer Dashboard

Go to developer.paypal.com and sign in with your PayPal Business account. Navigate to Apps & Credentials.

2

Create a REST API app

Click "Create App" and give it a name (e.g., "ClawTrust Agent"). Select the Live environment for production use.

3

Copy Client ID and Secret

Copy both the Client ID and Secret from your app details. These are used together for OAuth2 authentication to obtain an access token.

4

Add to ClawTrust

In your agent's dashboard, go to Credentials > Add Credential. Select "OAuth2 Client Credentials", enter the Client ID and Secret, and set the allowed domain to *.paypal.com.

Credential details

Type

OAuth2 Client Credentials

Auth flow

Client ID + Secret → Access Token

Allowed domains

*.paypal.com

Fields

Client ID and Client Secret (two fields)

Example actions

Once connected, you can ask your agent to perform actions like these.

"Send an invoice for $250 to vendor@example.com for consulting services"

Creates and sends a PayPal invoice with line items and payment terms.

"Send a $500 payout to contractor@freelance.com"

Initiates a PayPal payout to the specified recipient email address.

"Show me all transactions from the last 30 days over $100"

Queries the transaction search API and returns filtered results with amounts and dates.

"Refund order ABC123 for the full amount"

Issues a full refund on the captured payment for the specified order.

Ready to connect your agent to PayPal?

Add your OAuth2 credentials and your agent starts managing payments immediately.