TripIt icon

TripIt

Interact with TripIt API

Activity → Attach Document

AI-generated

Overview

This node operation attaches a document to an activity object in the TripIt system. It is useful for scenarios where users want to add supporting documents such as tickets, confirmations, or itineraries to an activity record within their travel plans. For example, attaching a PDF ticket or a scanned receipt to a booked activity.

Use Case Examples

  1. Attach a PDF ticket to a booked city tour activity by providing the activity's UUID, the document name, the base64 encoded content of the PDF, and the MIME type.
  2. Add a scanned receipt image to an activity record for expense tracking.

Properties

Name Meaning
Object UUID The UUID of the activity object to which the document will be attached.
Document Name The name of the document to attach to the activity.
Document Content The base64 encoded content of the document to attach.
Document Type The MIME type of the document to attach, e.g., application/pdf.

Output

JSON

  • documentId - The unique identifier of the attached document.
  • status - The status of the document attachment operation, e.g., success or failure.
  • message - Additional message or information returned from the API about the attachment operation.

Dependencies

  • TripIt API key credential for authentication

Troubleshooting

  • Ensure the provided UUID corresponds to an existing activity object; otherwise, the attachment will fail.
  • Verify that the document content is correctly base64 encoded to avoid upload errors.
  • Check that the MIME type matches the document content to prevent format issues.
  • API errors from TripIt will be surfaced with messages indicating the problem, such as invalid credentials or network issues.

Discussion