N8N Tools - PayPal Enhanced icon

N8N Tools - PayPal Enhanced

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

Products → Create Product

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 for the Products resource with the Create Product operation, it allows users to create new subscription products in their PayPal account by sending a properly structured JSON request body.

Common scenarios where this node is beneficial include automating product creation workflows in e-commerce or subscription-based services, integrating PayPal product management into larger automation pipelines, or programmatically managing product catalogs without manual intervention.

For example, a business could use this node to automatically add new subscription products to their PayPal account whenever a new service tier is launched on their platform, ensuring seamless synchronization between their internal systems and PayPal.

Properties

Name Meaning
Request Body JSON-formatted string representing the details of the product to be created. This should follow PayPal's product creation schema.
Additional Options Collection of optional parameters:
- Environment: Choose between "Sandbox" (testing) or "Live" PayPal environment.
- Page Size: Number of items per page for list operations (not applicable for create but available for other operations).
- Start Time: ISO 8601 formatted start date for filtering (used in list operations).
- End Time: ISO 8601 formatted end date for filtering (used in list operations).

Output

The output JSON contains the following fields:

  • resource: The resource type, here always "products".
  • operation: The operation performed, here "createProduct".
  • success: Boolean indicating if the operation was successful.
  • All fields returned by PayPal's API for the created product, which typically includes product ID, name, description, status, and other metadata.
  • creditsUsed: Number of API credits consumed by the operation (usually 1).
  • creditsRemaining: Remaining API credits after the operation.
  • timestamp: ISO timestamp when the operation was executed.

If the node encounters an error and is configured to continue on failure, the output will contain an error field with the error message and success set to false.

The node does not output binary data.

Dependencies

  • Requires credentials for:
    • An API key credential for the external validation and proxy service ("N8N Tools API").
    • A PayPal OAuth2 API credential providing an access token and environment information.
  • The node uses these credentials to authenticate requests to PayPal's REST API endpoints.
  • No additional environment variables are required beyond these credentials.

Troubleshooting

  • Invalid JSON in Request Body: If the provided JSON in the "Request Body" property is malformed, the node throws an error indicating invalid JSON. Ensure the JSON syntax is correct before running.
  • API Validation Failure: The node first validates the requested resource and operation via an external API. If this validation fails, the node will throw an error with the validation message.
  • Unknown Operation or Resource: If an unsupported operation or resource is selected, the node throws an error specifying the unknown operation or resource.
  • Authentication Errors: If the PayPal OAuth2 token is invalid or expired, API calls will fail. Refresh or reconfigure the PayPal credentials accordingly.
  • Rate Limits or Quotas: The node tracks API credits used and remaining. Exceeding quotas may cause failures; monitor usage and adjust accordingly.
  • Continue On Fail: When enabled, the node outputs errors per item instead of stopping execution, allowing partial processing.

Links and References

Discussion