View as Markdown
Hostaway icon

Hostaway ACTION

Create Reservation

Creates a new reservation in Hostaway. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Hostaway account once, then configure and run Create Reservation 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: "hostaway-create-reservation",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    hostaway: { authProvisionId: "apn_xxxxxxx" },
    channelId: 10,
    listingMapId: "Listing",
  },
})

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 Reservation inputs
Property Type Description
channelId Channel integer
Identifier of the channel
Required
listingMapId Listing string
Identifier of a listing
Required Dynamic
arrivalDate Arrival Date string
Arrival date in YYYY-MM-DD format, e.g. 2024-08-15
Required
departureDate Departure Date string
Departure date in YYYY-MM-DD format, e.g. 2024-08-19
Required
guestName Guest Name string
Name of the guest
Optional
guestEmail Guest Email string
Email address of the guest
Optional
numberOfGuests Number of Guests integer
Number of guests for the reservation
Optional
additionalFields Additional Fields object
Additional fields to set for the reservation. See the documentation for all available fields.
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
hostaway-create-reservation
Version
0.0.2
App
Hostaway
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes