Stripe

App · Payments & Billing · 9 actions · 1 trigger

Accept payments and automate billing workflows with Stripe.

Triggers

Start a workflow when something happens in Stripe. See how triggers work.

New Stripe payment

Runs when a new payment is created in Stripe.

Filters

Narrow which events start a run.

status
Only run for payments in this Stripe status, such as succeeded. Leave empty to run for every payment, including ones still waiting for the customer to pay.

Event fields

What a run starts with. Later steps read each field with an @ reference.

payment_intent_idtext
statustext
amountnumber
currencytext
creatednumber
customertext
descriptiontext

Actions

ActionWhat it does
Confirm a Stripe paymentComplete a payment by confirming it with a payment method.
Create a Stripe customerCreate a new Stripe customer with contact details.
Create a Stripe paymentSet up a payment to charge a customer a custom amount.
Create a Stripe payment linkGenerate a payment link for a price.
Create a Stripe priceCreate a one-time or recurring price for a product.
Create a Stripe productCreate a product to sell with Stripe.
List Stripe customersList your most recent Stripe customers.
Refund a Stripe paymentRefund a payment, in full or in part.
Retrieve a Stripe customerLook up a Stripe customer by their ID.

Confirm a Stripe payment

Complete a payment by confirming it with a payment method.

Inputs

Payment IDpayment_intent_idtextRequired
The ID of the Stripe payment to confirm.
Payment methodpayment_methodtextRequired
The ID of the payment method to charge, for example pm_card_visa in test mode.

Outputs

Stripe payment intent object with status updated to 'succeeded'.

Example output
{
  "id": "pi_123",
  "status": "succeeded"
}

Create a Stripe customer

Create a new Stripe customer with contact details.

Inputs

EmailemailtextRequired
Customer email
Namenametext
Customer name
Descriptiondescriptiontext
Customer description
Phonephonetext
Customer phone number

Outputs

Stripe customer object returned by the Stripe API containing customer details.

Example output
{
  "email": "customer@example.com",
  "id": "cus_123",
  "name": "Example Customer"
}

Create a Stripe payment

Set up a payment to charge a customer a custom amount.

Inputs

AmountamountnumberRequired
The amount to charge, in the smallest currency unit, for example cents for USD (500 means $5.00).
CurrencycurrencytextRequired
The three-letter currency code, for example usd.
Customer IDcustomer_idtext
The ID of a customer to link this payment to (optional).
Descriptiondescriptiontext
A short note describing what the payment is for.

Outputs

Stripe payment intent object returned by the Stripe API containing payment details.

Example output
{
  "amount": 500,
  "currency": "usd",
  "id": "pi_123"
}

Generate a payment link for a price.

Inputs

Price IDprice_idtextRequired
Stripe price ID
Quantityquantitynumber
Quantity to purchase

Outputs

Stripe payment link object returned by the Stripe API containing the generated link URL.

Example output
{
  "id": "plink_123",
  "url": "https://pay.stripe.com/test"
}

Create a Stripe price

Create a one-time or recurring price for a product.

Inputs

Product IDproduct_idtextRequired
Stripe product ID
Price amountunit_amountnumberRequired
The price in the smallest currency unit, for example cents for USD (500 means $5.00).
CurrencycurrencytextRequired
The three-letter currency code, for example usd.
Billing intervalintervaltext
How often the customer is billed: day, week, month, or year.
Number of intervalsinterval_countnumber
The number of billing intervals between charges. For example, 3 with a monthly interval charges every 3 months.

Outputs

Stripe price object returned by the Stripe API containing pricing details.

Example output
{
  "currency": "usd",
  "id": "price_123",
  "unit_amount": 500
}

Create a Stripe product

Create a product to sell with Stripe.

Inputs

NamenametextRequired
Product name
Descriptiondescriptiontext
Product description

Outputs

Stripe product object returned by the Stripe API containing product details.

Example output
{
  "id": "prod_123",
  "name": "Example Product"
}

List Stripe customers

List your most recent Stripe customers.

Inputs

Limitlimitnumber
Maximum customers to returnDefault: 10.

Outputs

Array of Stripe customer objects returned by the Stripe API.

Example output
[
  {
    "email": "customer@example.com",
    "id": "cus_123"
  },
  {
    "email": "other@example.com",
    "id": "cus_124"
  }
]

Refund a Stripe payment

Refund a payment, in full or in part.

Inputs

Payment IDpayment_intent_idtextRequired
The ID of the Stripe payment to refund.
Amountamountnumber
The amount to refund, in the smallest currency unit, for example cents for USD (200 means $2.00). Leave blank to refund the full payment.

Outputs

Stripe refund object returned by the Stripe API containing refund details.

Example output
{
  "amount": 200,
  "id": "re_123"
}

Retrieve a Stripe customer

Look up a Stripe customer by their ID. Fails the step when the ID is empty, as it is for a guest checkout (a payment with no customer), so look up only payments that have a customer.

Inputs

Customer IDcustomer_idtextRequired
Stripe customer ID

Outputs

Stripe customer object returned by the Stripe API for the requested customer ID.

Example output
{
  "email": "customer@example.com",
  "id": "cus_123"
}

On this page