Actions55
- Webhooks Actions
- Payments Actions
- Products Actions
- Plans Actions
- Partner Referrals Actions
- Reporting Actions
- Orders Actions
- Subscriptions Actions
- Invoicing Actions
- Disputes Actions
Orders → Authorize Payment
AI-generatedOverview
This node provides an enhanced integration with PayPal, supporting over 70 operations across multiple PayPal resources such as Orders, Subscriptions, Invoicing, Disputes, Webhooks, and more. Specifically for the Orders resource and the Authorize Payment operation, it allows you to authorize a payment on an existing PayPal order by its ID.
Typical use cases include:
- Authorizing payments after creating an order but before capturing funds.
- Managing payment workflows where authorization and capture are separate steps.
- Automating PayPal order payment authorizations within larger workflows.
For example, after creating an order in PayPal, you can use this node to authorize the payment, ensuring funds are reserved but not yet captured, which is useful for scenarios like delayed shipping or fraud checks.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the PayPal order to authorize payment for. |
| Additional Options | Optional settings including: - Environment: "Sandbox" or "Live" PayPal environment. - Page Size: Number of items per page (for list operations). - Start Time: Filter start date/time (ISO 8601 format). - End Time: Filter end date/time (ISO 8601 format). |
Output
The node outputs a JSON object containing:
resource: The resource name ("orders").operation: The operation performed ("authorizePayment").success: Boolean indicating if the operation succeeded.- All fields returned by the PayPal API response for the authorization request, typically including details about the authorized payment.
creditsUsedandcreditsRemaining: Metadata about API usage credits from the external validation service.timestamp: ISO string timestamp of 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 used for validation.
- A PayPal OAuth2 access token credential with environment and client ID.
- The node makes HTTP requests to both the N8N Tools API and the PayPal API endpoints.
- The PayPal API base URL depends on the selected environment ("sandbox" or "live").
Troubleshooting
- Invalid JSON in Request Body: If a custom request body is provided and contains invalid JSON, the node will throw an error. Ensure JSON syntax is correct.
- Validation Failure: If the external validation API rejects the resource-operation combination or credentials, the node throws an error indicating validation failure.
- Unknown Operation or Resource: Selecting an unsupported operation or resource results in an error specifying the unknown operation/resource.
- Authorization Errors: If the PayPal OAuth2 token is invalid or expired, API calls will fail. Refresh or reconfigure credentials accordingly.
- API Rate Limits: The node tracks API credit usage; hitting limits may cause failures. Monitor usage and adjust workflow frequency if needed.