View as Markdown
Rydoo icon

Rydoo ACTION

Create Trip

Registers a new business trip for a specific user. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Rydoo account once, then configure and run Create Trip from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "rydoo-create-trip",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    rydoo: { authProvisionId: "apn_xxxxxxx" },
    userId: "User",
    name: "Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Trip inputs
Property Type Description
userId User string
The user to whom the expense belongs (e.g., d290f1ee-6c54-4b01-90e6-d701748f0851)
Required Dynamic
name Name string
Name of the trip
Required
comment Comment string
Additional notes or details about the trip
Optional
isActive Is Active boolean
Whether the trip is currently active. Defaults to true
Optional
refId Reference ID string
External reference identifier for the trip
Optional
submitForApproval Submit for Approval boolean
When true, submits the trip for approval immediately. Defaults to false
Optional
destinations Destinations string[]
Trip destination details. Each entry must be a JSON object with destination properties (e.g., {"name": "Paris", "date": "2025-06-01"})
Required
budget Budget string
Budget information for the trip as a JSON object (e.g., {"amount": 1000, "currencyCode": "EUR"})
Optional
customFields Custom Fields string[]
Custom field values for the trip. Each entry must be a JSON object with key, value, and optionally valueCode properties (e.g., {"key": "department", "value": "Engineering", "valueCode": "ENG"})
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
rydoo-create-trip
Version
0.0.2
App
Rydoo
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes