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 → Show Plan Details

AI-generated

Overview

This node provides a comprehensive integration with PayPal's API, enabling users to manage various PayPal resources such as Orders, Subscriptions, Products, Plans, Invoices, Disputes, Webhooks, Payments, Partner Referrals, and Reporting. Specifically, the "Show Plan Details" operation under the "Plans" resource retrieves detailed information about a specific billing plan by its ID.

Common scenarios for this node include automating billing workflows, retrieving subscription or plan details for reporting or customer service, managing invoices and disputes, and handling payments programmatically within an n8n workflow.

For example, using the "Show Plan Details" operation, a business can automatically fetch the current configuration and status of a billing plan to verify pricing or availability before creating subscriptions.

Properties

Name Meaning
ID The unique identifier of the billing plan to retrieve details for.
Additional Options Optional parameters including:
- Environment: Choose between "Sandbox" (testing) or "Live" (production) PayPal environment.
- Page Size: Number of items per page for list operations (not applicable for show details).
- Start Time: Filter start date in ISO 8601 format (not applicable for show details).
- End Time: Filter end date in ISO 8601 format (not applicable for show details).

Output

The output JSON object includes:

  • resource: The resource type, here always "plans".
  • operation: The operation performed, here "showPlanDetails".
  • success: Boolean indicating if the operation succeeded.
  • All fields returned by the PayPal API for the billing plan details, which typically include plan attributes such as name, description, status, billing cycles, payment preferences, taxes, and other metadata.
  • creditsUsed: Number of API credits consumed by the request (usually 1).
  • creditsRemaining: Remaining API credits after the request.
  • timestamp: ISO 8601 timestamp when the response was received.

If the node encounters an error and is configured to continue on failure, it outputs an object with error message, success: false, and the resource and operation names.

Dependencies

  • Requires credentials for:
    • An API key credential for the external validation service ("N8N Tools API").
    • A PayPal OAuth2 API credential providing an access token and environment info.
  • The node uses the PayPal REST API endpoints, switching URLs based on the selected environment (sandbox or live).
  • No additional environment variables are required beyond these credentials.

Troubleshooting

  • Invalid JSON in Request Body: If a JSON string is provided in the "Request Body" property and is malformed, the node throws an error indicating invalid JSON. Ensure the JSON syntax is correct.
  • Validation Failure: The node first validates the requested resource and operation via an external API. If validation fails, an error with the message from that API is thrown.
  • Unknown Operation or Resource: If an unsupported operation or resource is specified, the node throws an error indicating the unknown operation or resource.
  • API Authentication Errors: If PayPal credentials are missing, expired, or invalid, requests will fail. Verify that the OAuth2 token is valid and refreshed as needed.
  • Rate Limits or Quotas: The node tracks API credits used and remaining. Exceeding quotas may cause failures; monitor usage accordingly.
  • Network Issues: Connectivity problems to PayPal or the validation API will cause errors. Check network access and proxy settings if applicable.

Links and References

Discussion