N8N Tools - PayPal Enhanced icon

N8N Tools - PayPal Enhanced

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

Orders → Add Tracking

AI-generated

Overview

The "Add Tracking" operation of the Orders resource in this node allows users to add shipping tracking information to PayPal orders. This is useful for merchants who want to update their order shipments with tracking details, enabling better shipment visibility and customer communication.

Typical scenarios include:

  • Automatically updating tracking info after a shipment is dispatched.
  • Integrating with logistics providers to push tracking updates into PayPal orders.
  • Enhancing customer service by providing real-time shipment tracking within PayPal's ecosystem.

Example: After fulfilling an order, you can use this operation to send the carrier name, tracking number, and shipment status to PayPal, so the buyer can track their package directly through PayPal.

Properties

Name Meaning
ID The unique identifier of the order to which tracking information will be added.
Additional Options Optional parameters including:
- Environment: "Sandbox" or "Live" PayPal environment.
- Page Size: Number of items per page (for list operations, not relevant here).
- Start Time: Filter start date (ISO 8601 format).
- End Time: Filter end date (ISO 8601 format).

Note: For the Add Tracking operation specifically, only the ID and Additional Options > Environment are relevant.

Output

The node outputs a JSON object containing:

  • resource: The resource type, here always "orders".
  • operation: The operation performed, here "addTracking".
  • success: Boolean indicating if the operation succeeded.
  • Other fields returned by the PayPal API response related to adding tracking information.
  • creditsUsed and creditsRemaining: Information about API usage credits from the external validation API.
  • timestamp: ISO string timestamp of when the operation was executed.

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials for:
    • An API key credential for the external validation and proxy API ("N8N Tools API").
    • A PayPal OAuth2 API credential providing an access token and environment setting.
  • The node uses the PayPal REST API endpoints, switching between sandbox and live URLs based on the environment option.
  • The node sends requests via an intermediate validation API before calling PayPal.

Troubleshooting

  • Invalid JSON in request body: If a JSON input is malformed, the node throws an error. Ensure any JSON inputs are correctly formatted.
  • Validation failure: If the external validation API rejects the request, the node throws an error with the validation message. Check API key validity and request parameters.
  • Unknown operation or resource: Errors occur if unsupported operations or resources are specified. Confirm that "Orders" resource and "Add Tracking" operation are selected.
  • API authentication errors: Ensure PayPal OAuth2 credentials are correct and tokens are valid.
  • Network or timeout issues: May cause failures; verify network connectivity and API availability.

Links and References

Discussion