Actions55
- Webhooks Actions
- Payments Actions
- Products Actions
- Plans Actions
- Partner Referrals Actions
- Reporting Actions
- Orders Actions
- Subscriptions Actions
- Invoicing Actions
- Disputes Actions
Invoicing → List Invoices
AI-generatedOverview
The 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 with the List Invoices operation, it allows users to retrieve a list of invoices from their PayPal account.
This node is beneficial in scenarios where you want to automate invoice management workflows, such as fetching recent invoices for reporting, auditing, or triggering follow-up actions based on invoice status. For example, you could use this node to regularly pull all invoices created within a specific date range and then process them further in your workflow.
Properties
| Name | Meaning |
|---|---|
| Additional Options | Collection of optional parameters: |
| - Environment | Choose between "Sandbox" (testing) or "Live" (production) PayPal environment |
| - Page Size | Number of invoices to return per page |
| - Start Time | Filter invoices starting from this ISO 8601 date/time |
| - End Time | Filter invoices up to this ISO 8601 date/time |
These options allow filtering and controlling the pagination of the invoice list returned by PayPal.
Output
The output JSON object includes:
resource: The resource name, here always"invoicing".operation: The operation performed, here"listInvoices".- All fields returned by the PayPal API for the list invoices endpoint, typically including an array of invoice objects and metadata about the result.
success: Boolean indicating if the operation succeeded (true).creditsUsed: Number of API credits consumed by the request (from validation response).creditsRemaining: Number of API credits remaining (from validation response).timestamp: ISO string timestamp when the data was retrieved.
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 validating requests.
- A PayPal OAuth2 access token credential with appropriate permissions to call PayPal's invoicing APIs.
- The node dynamically selects the PayPal API base URL depending on the chosen environment (sandbox or live).
- The node uses HTTP POST or GET requests to PayPal endpoints with proper authorization headers.
Troubleshooting
- Invalid JSON in Request Body: If a JSON input property is malformed, the node throws an error specifying invalid JSON. Ensure JSON inputs are correctly formatted.
- Validation Failure: If the external validation API rejects the request, the node will throw an error indicating validation failure. Check API keys and client ID correctness.
- Unknown Operation or Resource: Errors occur if unsupported operations or resources are selected. Verify that the operation matches the resource.
- API Rate Limits or Quotas: The node reports credits used and remaining; hitting limits may cause failures. Monitor usage and adjust accordingly.
- Network or Authentication Issues: Failures in HTTP requests due to network problems or expired tokens will cause errors. Refresh credentials and check connectivity.
Using the "Continue On Fail" option can help workflows proceed even if some requests fail.