PayPal MCP Server for Cloudflare Workers
77 tools available in the PayPal MCP server. Each tool can be called by AI assistants to perform specific actions.
paypal_delete_invoice_refundDelete a refund record from an invoice.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"invoice_id",
"transaction_id"
],
"properties": {
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"transaction_id": {
"type": "string",
"description": "Refund transaction ID"
}
}
}paypal_cancel_payout_itemCancel an unclaimed payout item. Only works for items with status UNCLAIMED.
Args:
Returns: The cancelled payout item details.
{
"type": "object",
"required": [
"payout_item_id"
],
"properties": {
"payout_item_id": {
"type": "string",
"description": "Payout item ID to cancel"
}
}
}paypal_get_planGet details of a billing plan.
Args:
Returns: Plan details including billing cycles and payment preferences.
{
"type": "object",
"required": [
"plan_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"plan_id": {
"type": "string",
"description": "Plan ID"
}
}
}paypal_list_disputesList disputes with optional filtering.
Args:
Returns: Paginated list of disputes.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"page_size": {
"type": "integer",
"description": "Items per page"
},
"start_time": {
"type": "string",
"description": "Start time (ISO 8601)"
},
"next_page_token": {
"type": "string",
"description": "Pagination token"
},
"disputed_transaction_id": {
"type": "string",
"description": "Transaction ID"
}
}
}paypal_get_disputeGet details of a dispute.
Args:
Returns: Dispute details including reason, status, and messages.
{
"type": "object",
"required": [
"dispute_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
}
}
}paypal_accept_disputeAccept a dispute claim (liability). Refunds the disputed amount to the buyer.
Args:
Returns: Updated dispute details.
{
"type": "object",
"required": [
"dispute_id"
],
"properties": {
"note": {
"type": "string",
"description": "Acceptance note"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
},
"refund_value": {
"type": "string",
"description": "Refund amount"
},
"refund_currency_code": {
"type": "string",
"description": "Refund currency"
}
}
}paypal_send_dispute_messageSend a message to the other party in a dispute.
Args:
Returns: Confirmation of message sent.
{
"type": "object",
"required": [
"dispute_id",
"message"
],
"properties": {
"message": {
"type": "string",
"description": "Message content"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
}
}
}paypal_make_dispute_offerMake a settlement offer to the buyer.
Args:
Returns: The offer details.
{
"type": "object",
"required": [
"dispute_id",
"note"
],
"properties": {
"note": {
"type": "string",
"description": "Offer note"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
},
"offer_value": {
"type": "string",
"description": "Offer amount"
},
"offer_currency_code": {
"type": "string",
"description": "Offer currency"
}
}
}paypal_escalate_disputeEscalate a dispute to a PayPal claim.
Args:
Returns: Updated dispute details.
{
"type": "object",
"required": [
"dispute_id",
"note"
],
"properties": {
"note": {
"type": "string",
"description": "Escalation note"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
}
}
}paypal_provide_dispute_evidenceProvide evidence for a dispute.
Args:
Returns: Confirmation of evidence provided.
{
"type": "object",
"properties": {
"notes": {
"type": "string",
"description": "Evidence notes"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
},
"carrier_name": {
"type": "string",
"description": "Carrier name"
},
"tracking_number": {
"type": "string",
"description": "Tracking number"
}
}
}paypal_acknowledge_return_itemAcknowledge that a returned item was received.
Args:
Returns: Updated dispute details.
{
"type": "object",
"required": [
"dispute_id",
"note"
],
"properties": {
"note": {
"type": "string",
"description": "Acknowledgement note"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
}
}
}paypal_appeal_disputeAppeal a resolved dispute decision.
Args:
Returns: Appeal result.
{
"type": "object",
"required": [
"dispute_id",
"appeal_reason"
],
"properties": {
"notes": {
"type": "string",
"description": "Additional notes"
},
"dispute_id": {
"type": "string",
"description": "Dispute ID"
},
"appeal_reason": {
"type": "string",
"description": "Reason for appeal"
}
}
}paypal_search_invoicesSearch invoices with filters.
Args:
Returns: List of matching invoices.
{
"type": "object",
"properties": {
"memo": {
"type": "string",
"description": "Memo"
},
"page": {
"type": "integer",
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"status": {
"type": "array",
"items": {
"type": "string"
},
"description": "Status filter"
},
"page_size": {
"type": "integer",
"description": "Items per page"
},
"reference": {
"type": "string",
"description": "Reference"
},
"currency_code": {
"type": "string",
"description": "Currency code"
},
"invoice_number": {
"type": "string",
"description": "Invoice number"
},
"recipient_name": {
"type": "string",
"description": "Recipient name"
},
"recipient_email": {
"type": "string",
"description": "Recipient email"
}
}
}paypal_create_invoiceCreate a draft invoice.
Args:
Returns: The created draft invoice with ID.
{
"type": "object",
"required": [
"currency_code",
"recipient_email",
"items"
],
"properties": {
"memo": {
"type": "string",
"description": "Private merchant memo"
},
"note": {
"type": "string",
"description": "Note to recipient"
},
"items": {
"type": "string",
"description": "JSON array of invoice items"
},
"reference": {
"type": "string",
"description": "Merchant reference"
},
"currency_code": {
"type": "string",
"description": "Currency code"
},
"invoice_number": {
"type": "string",
"description": "Custom invoice number"
},
"recipient_name": {
"type": "string",
"description": "Recipient name"
},
"recipient_email": {
"type": "string",
"description": "Recipient email"
},
"terms_and_conditions": {
"type": "string",
"description": "Terms and conditions"
}
}
}paypal_list_invoicesList invoices with optional filtering.
Args:
Returns: Paginated list of invoices.
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"page_size": {
"type": "integer",
"description": "Items per page"
}
}
}paypal_get_invoiceGet details of an invoice.
Args:
Returns: Invoice details including items, amounts, and status.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
}
}
}paypal_update_invoiceFully update a draft invoice.
Args:
Returns: The updated invoice.
{
"type": "object",
"required": [
"invoice_id",
"invoice_data"
],
"properties": {
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"invoice_data": {
"type": "string",
"description": "Complete invoice JSON data"
}
}
}paypal_delete_invoiceDelete a draft invoice.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "string",
"description": "Invoice ID to delete"
}
}
}paypal_send_invoiceSend an invoice to the recipient.
Args:
Returns: Confirmation of sending.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"note": {
"type": "string",
"description": "Additional note"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID to send"
},
"send_to_invoicer": {
"type": "boolean",
"description": "Send copy to invoicer"
},
"send_to_recipient": {
"type": "boolean",
"default": true,
"description": "Send to recipient"
},
"additional_recipients": {
"type": "string",
"description": "JSON array of additional emails"
}
}
}paypal_send_invoice_reminderSend a reminder for an unpaid invoice.
Args:
Returns: Confirmation of reminder sent.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"note": {
"type": "string",
"description": "Reminder note"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"additional_recipients": {
"type": "string",
"description": "JSON array of additional emails"
}
}
}paypal_cancel_invoiceCancel a sent invoice.
Args:
Returns: Confirmation of cancellation.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"note": {
"type": "string",
"description": "Cancellation note"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID to cancel"
},
"send_to_invoicer": {
"type": "boolean",
"description": "Send to invoicer"
},
"send_to_recipient": {
"type": "boolean",
"default": true,
"description": "Send to recipient"
}
}
}paypal_record_invoice_paymentRecord an external payment for an invoice.
Args:
Returns: The payment ID.
{
"type": "object",
"required": [
"invoice_id",
"currency_code",
"value"
],
"properties": {
"note": {
"type": "string",
"description": "Payment note"
},
"value": {
"type": "string",
"description": "Payment amount"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"payment_date": {
"type": "string",
"description": "Payment date"
},
"currency_code": {
"type": "string",
"description": "Currency code"
}
}
}paypal_delete_invoice_paymentDelete an external payment record from an invoice.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"invoice_id",
"transaction_id"
],
"properties": {
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"transaction_id": {
"type": "string",
"description": "Transaction ID to delete"
}
}
}paypal_record_invoice_refundRecord an external refund for an invoice.
Args:
Returns: The refund ID.
{
"type": "object",
"required": [
"invoice_id",
"currency_code",
"value"
],
"properties": {
"value": {
"type": "string",
"description": "Refund amount"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"refund_date": {
"type": "string",
"description": "Refund date"
},
"currency_code": {
"type": "string",
"description": "Currency code"
}
}
}paypal_generate_invoice_numberGenerate the next invoice number.
Returns: The next invoice number to use.
{
"type": "object",
"properties": {}
}paypal_generate_invoice_qr_codeGenerate a QR code for an invoice payment.
Args:
Returns: Base64 encoded QR code image.
{
"type": "object",
"required": [
"invoice_id"
],
"properties": {
"width": {
"type": "integer",
"default": 500,
"description": "QR code width"
},
"action": {
"enum": [
"pay",
"details"
],
"type": "string",
"default": "pay",
"description": "QR code action"
},
"height": {
"type": "integer",
"default": 500,
"description": "QR code height"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
}
}
}paypal_create_orderCreate a new PayPal order for payment processing.
Args:
Returns: The created order with ID and approval links.
{
"type": "object",
"required": [
"intent",
"value"
],
"properties": {
"value": {
"type": "string",
"description": "Amount value as string"
},
"intent": {
"enum": [
"CAPTURE",
"AUTHORIZE"
],
"type": "string",
"description": "Payment intent"
},
"cancel_url": {
"type": "string",
"description": "Cancel URL"
},
"return_url": {
"type": "string",
"description": "Return URL after approval"
},
"description": {
"type": "string",
"description": "Purchase description"
},
"reference_id": {
"type": "string",
"description": "Merchant reference ID"
},
"currency_code": {
"type": "string",
"default": "USD",
"description": "ISO 4217 currency code"
}
}
}paypal_get_orderGet details of a PayPal order by ID.
Args:
Returns: Complete order details including status, amounts, and payment info.
{
"type": "object",
"required": [
"order_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"order_id": {
"type": "string",
"description": "PayPal order ID"
}
}
}paypal_update_orderUpdate a PayPal order with patch operations.
Args:
Returns: Confirmation of update.
{
"type": "object",
"required": [
"order_id",
"op",
"path"
],
"properties": {
"op": {
"enum": [
"add",
"remove",
"replace"
],
"type": "string",
"description": "Patch operation"
},
"path": {
"type": "string",
"description": "JSON Pointer path"
},
"value": {
"type": "string",
"description": "New value as JSON string"
},
"order_id": {
"type": "string",
"description": "PayPal order ID"
}
}
}paypal_authorize_orderAuthorize payment for an approved order. Use for orders with intent='AUTHORIZE'.
Args:
Returns: The order with authorization details.
{
"type": "object",
"required": [
"order_id"
],
"properties": {
"order_id": {
"type": "string",
"description": "PayPal order ID"
}
}
}paypal_capture_orderCapture payment for an approved order. Use for orders with intent='CAPTURE'.
Args:
Returns: The order with capture details.
{
"type": "object",
"required": [
"order_id"
],
"properties": {
"order_id": {
"type": "string",
"description": "PayPal order ID"
}
}
}paypal_get_authorizationGet details of an authorization by ID.
Args:
Returns: Authorization details including status, amount, and expiration.
{
"type": "object",
"required": [
"authorization_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"authorization_id": {
"type": "string",
"description": "PayPal authorization ID"
}
}
}paypal_capture_authorizationCapture an authorized payment.
Args:
Returns: The capture details.
{
"type": "object",
"required": [
"authorization_id"
],
"properties": {
"value": {
"type": "string",
"description": "Amount to capture"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"currency_code": {
"type": "string",
"description": "Currency code"
},
"final_capture": {
"type": "boolean",
"default": true,
"description": "Is this the final capture"
},
"note_to_payer": {
"type": "string",
"description": "Note to payer"
},
"authorization_id": {
"type": "string",
"description": "Authorization ID to capture"
}
}
}paypal_reauthorizeReauthorize an authorization that is about to expire. Can only be done within 3 days of expiration.
Args:
Returns: The new authorization details.
{
"type": "object",
"required": [
"authorization_id"
],
"properties": {
"value": {
"type": "string",
"description": "Amount value"
},
"currency_code": {
"type": "string",
"description": "Currency code"
},
"authorization_id": {
"type": "string",
"description": "Authorization ID to reauthorize"
}
}
}paypal_void_authorizationVoid an authorization. Releases the held funds back to the payer.
Args:
Returns: Confirmation of void.
{
"type": "object",
"required": [
"authorization_id"
],
"properties": {
"authorization_id": {
"type": "string",
"description": "Authorization ID to void"
}
}
}paypal_get_captureGet details of a captured payment.
Args:
Returns: Capture details including status, amount, and seller protection.
{
"type": "object",
"required": [
"capture_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"capture_id": {
"type": "string",
"description": "PayPal capture ID"
}
}
}paypal_list_plansList billing plans with optional filtering.
Args:
Returns: Paginated list of plans.
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"page_size": {
"type": "integer",
"description": "Items per page"
},
"product_id": {
"type": "string",
"description": "Filter by product ID"
}
}
}paypal_refund_captureRefund a captured payment, either partially or fully.
Args:
Returns: The refund details.
{
"type": "object",
"required": [
"capture_id"
],
"properties": {
"value": {
"type": "string",
"description": "Amount to refund"
},
"capture_id": {
"type": "string",
"description": "Capture ID to refund"
},
"invoice_id": {
"type": "string",
"description": "Invoice ID"
},
"currency_code": {
"type": "string",
"description": "Currency code"
},
"note_to_payer": {
"type": "string",
"description": "Note to payer"
}
}
}paypal_get_refundGet details of a refund.
Args:
Returns: Refund details including status and amount.
{
"type": "object",
"required": [
"refund_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"refund_id": {
"type": "string",
"description": "PayPal refund ID"
}
}
}paypal_create_payoutCreate a batch payout to send money to multiple recipients.
Args:
Returns: The created payout batch with batch ID and status.
{
"type": "object",
"required": [
"sender_batch_id",
"recipients"
],
"properties": {
"recipients": {
"type": "string",
"description": "JSON array of payout items"
},
"email_message": {
"type": "string",
"description": "Email message"
},
"email_subject": {
"type": "string",
"description": "Email subject"
},
"sender_batch_id": {
"type": "string",
"description": "Unique batch ID"
}
}
}paypal_get_payout_batchGet details of a payout batch.
Args:
Returns: Batch details including status, amounts, and payout items.
{
"type": "object",
"required": [
"payout_batch_id"
],
"properties": {
"page": {
"type": "integer",
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"page_size": {
"type": "integer",
"description": "Items per page"
},
"payout_batch_id": {
"type": "string",
"description": "Payout batch ID"
}
}
}paypal_get_payout_itemGet details of an individual payout item.
Args:
Returns: Payout item details including status and recipient info.
{
"type": "object",
"required": [
"payout_item_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"payout_item_id": {
"type": "string",
"description": "Payout item ID"
}
}
}paypal_create_productCreate a catalog product for use with billing plans.
Args:
Returns: The created product with ID.
{
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string",
"description": "Product name"
},
"type": {
"enum": [
"PHYSICAL",
"DIGITAL",
"SERVICE"
],
"type": "string",
"description": "Product type"
},
"category": {
"type": "string",
"description": "Product category"
},
"home_url": {
"type": "string",
"description": "Product home page URL"
},
"image_url": {
"type": "string",
"description": "Product image URL"
},
"description": {
"type": "string",
"description": "Product description"
}
}
}paypal_list_productsList catalog products.
Args:
Returns: Paginated list of products.
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"page_size": {
"type": "integer",
"description": "Items per page"
}
}
}paypal_get_productGet details of a catalog product.
Args:
Returns: Product details including name, type, and description.
{
"type": "object",
"required": [
"product_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"product_id": {
"type": "string",
"description": "Product ID"
}
}
}paypal_update_productUpdate a catalog product with patch operations.
Args:
Returns: Confirmation of update.
{
"type": "object",
"required": [
"product_id",
"op",
"path"
],
"properties": {
"op": {
"enum": [
"add",
"remove",
"replace"
],
"type": "string",
"description": "Patch operation"
},
"path": {
"type": "string",
"description": "JSON Pointer path"
},
"value": {
"type": "string",
"description": "New value as JSON string"
},
"product_id": {
"type": "string",
"description": "Product ID"
}
}
}paypal_create_planCreate a billing plan for recurring payments.
Args:
Returns: The created plan with ID.
{
"type": "object",
"required": [
"product_id",
"name",
"billing_cycles"
],
"properties": {
"name": {
"type": "string",
"description": "Plan name"
},
"status": {
"enum": [
"ACTIVE",
"INACTIVE"
],
"type": "string",
"default": "ACTIVE",
"description": "Plan status"
},
"product_id": {
"type": "string",
"description": "Product ID"
},
"description": {
"type": "string",
"description": "Plan description"
},
"billing_cycles": {
"type": "string",
"description": "JSON array of billing cycles"
},
"payment_preferences": {
"type": "string",
"description": "JSON payment preferences"
}
}
}paypal_update_planUpdate a billing plan with patch operations.
Args:
Returns: Confirmation of update.
{
"type": "object",
"required": [
"plan_id",
"op",
"path"
],
"properties": {
"op": {
"enum": [
"add",
"remove",
"replace"
],
"type": "string",
"description": "Patch operation"
},
"path": {
"type": "string",
"description": "JSON Pointer path"
},
"value": {
"type": "string",
"description": "New value as JSON string"
},
"plan_id": {
"type": "string",
"description": "Plan ID"
}
}
}paypal_activate_planActivate a billing plan.
Args:
Returns: Confirmation of activation.
{
"type": "object",
"required": [
"plan_id"
],
"properties": {
"plan_id": {
"type": "string",
"description": "Plan ID to activate"
}
}
}paypal_deactivate_planDeactivate a billing plan.
Args:
Returns: Confirmation of deactivation.
{
"type": "object",
"required": [
"plan_id"
],
"properties": {
"plan_id": {
"type": "string",
"description": "Plan ID to deactivate"
}
}
}paypal_update_plan_pricingUpdate pricing for a billing plan.
Args:
Returns: Confirmation of pricing update.
{
"type": "object",
"required": [
"plan_id",
"pricing_schemes"
],
"properties": {
"plan_id": {
"type": "string",
"description": "Plan ID"
},
"pricing_schemes": {
"type": "string",
"description": "JSON array of pricing scheme updates"
}
}
}paypal_create_subscriptionCreate a subscription for a billing plan.
Args:
Returns: The created subscription with approval links.
{
"type": "object",
"required": [
"plan_id"
],
"properties": {
"plan_id": {
"type": "string",
"description": "Plan ID"
},
"custom_id": {
"type": "string",
"description": "Custom merchant ID"
},
"cancel_url": {
"type": "string",
"description": "Cancel URL"
},
"return_url": {
"type": "string",
"description": "Return URL"
},
"start_time": {
"type": "string",
"description": "Start time (ISO 8601)"
},
"subscriber_email": {
"type": "string",
"description": "Subscriber email"
},
"subscriber_surname": {
"type": "string",
"description": "Subscriber last name"
},
"subscriber_given_name": {
"type": "string",
"description": "Subscriber first name"
}
}
}paypal_get_subscriptionGet details of a subscription.
Args:
Returns: Subscription details including status, billing info, and subscriber.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_update_subscriptionUpdate a subscription with patch operations.
Args:
Returns: Confirmation of update.
{
"type": "object",
"required": [
"subscription_id",
"op",
"path"
],
"properties": {
"op": {
"enum": [
"add",
"remove",
"replace"
],
"type": "string",
"description": "Patch operation"
},
"path": {
"type": "string",
"description": "JSON Pointer path"
},
"value": {
"type": "string",
"description": "New value as JSON string"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_revise_subscriptionRevise a subscription (change plan, quantity, etc.).
Args:
Returns: The revised subscription details.
{
"type": "object",
"required": [
"subscription_id"
],
"properties": {
"plan_id": {
"type": "string",
"description": "New plan ID"
},
"quantity": {
"type": "string",
"description": "New quantity"
},
"effective_time": {
"type": "string",
"description": "Effective time (ISO 8601)"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_suspend_subscriptionSuspend an active subscription.
Args:
Returns: Confirmation of suspension.
{
"type": "object",
"required": [
"subscription_id",
"reason"
],
"properties": {
"reason": {
"type": "string",
"description": "Reason for suspension"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_activate_subscriptionActivate a suspended subscription.
Args:
Returns: Confirmation of activation.
{
"type": "object",
"required": [
"subscription_id",
"reason"
],
"properties": {
"reason": {
"type": "string",
"description": "Reason for activation"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_cancel_subscriptionCancel a subscription.
Args:
Returns: Confirmation of cancellation.
{
"type": "object",
"required": [
"subscription_id",
"reason"
],
"properties": {
"reason": {
"type": "string",
"description": "Reason for cancellation"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_capture_subscription_paymentCapture an outstanding payment for a subscription.
Args:
Returns: The capture transaction details.
{
"type": "object",
"required": [
"subscription_id",
"note",
"capture_type",
"currency_code",
"value"
],
"properties": {
"note": {
"type": "string",
"description": "Capture note"
},
"value": {
"type": "string",
"description": "Amount to capture"
},
"capture_type": {
"enum": [
"OUTSTANDING_BALANCE"
],
"type": "string",
"description": "Capture type"
},
"currency_code": {
"type": "string",
"description": "Currency code"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_list_subscription_transactionsList transactions for a subscription.
Args:
Returns: List of subscription transactions.
{
"type": "object",
"required": [
"subscription_id",
"start_time",
"end_time"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"end_time": {
"type": "string",
"description": "End time (ISO 8601)"
},
"start_time": {
"type": "string",
"description": "Start time (ISO 8601)"
},
"subscription_id": {
"type": "string",
"description": "Subscription ID"
}
}
}paypal_add_trackingAdd tracking information for a captured payment.
Args:
Returns: The tracking information.
{
"type": "object",
"required": [
"transaction_id",
"tracking_number",
"carrier",
"status"
],
"properties": {
"status": {
"enum": [
"SHIPPED",
"ON_HOLD",
"DELIVERED",
"CANCELLED"
],
"type": "string",
"description": "Tracking status"
},
"carrier": {
"type": "string",
"description": "Carrier code (UPS, FEDEX, USPS, DHL, etc.)"
},
"notify_buyer": {
"type": "boolean",
"default": true,
"description": "Notify buyer"
},
"shipment_date": {
"type": "string",
"description": "Shipment date"
},
"transaction_id": {
"type": "string",
"description": "Transaction/capture ID"
},
"tracking_number": {
"type": "string",
"description": "Tracking number"
},
"carrier_name_other": {
"type": "string",
"description": "Custom carrier name"
}
}
}paypal_add_tracking_batchAdd tracking information for multiple shipments in a batch.
Args:
Returns: Batch result with success/failure for each tracker.
{
"type": "object",
"required": [
"trackers"
],
"properties": {
"trackers": {
"type": "string",
"description": "JSON array of tracker objects"
}
}
}paypal_get_trackingGet tracking information for a transaction.
Args:
Returns: Tracking details including status and carrier.
{
"type": "object",
"required": [
"transaction_id",
"tracking_number"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"transaction_id": {
"type": "string",
"description": "Transaction ID"
},
"tracking_number": {
"type": "string",
"description": "Tracking number"
}
}
}paypal_update_trackingUpdate tracking information for a shipment.
Args:
Returns: Confirmation of update.
{
"type": "object",
"required": [
"transaction_id",
"tracking_number"
],
"properties": {
"status": {
"enum": [
"SHIPPED",
"ON_HOLD",
"DELIVERED",
"CANCELLED"
],
"type": "string",
"description": "Status"
},
"carrier": {
"type": "string",
"description": "Carrier code"
},
"notify_buyer": {
"type": "boolean",
"description": "Notify buyer"
},
"transaction_id": {
"type": "string",
"description": "Transaction ID"
},
"tracking_number": {
"type": "string",
"description": "Tracking number"
},
"carrier_name_other": {
"type": "string",
"description": "Custom carrier name"
}
}
}paypal_list_transactionsSearch transactions within a date range.
Args:
Returns: List of transactions matching criteria.
{
"type": "object",
"required": [
"start_date",
"end_date"
],
"properties": {
"page": {
"type": "integer",
"description": "Page number"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"end_date": {
"type": "string",
"description": "End date (ISO 8601)"
},
"store_id": {
"type": "string",
"description": "Store ID filter"
},
"page_size": {
"type": "integer",
"description": "Items per page"
},
"start_date": {
"type": "string",
"description": "Start date (ISO 8601)"
},
"terminal_id": {
"type": "string",
"description": "Terminal ID filter"
},
"transaction_id": {
"type": "string",
"description": "Transaction ID filter"
},
"transaction_type": {
"type": "string",
"description": "Transaction type filter"
},
"transaction_amount": {
"type": "string",
"description": "Amount filter"
},
"transaction_currency": {
"type": "string",
"description": "Currency filter"
}
}
}paypal_get_balancesGet account balances.
Args:
Returns: Account balances by currency.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"as_of_time": {
"type": "string",
"description": "As-of time (ISO 8601)"
},
"currency_code": {
"type": "string",
"description": "Currency filter"
}
}
}paypal_create_webhookCreate a webhook to receive event notifications.
Args:
Returns: The created webhook with ID.
{
"type": "object",
"required": [
"url",
"event_types"
],
"properties": {
"url": {
"type": "string",
"description": "Webhook URL (HTTPS required)"
},
"event_types": {
"type": "string",
"description": "JSON array of event type names"
}
}
}paypal_list_webhooksList all webhooks for this application.
Args:
Returns: List of webhooks with their URLs and event subscriptions.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}paypal_get_webhookGet details of a webhook.
Args:
Returns: Webhook details including URL and subscribed events.
{
"type": "object",
"required": [
"webhook_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"webhook_id": {
"type": "string",
"description": "Webhook ID"
}
}
}paypal_update_webhookUpdate a webhook with patch operations.
Args:
Returns: The updated webhook.
{
"type": "object",
"required": [
"webhook_id",
"op",
"path"
],
"properties": {
"op": {
"enum": [
"add",
"remove",
"replace"
],
"type": "string",
"description": "Patch operation"
},
"path": {
"type": "string",
"description": "JSON Pointer path"
},
"value": {
"type": "string",
"description": "New value as JSON string"
},
"webhook_id": {
"type": "string",
"description": "Webhook ID"
}
}
}paypal_delete_webhookDelete a webhook.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"webhook_id"
],
"properties": {
"webhook_id": {
"type": "string",
"description": "Webhook ID to delete"
}
}
}paypal_list_webhook_event_typesList all available webhook event types.
Args:
Returns: List of event types that can be subscribed to.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}paypal_list_webhook_eventsList webhook event notifications.
Args:
Returns: List of webhook events.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"end_time": {
"type": "string",
"description": "End time (ISO 8601)"
},
"page_size": {
"type": "integer",
"description": "Items per page"
},
"event_type": {
"type": "string",
"description": "Event type filter"
},
"start_time": {
"type": "string",
"description": "Start time (ISO 8601)"
},
"transaction_id": {
"type": "string",
"description": "Transaction ID filter"
}
}
}paypal_get_webhook_eventGet details of a webhook event.
Args:
Returns: Event details including type, resource, and summary.
{
"type": "object",
"required": [
"event_id"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"event_id": {
"type": "string",
"description": "Event ID"
}
}
}paypal_resend_webhook_eventResend a webhook event notification.
Args:
Returns: Confirmation of resend.
{
"type": "object",
"required": [
"event_id"
],
"properties": {
"event_id": {
"type": "string",
"description": "Event ID to resend"
},
"webhook_ids": {
"type": "string",
"description": "JSON array of webhook IDs"
}
}
}paypal_verify_webhook_signatureVerify the signature of a webhook event.
Args:
Returns: Verification status.
{
"type": "object",
"required": [
"auth_algo",
"cert_url",
"transmission_id",
"transmission_sig",
"transmission_time",
"webhook_id",
"webhook_event"
],
"properties": {
"cert_url": {
"type": "string",
"description": "Certificate URL"
},
"auth_algo": {
"type": "string",
"description": "Auth algorithm"
},
"webhook_id": {
"type": "string",
"description": "Your webhook ID"
},
"webhook_event": {
"type": "string",
"description": "Full webhook event JSON"
},
"transmission_id": {
"type": "string",
"description": "Transmission ID"
},
"transmission_sig": {
"type": "string",
"description": "Transmission signature"
},
"transmission_time": {
"type": "string",
"description": "Transmission time"
}
}
}paypal_simulate_webhook_eventSimulate a webhook event for testing.
Args:
Returns: The simulated event details.
{
"type": "object",
"required": [
"event_type"
],
"properties": {
"url": {
"type": "string",
"description": "Target URL"
},
"event_type": {
"type": "string",
"description": "Event type to simulate"
},
"webhook_id": {
"type": "string",
"description": "Webhook ID"
},
"resource_version": {
"type": "string",
"default": "1.0",
"description": "Resource version"
}
}
}