N8N Tools - PayPal Enhanced icon

N8N Tools - PayPal Enhanced

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

Subscriptions → Show Subscription Details

AI-generated

Overview

This node integrates with PayPal's API to manage subscriptions and other PayPal resources. Specifically, the "Show Subscription Details" operation retrieves detailed information about a specific subscription by its ID. This is useful for scenarios where you need to verify the status, plan, billing cycles, or other metadata of a recurring subscription in your PayPal account.

Practical examples include:

  • Fetching subscription details to display in a customer portal.
  • Automating subscription audits or reconciliations.
  • Triggering workflows based on subscription status changes.

Properties

Name Meaning
ID The unique identifier of the subscription to retrieve details for.
Additional Options Optional parameters including:
- Environment: Choose between "Sandbox" (test) or "Live" PayPal environment.
- Page Size: Number of items per page for list operations (not directly relevant here).
- Start Time: Filter start date/time in ISO 8601 format (not used in this operation).
- End Time: Filter end date/time in ISO 8601 format (not used in this operation).

Output

The output JSON contains the following fields:

  • resource: The resource type, here always "subscriptions".
  • operation: The operation performed, here "showSubscriptionDetails".
  • success: Boolean indicating if the operation succeeded.
  • All fields returned by PayPal's /v1/billing/subscriptions/{id} GET endpoint, which typically includes subscription status, plan details, subscriber info, billing cycles, and related metadata.
  • creditsUsed: Number of API credits consumed by this request (usually 1).
  • creditsRemaining: Remaining API credits after this request.
  • timestamp: ISO string timestamp when the data was retrieved.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the external "N8N Tools API" service that validates the requested operation.
  • Requires OAuth2 credentials for PayPal API access, including an access token and environment setting (sandbox or live).
  • The node makes HTTP requests to both the N8N Tools API and PayPal's REST API endpoints.
  • Proper configuration of these credentials in n8n is necessary before use.

Troubleshooting

  • Invalid JSON in Request Body: If a JSON body is provided but malformed, the node throws an error. Ensure JSON syntax correctness.
  • Validation Failure: If the external validation API rejects the resource-operation combination, the node will error out with a validation failure message.
  • Unknown Operation or Resource: Selecting an unsupported operation or resource triggers an error indicating the unknown operation/resource.
  • API Authentication Errors: Missing or invalid PayPal OAuth2 tokens or API keys will cause authentication failures.
  • Rate Limits or Quotas: Exceeding API credit limits may result in errors; monitor creditsRemaining to avoid this.
  • To resolve errors, verify credentials, ensure correct IDs are used, and confirm the PayPal environment matches the intended usage (sandbox vs live).

Links and References

Discussion