Actions55
- Webhooks Actions
- Payments Actions
- Products Actions
- Plans Actions
- Partner Referrals Actions
- Reporting Actions
- Orders Actions
- Subscriptions Actions
- Invoicing Actions
- Disputes Actions
Orders → Update Order
AI-generatedOverview
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.
For the Orders resource with the Update Order operation, this node allows you to update an existing PayPal order by specifying its ID and providing the update details in JSON format. This is useful for modifying order information after creation, such as changing purchase units or other order attributes supported by PayPal's PATCH endpoint.
Common scenarios:
- Adjusting order details before finalizing payment capture.
- Correcting or adding information to an order that was initially created with incomplete data.
- Automating order management workflows where order updates are required based on external triggers or business logic.
Practical example:
You have an order created but need to update shipping details or add additional purchase units before capturing payment. Using this node, you provide the order ID and a JSON patch body describing the changes, and the node sends the update request to PayPal.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the PayPal order to update. |
| Request Body | JSON string representing the update payload to apply to the order (must be valid JSON). |
| Additional Options | Optional settings including: - Environment: "Sandbox" or "Live" PayPal environment. - Page Size: Number of items per page (for list operations). - Start Time: ISO 8601 start date filter. - End Time: ISO 8601 end date filter. |
Output
The node outputs an array of JSON objects, each containing:
resource: The resource type, here always"orders".operation: The operation performed, here"updateOrder".success: Boolean indicating if the operation succeeded.- All fields returned by PayPal's API response for the updated order.
creditsUsed: Number of API credits consumed by the operation (usually 1).creditsRemaining: Remaining API credits available.timestamp: ISO 8601 timestamp when the operation was executed.- If the operation fails and "Continue On Fail" is enabled, an object with
errormessage andsuccess: falseis returned instead.
No binary data output is produced by this node.
Dependencies
- Requires credentials for:
- An API key credential for the "N8N Tools API" service used for validation.
- A PayPal OAuth2 API credential providing an access token and environment info.
- The node dynamically constructs PayPal API URLs based on the environment ("sandbox" or "live").
- The node uses HTTP requests to communicate with both the N8N Tools API and PayPal REST API endpoints.
- Proper configuration of these credentials and network access to PayPal endpoints is necessary.
Troubleshooting
Invalid JSON in Request Body:
If the JSON provided in the "Request Body" property is malformed, the node throws an error indicating invalid JSON. Ensure the JSON syntax is correct.Validation Failure:
The node first validates the requested resource and operation via the N8N Tools API. If validation fails, it throws an error with the validation message. Check your API key and parameters.Unknown Operation or Resource:
If an unsupported operation or resource is specified, the node throws an error indicating the unknown operation/resource. Verify the selected options.API Authentication Errors:
If PayPal OAuth2 credentials are invalid or expired, the node will fail to authenticate. Refresh or reconfigure credentials as needed.Rate Limits or Quotas:
The node reports credits used and remaining. If you hit API rate limits, consider adjusting usage or contacting support.Network Issues:
Ensure the n8n instance has internet access to reach PayPal API endpoints.
Links and References
- PayPal Orders API Documentation
- PayPal Developer Portal
- ISO 8601 Date Format
- n8n HTTP Request Node Documentation (for understanding underlying HTTP calls)