N8N Tools - PayPal Enhanced icon

N8N Tools - PayPal Enhanced

Complete PayPal integration with 70+ operations including Orders, Subscriptions, Invoicing, Disputes, Webhooks, and Partner management

Plans → Create Plan

AI-generated

Overview

The node "N8N Tools - PayPal Enhanced" provides a comprehensive integration with PayPal's API, supporting over 70 operations across multiple resources such as Orders, Subscriptions, Products, Plans, Invoicing, Disputes, Webhooks, Payments, Partner Referrals, and Reporting. Specifically, the Create Plan operation under the Plans resource allows users to create new billing plans in PayPal.

This node is beneficial for automating PayPal billing workflows within n8n, such as creating subscription plans programmatically, managing orders, handling disputes, or generating invoices. For example, a business can use this node to automatically create billing plans when launching new subscription products, streamlining their payment setup process.

Properties

Name Meaning
Request Body JSON object representing the request payload sent to PayPal API to create the billing plan. It must be valid JSON.
Additional Options Collection of optional parameters:
• Environment: Choose between "Sandbox" (testing) or "Live" (production).
• Page Size: Number of items per page for list operations (not relevant for createPlan but available globally).
• Start Time: ISO 8601 formatted start date for filtering (not relevant for createPlan).
• End Time: ISO 8601 formatted end date for filtering (not relevant for createPlan).

Output

The node outputs an array of JSON objects, each containing:

  • resource: The resource name, here always "plans".
  • operation: The operation performed, here "createPlan".
  • success: Boolean indicating if the operation succeeded.
  • All fields returned by the PayPal API response for the created plan, merged into the output JSON.
  • creditsUsed: Number of API credits consumed by the operation (usually 1).
  • creditsRemaining: Remaining API credits after the operation.
  • timestamp: ISO string timestamp of when the operation was executed.

No binary data output is produced by this node.

Dependencies

  • Requires credentials for:
    • An API key credential for the external "N8N Tools API" service used for validation.
    • A PayPal OAuth2 API credential providing an access token, environment (sandbox/live), and client ID.
  • The node makes HTTP requests to both the N8N Tools API and PayPal API endpoints.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid JSON in Request Body: If the JSON provided in the "Request Body" property is malformed, the node will throw an error indicating invalid JSON. Ensure the JSON syntax is correct.
  • Validation Failure: The node first validates the requested resource and operation via the N8N Tools API. If validation fails, it throws an error with the message from the validation response.
  • Unknown Operation or Resource: If an unsupported operation or resource is specified, the node throws an error indicating the unknown operation/resource.
  • API Authentication Errors: If PayPal OAuth2 credentials are missing or invalid, the node will fail to authenticate with PayPal.
  • HTTP Request Failures: Network issues or incorrect API URLs may cause request failures.
  • To continue processing other items despite errors, enable "Continue On Fail" in the node settings.

Links and References

Discussion