← Calendly + Stripe integrations

Create Product with Stripe API on New Event Scheduled from Calendly API

Pipedream makes it easy to connect APIs for Stripe, Calendly and 3,000+ other apps remarkably fast.

Trigger workflow on
New Event Scheduled from the Calendly API
Next, do this
Create Product with the Stripe API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Calendly trigger and Stripe action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Event Scheduled trigger
    1. Connect your Calendly account
    2. Configure timer
    3. Configure alert
    4. Select a Scope
    5. Optional- Select a Organization UUID
    6. Optional- Select a User UUID
    7. Optional- Select a Group ID
  3. Configure the Create Product action
    1. Connect your Stripe account
    2. Configure Name
    3. Optional- Configure Active
    4. Optional- Configure Unit Label
    5. Optional- Select a Country
    6. Optional- Configure Default Price Data - Unit Amount
    7. Optional- Configure Default Price Data - Unit Amount Decimal
    8. Optional- Select a Default Price Data - Currency
    9. Optional- Select a Default Price Data - Recurring - Interval
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a event is scheduled.
Version:0.0.8
Key:calendly_v2-new-event-scheduled

Calendly Overview

The Calendly API lets you craft bespoke scheduling experiences within your apps or automate repetitive tasks involving your calendar. With this API, you can read event types, set up webhooks for new events, list invitees, or create and cancel invitation links programmatically. Pipedream's serverless platform takes the heavy lifting out of integrating Calendly with 3,000+ other apps, enabling you to focus on creating workflows that save time, enhance productivity, and eliminate scheduling errors.

Trigger Code

import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
import app from "../../calendly_v2.app.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  key: "calendly_v2-new-event-scheduled",
  name: "New Event Scheduled",
  description: "Emit new event when a event is scheduled.",
  version: "0.0.8",
  type: "source",
  dedupe: "unique",
  props: {
    app,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      static: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
    alert: {
      propDefinition: [
        app,
        "listEventsAlert",
      ],
    },
    scope: {
      propDefinition: [
        app,
        "listEventsScope",
      ],
      reloadProps: true,
    },
    organization: {
      propDefinition: [
        app,
        "organization",
      ],
      optional: true,
      hidden: true,
    },
    user: {
      propDefinition: [
        app,
        "user",
        (c) => ({
          organization: c.organization,
        }),
      ],
      description: "Returns events for a specified user",
      optional: true,
      hidden: true,
    },
    group: {
      propDefinition: [
        app,
        "groupId",
        (c) => ({
          organization: c.organization,
        }),
      ],
      description: "Returns events for a specified group",
      optional: true,
      hidden: true,
    },
  },
  async additionalProps(props) {
    return this.app.listEventsAdditionalProps(props, this.scope);
  },
  methods: {
    emitEvent(data) {
      const id = data.uri.split("/").reverse()[0];

      this.$emit(data, {
        id: id,
        summary: `New scheduled event with ID ${id}`,
        ts: Date.parse(data.created_at),
      });
    },
    _setLastResourceId(id) {
      this.db.set("lastResourceId", id);
    },
    _getLastResourceId() {
      return this.db.get("lastResourceId");
    },
  },
  async run() {
    const lastResourceId = this._getLastResourceId();

    let nextPage;

    const params = {
      count: 100,
      sort: "created_at:desc",
    };
    if (this.scope !== "authenticatedUser") {
      params.organization = this.organization;
    }
    if (this.scope === "user") {
      params.user = this.user;
    }
    if (this.scope === "group") {
      params.group = this.group;
    }

    do {
      const {
        pagination, collection: events,
      } = await this.app.listEvents({
        params: {
          ...params,
          page_token: nextPage,
        },
      });

      if (events.length) {
        this._setLastResourceId(events[events.length - 1].uri);

        events.forEach(this.emitEvent);
      }

      if (
        events.length < 100 ||
        events.find(({ uri }) => uri === lastResourceId)
      ) {
        nextPage = null;
        return;
      }

      nextPage = pagination.next_page;
    } while (nextPage);
  },
  sampleEmit,
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
CalendlyappappThis component uses the Calendly app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
ScopescopestringSelect a value from the drop down menu:authenticatedUserorganizationusergroup

Trigger Authentication

Calendly uses OAuth authentication. When you connect your Calendly account, Pipedream will open a popup window where you can sign into Calendly and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Calendly API.

Pipedream requests the following authorization scopes when you connect your account:

About Calendly

Schedule meetings without the hassle. Never get double booked. Calendly works with your calendar to automate appointment scheduling.

Action

Description:Creates a new product object in Stripe. [See the documentation](https://stripe.com/docs/api/products/create).
Version:0.0.5
Key:stripe-create-product

Stripe Overview

The Stripe API is a powerful tool for managing online payments, subscriptions, and invoices. With Pipedream, you can leverage this API to automate payment processing, monitor transactions, and sync billing data with other services. Pipedream's no-code platform allows for quick integration and creation of serverless workflows that react to Stripe events in real-time. For instance, you might automatically update customer records, send personalized emails after successful payments, or escalate failed transactions to your support team.

Action Code

import app from "../../stripe.app.mjs";

export default {
  key: "stripe-create-product",
  name: "Create Product",
  description: "Creates a new product object in Stripe. [See the documentation](https://stripe.com/docs/api/products/create).",
  version: "0.0.5",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    app,
    name: {
      description: "The product's name, meant to be displayable to the customer.",
      optional: false,
      propDefinition: [
        app,
        "name",
      ],
    },
    active: {
      description: "Whether the product is currently available for purchase. Defaults to true.",
      propDefinition: [
        app,
        "active",
      ],
    },
    unitLabel: {
      type: "string",
      label: "Unit Label",
      description: "A label that represents units of this product. When set, this will be included in customers receipts, invoices, Checkout, and the customer portal.",
      optional: true,
    },
    country: {
      propDefinition: [
        app,
        "country",
      ],
    },
    defaultPriceDataUnitAmount: {
      label: "Default Price Data - Unit Amount",
      description: "A positive integer in cents (or `0` for a free price) representing how much to charge. One of **Unit Amount** or **Unit Amount Decimal** is required.",
      propDefinition: [
        app,
        "unitAmount",
      ],
    },
    defaultPriceDataUnitAmountDecimal: {
      label: "Default Price Data - Unit Amount Decimal",
      propDefinition: [
        app,
        "unitAmountDecimal",
      ],
    },
    defaultPriceDataCurrency: {
      label: "Default Price Data - Currency",
      propDefinition: [
        app,
        "currency",
        ({ country }) => ({
          country,
        }),
      ],
    },
    defaultPriceDataRecurringInterval: {
      label: "Default Price Data - Recurring - Interval",
      optional: true,
      propDefinition: [
        app,
        "recurringInterval",
      ],
    },
  },
  methods: {
    createProduct(args = {}) {
      return this.app.sdk().products.create(args);
    },
  },
  async run({ $ }) {
    const {
      createProduct,
      name,
      defaultPriceDataUnitAmount,
      defaultPriceDataUnitAmountDecimal,
      active,
      unitLabel,
      defaultPriceDataCurrency,
      defaultPriceDataRecurringInterval,
    } = this;

    const response = await createProduct({
      name,
      active,
      unit_label: unitLabel,
      ...(
        defaultPriceDataCurrency
        || defaultPriceDataUnitAmount
        || defaultPriceDataUnitAmountDecimal
        || defaultPriceDataRecurringInterval
          ? {
            default_price_data: {
              currency: defaultPriceDataCurrency,
              recurring: {
                interval: defaultPriceDataRecurringInterval,
              },
              unit_amount: defaultPriceDataUnitAmount,
              unit_amount_decimal: defaultPriceDataUnitAmountDecimal,
            },
          }
          : {}
      ),
    });

    $.export("$summary", `Successfully created a new product with ID \`${response.id}\`.`);

    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
StripeappappThis component uses the Stripe app.
Namenamestring

The product's name, meant to be displayable to the customer.

Activeactiveboolean

Whether the product is currently available for purchase. Defaults to true.

Unit LabelunitLabelstring

A label that represents units of this product. When set, this will be included in customers receipts, invoices, Checkout, and the customer portal.

CountrycountrystringSelect a value from the drop down menu.
Default Price Data - Unit AmountdefaultPriceDataUnitAmountinteger

A positive integer in cents (or 0 for a free price) representing how much to charge. One of Unit Amount or Unit Amount Decimal is required.

Default Price Data - Unit Amount DecimaldefaultPriceDataUnitAmountDecimalstring

Same as Unit Amount, but accepts a decimal value in cents with at most 12 decimal places. Only one of Unit Amount and Unit Amount Decimal can be set.

Default Price Data - CurrencydefaultPriceDataCurrencystringSelect a value from the drop down menu.
Default Price Data - Recurring - IntervaldefaultPriceDataRecurringIntervalstringSelect a value from the drop down menu:dayweekmonthyear

Action Authentication

Stripe uses API keys for authentication. When you connect your Stripe account, Pipedream securely stores the keys so you can easily authenticate to Stripe APIs in both code and no-code steps.

About Stripe

Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.

More Ways to Connect Stripe + Calendly

Get Event with Calendly (OAuth) API on Custom Webhook Events from Stripe API
Stripe + Calendly
 
Try it
List Webhook Subscriptions with Calendly (OAuth) API on Custom Webhook Events from Stripe API
Stripe + Calendly
 
Try it
Create a Scheduling Link with Calendly (OAuth) API on Custom Webhook Events from Stripe API
Stripe + Calendly
 
Try it
List Event Invitees with Calendly (OAuth) API on Custom Webhook Events from Stripe API
Stripe + Calendly
 
Try it
List Events with Calendly (OAuth) API on Custom Webhook Events from Stripe API
Stripe + Calendly
 
Try it
New Event Scheduled from the Calendly API

Emit new event when a event is scheduled.

 
Try it
New Invitee Canceled from the Calendly API

Emit new event when an event is canceled.

 
Try it
New Invitee Created from the Calendly API

Emit new event when a new event is scheduled.

 
Try it
New Routing Form Submission Created from the Calendly API

Emit new event when a new routing form submission is created.

 
Try it
New Custom Webhook Events from the Stripe API

Emit new event on each webhook event

 
Try it
Create a Scheduling Link with the Calendly API

Creates a single-use scheduling link. See the documentation

 
Try it
Create Invitee No Show with the Calendly API

Marks an Invitee as a No Show in Calendly. See the documentation

 
Try it
Get Event with the Calendly API

Gets information about an Event associated with a URI. See the documentation

 
Try it
List Event Invitees with the Calendly API

List invitees for an event. See the documentation

 
Try it
List Events with the Calendly API

List events for an user. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.