PayPal Agent Toolkit
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
The PayPal Agent Toolkit enables popular agent frameworks including OpenAI's Agent SDK, LangChain, Vercel's AI SDK, and Model Context Protocol (MCP) to integrate with PayPal APIs through function calling. It includes support for TypeScript and is built on top of PayPal APIs and the PayPal SDKs.
Available tools
The PayPal Agent toolkit provides the following tools:
**Invoices**
- create_invoice: Create a new invoice in the PayPal system, including recipient billing details, line items, an invoice note, a custom color theme, an optional shipping cost, and an option to enable PAY_BY_BANK as a payment method
- list_invoices: List invoices with optional pagination and filtering
- get_invoice: Retrieve details of a specific invoice
- send_invoice: Send an invoice to recipients
- send_invoice_reminder: Send a reminder for an existing invoice
- cancel_sent_invoice: Cancel a sent invoice
- generate_invoice_qr_code: Generate a QR code for an invoice
- delete_invoice: Permanently delete a draft or scheduled invoice
- generate_invoice_number: Generate the next invoice number available to the merchant
- search_invoicing: Search for invoices or recurring invoice series
- update_invoicing: Update an existing invoice or recurring invoice series (full-replacement)
- cancel_invoice_auto_reminder: Cancel all scheduled automatic reminders for an invoice
- record_payment_for_invoice: Record an external or manual payment against an invoice
- record_refund_for_invoice: Record a refund against an invoice
- create_conditional_rules_for_invoice: Create conditional rules for an invoice, such as an early payment discount or automatic cancellation date
- create_recurring_series: Create a recurring invoice series that automatically generates and sends invoices on a schedule
- activate_recurring_series: Activate a draft recurring invoice series
- get_recurring_series: Retrieve details of a specific recurring invoice series
- cancel_recurring_series: Cancel an active recurring invoice series
- delete_recurring_series: Delete a draft recurring invoice series
**Payments**
- create_order: Create an order in PayPal system based on provided details
- get_order: Retrieve the details of an order
- pay_order: Process payment for an authorized order
- create_refund: Process a refund for a captured payment.
- get_refund: Get the details for a specific refund.
**Dispute Management**
- list_disputes: Retrieve a summary of all open disputes
- get_dispute: Retrieve detailed information of a specific dispute
- accept_dispute_claim: Accept a dispute claim
**Shipment Tracking**
- create_shipment_tracking: Create a shipment tracking record
- get_shipment_tracking: Retrieve shipment tracking information
- update_shipment_tracking: Update shipment tracking information
**Catalog Management**
- create_product: Create a new product in the PayPal catalog
- list_products: List products with optional pagination and filtering
- show_product_details: Retrieve details of a specific product
**Subscription Management**
- create_subscription_plan: Create a new subscription plan
- list_subscription_plans: List subscription plans
- show_subscription_plan_details: Retrieve details of a specific subscription plan
- create_subscription: Create a new subscription
- show_subscription_details: Retrieve details of a specific subscription
- update_subscription: update an existing subscription