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 → Send Invoice

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, Invoicing, Disputes, Webhooks, Payments, Products, Plans, Partner Referrals, and Reporting. Specifically for the Invoicing resource and the Send Invoice operation, this node allows users to send an existing invoice to its recipient via PayPal.

This is useful in scenarios where you have created or updated an invoice draft and want to trigger the sending process programmatically within an n8n workflow. For example, after generating an invoice for a customer, you can automate sending it immediately without manual intervention.

Practical examples:

  • Automatically send invoices once they are finalized in your system.
  • Trigger invoice sending based on external events like order completion or subscription renewal.
  • Integrate invoice sending into larger financial automation workflows.

Properties

Name Meaning
ID The unique identifier of the invoice to send.
Additional Options Collection of optional parameters:
- Environment: Choose between "Sandbox" (test) or "Live" PayPal environment.
- Page Size: Number of items per page for list operations (not relevant for sendInvoice).
- Start Time: Filter start date in ISO 8601 format (not relevant for sendInvoice).
- End Time: Filter end date in ISO 8601 format (not relevant for sendInvoice).

Output

The node outputs a JSON object containing:

  • resource: The resource name, here always "invoicing".
  • operation: The operation performed, here "sendInvoice".
  • success: Boolean indicating if the operation succeeded.
  • All fields returned by the PayPal API response for the send invoice request.
  • creditsUsed: Number of API credits consumed by the operation (usually 1).
  • creditsRemaining: Remaining API credits after the operation.
  • timestamp: ISO string timestamp when the operation was executed.

No binary data output is produced by this operation.

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 and environment info.
  • The node uses the PayPal REST API endpoints, switching between sandbox and live URLs based on the environment setting.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid JSON in Request Body: If a JSON body is provided and malformed, the node throws an error. Ensure JSON syntax correctness.
  • Validation Failure: The node first validates the requested resource and operation with the external API. Validation failure will stop execution with an error message from that API.
  • Unknown Operation or Resource: If an unsupported operation or resource is selected, the node throws 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 / Credits: The node tracks API credits used; exceeding limits may cause errors.
  • To resolve errors, verify credentials, input parameters (especially the invoice ID), and ensure the PayPal environment matches your account setup.

Links and References

Discussion