TripIt icon

TripIt

Interact with TripIt API

Transport → Attach Document

AI-generated

Overview

This node operation attaches a document to a transport object in the TripIt system. It is useful for users who want to add supporting documents such as tickets, receipts, or itineraries to their transport reservations within TripIt. For example, a user can attach a PDF ticket or boarding pass to a specific transport booking by providing the transport object's UUID, the document's name, content (base64 encoded), and MIME type.

Use Case Examples

  1. Attach a PDF ticket to a transport booking by specifying the transport UUID, document name as 'Ticket.pdf', document content as a base64 encoded string, and document type as 'application/pdf'.
  2. Attach an image of a receipt to a transport reservation by providing the UUID, document name, base64 encoded image content, and the appropriate MIME type like 'image/jpeg'.

Properties

Name Meaning
Object UUID The UUID of the transport object to update or attach the document to.
Document Name The name of the document to attach to the transport object.
Document Content The content of the document to attach, provided as a base64 encoded string.
Document Type The MIME type of the document to attach, e.g., 'application/pdf'.

Output

JSON

  • uuid - The UUID of the transport object to which the document was attached.
  • documentName - The name of the attached document.
  • documentType - The MIME type of the attached document.
  • status - The status or result of the document attachment operation.

Dependencies

  • TripIt API credentials required for authentication.

Troubleshooting

  • Common issues include invalid or missing UUID, incorrect base64 encoding of the document content, or unsupported MIME types. Ensure the UUID corresponds to an existing transport object in TripIt.
  • API errors from TripIt may occur if the document attachment fails; error messages from the API will be surfaced by the node.
  • Ensure that the TripIt API credentials are correctly configured and have the necessary permissions to update transport objects.

Discussion