Skip to main content
Glama

mcp-google-sheets

booking-canceled.ts1.01 kB
import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework'; import { simplybookAuth} from '../common'; export const bookingCanceled = createTrigger({ auth: simplybookAuth, name: 'booking_canceled', displayName: 'Booking Cancellation', description: 'Triggers when a booking is canceled in SimplyBook.me', type: TriggerStrategy.WEBHOOK, props: {}, async onEnable(context) { // Subscribe to 'cancel' event webhook will be added through simplybook platform }, async onDisable(context) { // Subscribe to 'cancel' event webhook will be removed through simplybook platform }, async run(context) { const body = context.payload.body as any; if (body.notification_type !== 'cancel') { return []; } return [body]; }, sampleData: { booking_id: '4', booking_hash: 'cfae2b34e23ec6e68545d60532234ae8', company: 'examplecompany', notification_type: 'cancel', webhook_timestamp: 1759919125, signature_algo: 'sha256', }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server