Skip to content

Stripe event ​

Starts the workflow when a payment completes, an invoice is paid or fails, a refund or a customer appears in Stripe, checking at a regular interval. The event lands in data.stripe, with no triggering email.

The Stripe event trigger checks Stripe events at regular intervals and starts one run per event of the chosen type: payment completed, invoice paid or failed, refund, new customer.

The run has no triggering email: nodes that act on the triggering email cannot follow this trigger. Send works when you choose the sending mailbox on the node.

At a glance ​

  • Type: trigger.stripe · version 1
  • Category: Triggers
  • Kind: Trigger — starts a run
  • Effect: No external effect (none) — nothing is written outside Loop & Roll; safe to replay
  • Needs a carrier email: No
  • Connection: Stripe
  • Outputs: main
The ports of “Stripe event”: what comes in on the left, what goes out on the rightIt starts runs: no input. Outputs: main. It needs a Stripe connection.Stripe eventtrigger.stripeEventmainConnection: Stripe
The ports of “Stripe event”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Stripe connection.

Parameters ​

connection ​

Stripe connection — The Stripe connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

event ​

Trigger on

  • Type: One choice (options)
  • Required: Yes
  • Default: checkout.session.completed
  • Options:
    • checkout.session.completed — A payment link or checkout completed
    • payment_intent.succeeded — A payment succeeded
    • invoice.paid — An invoice paid
    • invoice.payment_failed — An invoice payment failed
    • charge.refunded — A refund
    • customer.created — A new customer

everyMinutes ​

Check every (minutes)

  • Type: Number (number)
  • Required: No
  • Default: 15
  • Whole number, from 5 to 1440

Outputs ​

  • main — Taken once per new item found by a check: each item starts its own run.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.stripe.eventId }} — string. The event id (evt_…).
  • {{ data.stripe.type }} — string. The event type (invoice.paid…).
  • {{ data.stripe.objectId }} — string. The object concerned (invoice, payment…).
  • {{ data.stripe.customerId }} — string. The customer concerned, when the object has one.
  • {{ data.stripe.object }} — object. The object as Stripe returns it.

Example ​

To thank a customer as soon as an invoice is paid, set Trigger on to “An invoice paid” and quote {{ data.stripe.object.number }}.

Tips ​

  • Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Publishing again keeps the position already reached.
  • Cadence. Between 5 and 1,440 minutes. The instance may impose a higher floor; each check uses requests from the connection’s quota.
  • Thirty days. Stripe only keeps its events for thirty days.
  • Testing. Testing from this trigger really queries Stripe and runs the draft on the most recent items, without ever moving the position.
  • Errors. A temporary error leaves the position unchanged and the next check retries. A permanent error (revoked connection, incomplete settings) sends you a notification, once per outage.

Loop & Roll — the workflow builder for email.