N8N Tools - PayPal Enhanced icon

N8N Tools - PayPal Enhanced

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

Invoicing → Show Invoice Details

AI-generated

Overview

This node provides an enhanced integration with PayPal, supporting over 70 operations across multiple PayPal resources such as Orders, Subscriptions, Invoicing, Disputes, Webhooks, Payments, Products, Plans, Partner Referrals, and Reporting. Specifically for the Invoicing resource and the Show Invoice Details operation, it retrieves detailed information about a specific invoice by its ID.

Typical use cases include:

  • Fetching invoice details to display or process them in workflows.
  • Automating invoice management by integrating invoice data retrieval into business processes.
  • Combining invoice data with other financial or CRM systems for reporting or follow-up actions.

Example: A workflow that triggers when a new invoice is created and then fetches its details to send a customized notification email to the customer.

Properties

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

Output

The node outputs a JSON object containing:

  • resource: The resource name ("invoicing").
  • operation: The operation performed ("showInvoiceDetails").
  • success: Boolean indicating if the operation was successful.
  • All fields returned by the PayPal API for the invoice details, which typically include invoice metadata, billing info, items, amounts, status, and related timestamps.
  • creditsUsed: Number of API credits consumed by the request (usually 1).
  • creditsRemaining: Remaining API credits after the request.
  • timestamp: The ISO timestamp when the response was received.

No binary data output is produced by this operation.

Dependencies

  • Requires valid 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 and environment configuration.
  • The node makes HTTP requests to both the N8N Tools API and the PayPal REST API endpoints.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid JSON in Request Body: If a JSON body is provided but malformed, the node throws an error indicating invalid JSON. Ensure JSON syntax correctness.
  • Validation Failure: If the external validation API rejects the resource or operation, the node will throw a validation error. Verify that the resource and operation names are correct and supported.
  • Unknown Operation or Resource: Errors occur if unsupported operations or resources are specified. Confirm the operation and resource names match those listed in the node's options.
  • Authentication Errors: If PayPal OAuth2 credentials are missing or expired, API calls will fail. Refresh or reconfigure credentials as needed.
  • API Rate Limits: The node tracks API credit usage; hitting limits may cause failures. Monitor usage and adjust 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