Stripe

App · Payments & Billing · 32 actions · 1 trigger

Take payments, send payment links and invoices, issue refunds, manage subscriptions and coupons, and follow customers.

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
Cancel a subscriptionStop a Stripe subscription, now or at the end of the period the customer has paid for.
Confirm a paymentCharge a payment set up with Create a payment to a saved card or other payment method.
Create a checkout pageMake a Stripe checkout page for one price, for a one-off payment or a subscription, to send a customer.
Create a couponMake a Stripe coupon for a percentage or an amount off, for one payment, some months or for good.
Create a customerAdd a customer to Stripe with their email and, if you like, their name, phone number and a note.
Create a paymentSet up a card payment of any amount, optionally for a customer.
Create a payment linkMake a link to a Stripe checkout page where anyone can pay a price.
Create a priceSet what a product costs, once or on a repeating schedule such as monthly.
Create a productAdd something you sell.
Create a subscriptionSign a customer up to a recurring price.
Create an invoiceMake a draft Stripe invoice for a customer with one line, such as a job or an order.
Delete a couponDelete a Stripe coupon so no one can use it from now on.
Delete a draft invoiceDelete a Stripe invoice that is still a draft.
Finalize an invoiceTurn a draft Stripe invoice into a final one, with a number and a link to pay, without emailing it.
Get a customerGet a customer's details, such as their name and email.
Get a paymentGet one payment's amount, status and who paid, such as to check it went through before you ship an order.
Get a subscriptionGet one Stripe subscription: its status, trial and whether it is set to end.
Get an invoiceGet one Stripe invoice: its status, total, what is still owed and the link to pay it.
List customersList your newest customers, most recent first, or find the customers with an email address.
List failed subscription paymentsList the subscription invoices Stripe tried to collect in a period and could not, each with the customer, what they owe and why the card was declined, plus how many there are and the total owed.
List invoicesList the invoices created in a period, with each invoice's number, customer, amount due and paid in dollars (or your currency), status and due date.
List new customersBeta.
List paymentsList the payments made in a period, with how many there were, the total in dollars (or your currency) and who paid the most.
List payoutsList the money Stripe sent to your bank in a period, with the day each payout reaches the bank, its amount in dollars (or your currency) and the period's total, to check against your bank statement or add to a finance sheet.
List refundsList the refunds made in a period, with how many there were, the total refunded in dollars (or your currency), and each refund's customer and reason.
List subscriptionsList Stripe subscriptions, newest first, optionally only one customer's, one price's or those in one state.
Look up a customer's billingBeta.
Refund a paymentGive back all or part of a payment.
Send an invoiceEmail a Stripe invoice to the customer with a link to pay it.
Turn off a payment linkStop a payment link taking payments, such as when an offer ends or a product sells out.
Update a customerChange a customer's email, name, phone number or note.
Void an invoiceCancel a finalized Stripe invoice that hasn't been paid, so it can no longer be paid.

Cancel a subscription

Stop a Stripe subscription, now or at the end of the period the customer has paid for. Either way they aren't billed again.

Inputs

Subscription IDsubscription_idtextRequired
The subscription, by its id (sub_...), as Create a subscription, List subscriptions or a subscription trigger gives it.
Whenwhentext
Now ends it straight away. At the end of the period lets them keep it until the time they've paid for runs out.One of: now, period_end (At the end of the period). Default: now.

Outputs

The subscription.

cancel_atnumber
When it is set to end, as a Unix timestamp; blank if it isn't.
cancel_at_period_endtrue/false
True when it is set to end at the end of the period it has been paid for.
canceled_atnumber
When it was canceled, as a Unix timestamp; blank if it wasn't.
collection_methodtext
charge_automatically (their saved card) or send_invoice (an invoice each period).
customertext
The customer's id (cus_...).
idtext
The subscription's id (sub_...).
latest_invoicetext
The id of its most recent invoice.
start_datenumber
When it started, as a Unix timestamp.
statustext
active, trialing, past_due, unpaid, canceled, incomplete or paused.
trial_endnumber
When its free trial ends, as a Unix timestamp; blank without a trial.
Example output
{
  "cancel_at": null,
  "cancel_at_period_end": false,
  "canceled_at": 1764720000,
  "collection_method": "charge_automatically",
  "customer": "cus_123",
  "id": "sub_123",
  "latest_invoice": "in_123",
  "start_date": 1764633600,
  "status": "canceled",
  "trial_end": 1765238400
}

Confirm a payment

Charge a payment set up with Create a payment to a saved card or other payment method.

Inputs

Paymentpayment_intent_idtextRequired
The payment to confirm.
Payment methodpayment_methodtextRequired
The saved card or other payment method to charge, which starts with pm_. In test mode, pm_card_visa is a test card.

Outputs

The payment, with its status now succeeded.

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

Create a checkout page

Make a Stripe checkout page for one price, for a one-off payment or a subscription, to send a customer. It works for 24 hours; nothing is charged until they pay on it.

Inputs

Priceprice_idtextRequired
The price they pay. For a subscription, a recurring price.
After paying, go tosuccess_urltextRequired
The web page the customer lands on after paying, such as your thank-you page.
Kindmodetext
A one-off payment, or a subscription to a recurring price.One of: payment (One-off payment), subscription. Default: payment.
Quantityquantitynumber
How many they buy. Leave empty for one.At least 1.
If they go back, go tocancel_urltext
The web page the customer returns to if they leave without paying.
Customercustomer_idtext
The customer paying, if they're already in Stripe.
Customer emailcustomer_emailtext
Fills in the customer's email on the page. Leave empty when you choose a customer.

Outputs

amount_totalnumber
What they'll pay, in cents.
currencytext
The currency, such as usd.
expires_atnumber
When the page stops working, as a Unix timestamp.
idtext
The checkout's id (cs_...).
modetext
payment or subscription.
payment_statustext
unpaid until they pay, then paid.
statustext
open until paid or expired, then complete or expired.
urltext
The checkout page's address, to send the customer.
Example output
{
  "amount_total": 2000,
  "currency": "usd",
  "expires_at": 1764720000,
  "id": "cs_test_123",
  "mode": "payment",
  "payment_status": "unpaid",
  "status": "open",
  "url": "https://checkout.stripe.com/c/pay/cs_test_123"
}

Create a coupon

Make a Stripe coupon for a percentage or an amount off, for one payment, some months or for good.

Inputs

Percent offpercent_offnumber
The percentage off, such as 15. Fill in this or Amount off.From 0.01 to 100.
Amount off in centsamount_offnumber
A fixed amount off in cents (500 is $5.00). Fill in this or Percent off.At least 1.
Currencycurrencytext
The currency of the amount off, such as usd. Needed with Amount off.
How longdurationtext
Once: one payment. For some months: each payment for the months you give. Forever: every payment.One of: once, repeating (For some months), forever. Default: once.
Monthsduration_in_monthsnumber
With For some months, how many months it lasts.At least 1.
Namenametext
A name customers see on receipts and invoices, such as Spring sale.
Most usesmax_redemptionsnumber
How many times it can be used in all. Leave empty for no limit.At least 1.

Outputs

The coupon.

amount_offnumber
The amount off in cents; blank for a percentage.
currencytext
The currency of the amount off.
durationtext
once, repeating (for some months) or forever.
duration_in_monthsnumber
How many months a repeating coupon lasts.
idtext
The coupon's id, used to apply it.
max_redemptionsnumber
How many times it can be used in all; blank for no limit.
nametext
The coupon's name, which customers see.
percent_offnumber
The percentage off; blank for an amount off.
times_redeemednumber
How many times it has been used.
validtrue/false
Whether it can still be used.
Example output
{
  "amount_off": null,
  "currency": null,
  "duration": "once",
  "duration_in_months": null,
  "id": "SPRING15",
  "max_redemptions": 100,
  "name": "Spring sale",
  "percent_off": 15,
  "times_redeemed": 0,
  "valid": true
}

Create a customer

Add a customer to Stripe with their email and, if you like, their name, phone number and a note.

Inputs

EmailemailtextRequired
The customer's email address.
Namenametext
The customer's full name or business name.
Notedescriptiontext
A note about the customer. Only your team sees it, in Stripe.
Phonephonetext
The customer's phone number.

Outputs

The new customer: their id, email, name and the rest of what Stripe keeps about them.

creatednumber
When the customer was added to Stripe, as a Unix timestamp.
delinquenttrue/false
True when their latest invoice is overdue or its payment failed.
descriptiontext
The note your team saved on the customer; blank when there is none.
emailtext
Their email address; blank when Stripe has none.
idtext
The customer's id in Stripe, which starts with cus_.
metadataobject
Your own key-value data saved on the customer.
nametext
Their full name or business name; blank when Stripe has none.
phonetext
Their phone number; blank when Stripe has none.
Example output
{
  "created": 1767225600,
  "delinquent": false,
  "description": "",
  "email": "customer@example.com",
  "id": "cus_123",
  "metadata": {},
  "name": "Example Customer",
  "phone": "+15550100"
}

Create a payment

Set up a card payment of any amount, optionally for a customer. No money moves until the payment is confirmed with Confirm a payment.

Inputs

Amount in centsamountnumberRequired
The amount in cents, not dollars: 5000 is $50.00. For a currency with no cents, such as yen, the whole amount.
CurrencycurrencytextRequired
The three-letter currency code, such as usd or eur.
Customercustomer_idtext
The customer paying, if you know them.
Descriptiondescriptiontext
A short note saying what the payment is for.

Outputs

The new payment: its id, amount in cents, currency and status.

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

Make a link to a Stripe checkout page where anyone can pay a price.

Inputs

Priceprice_idtextRequired
The price the link charges.
Quantityquantitynumber
How many the customer buys. Leave empty for one.

Outputs

The new payment link: its id and its url to share.

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

Create a price

Set what a product costs, once or on a repeating schedule such as monthly.

Inputs

Productproduct_idtextRequired
The product this price is for.
Amount in centsunit_amountnumberRequired
The price in cents, not dollars: 5000 is $50.00. For a currency with no cents, such as yen, the whole amount.
CurrencycurrencytextRequired
The three-letter currency code, such as usd or eur.
Billing intervalintervaltext
For a repeating price, how often the customer pays: day, week, month or year. Leave empty for a one-off price.
Number of intervalsinterval_countnumber
How many intervals between payments. For example, 3 with a monthly interval charges every 3 months.

Outputs

The new price: its id, amount in cents, currency and how often it repeats.

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

Create a product

Add something you sell. Give it a price with Create a price before you charge for it.

Inputs

NamenametextRequired
The product's name, as customers see it.
Descriptiondescriptiontext
What the product is, as customers see it.

Outputs

The new product: its id, name and other details.

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

Create a subscription

Sign a customer up to a recurring price. Without a free trial, Stripe bills them straight away: their saved card is charged, or an invoice is emailed, as you choose, and again every period.

Inputs

Customercustomer_idtextRequired
The customer to subscribe.
Priceprice_idtextRequired
The recurring price they pay, such as Pro plan, $20.00 / month.
Quantityquantitynumber
How many, such as seats. Leave empty for one.At least 1.
Free trial daystrial_period_daysnumber
Days free before the first bill. Leave empty for no trial.At least 1.
How they paycollection_methodtext
Charge their saved card: Stripe charges it each period. Email an invoice to pay: Stripe emails an invoice each period.One of: send_invoice (Email an invoice to pay), charge_automatically (Charge their saved card). Default: charge_automatically.
Days to paydays_until_duenumber
For emailed invoices, how many days the customer has to pay each one. Leave empty for 30.At least 1.

Outputs

The subscription.

cancel_atnumber
When it is set to end, as a Unix timestamp; blank if it isn't.
cancel_at_period_endtrue/false
True when it is set to end at the end of the period it has been paid for.
canceled_atnumber
When it was canceled, as a Unix timestamp; blank if it wasn't.
collection_methodtext
charge_automatically (their saved card) or send_invoice (an invoice each period).
customertext
The customer's id (cus_...).
idtext
The subscription's id (sub_...).
latest_invoicetext
The id of its most recent invoice.
start_datenumber
When it started, as a Unix timestamp.
statustext
active, trialing, past_due, unpaid, canceled, incomplete or paused.
trial_endnumber
When its free trial ends, as a Unix timestamp; blank without a trial.
Example output
{
  "cancel_at": null,
  "cancel_at_period_end": false,
  "canceled_at": null,
  "collection_method": "charge_automatically",
  "customer": "cus_123",
  "id": "sub_123",
  "latest_invoice": "in_123",
  "start_date": 1764633600,
  "status": "trialing",
  "trial_end": 1765238400
}

Create an invoice

Make a draft Stripe invoice for a customer with one line, such as a job or an order. A draft isn't sent or charged: send it with Send an invoice.

Inputs

Customercustomer_idtextRequired
The customer to bill.
Amount in centsamountnumberRequired
The amount in cents, not dollars: 12500 is $125.00. For a currency with no cents, such as yen, the whole amount.At least 1.
CurrencycurrencytextRequired
The three-letter currency code, such as usd or eur.
What it's fordescriptiontextRequired
The line on the invoice, such as Website design, November.
How they paycollection_methodtext
Email an invoice to pay: once sent, the customer gets it by email with a link to pay. Charge their saved card: Stripe charges the customer's saved card when it is finalized.One of: send_invoice (Email an invoice to pay), charge_automatically (Charge their saved card). Default: send_invoice.
Days to paydays_until_duenumber
For an emailed invoice, how many days the customer has to pay. Leave empty for 30.At least 1.
Memomemotext
A note shown on the invoice.

Outputs

The invoice.

amount_duenumber
What is due, in cents.
amount_paidnumber
What has been paid, in cents.
amount_remainingnumber
What is still to pay, in cents.
collection_methodtext
send_invoice (emailed to pay) or charge_automatically (their saved card is charged).
creatednumber
When it was made, as a Unix timestamp.
currencytext
The currency, such as usd.
customertext
The customer's id (cus_...).
customer_emailtext
The customer's email address.
customer_nametext
The customer's name.
descriptiontext
The memo on the invoice.
due_datenumber
When payment is due, as a Unix timestamp; blank until finalized.
hosted_invoice_urltext
The page where the customer views and pays the invoice, once finalized.
idtext
The invoice's id (in_...).
invoice_pdftext
A link to the invoice as a PDF, once finalized.
numbertext
The invoice number the customer sees; blank until it is finalized.
statustext
draft, open (sent, waiting to be paid), paid, void or uncollectible.
totalnumber
The invoice's total, in cents.
Example output
{
  "amount_due": 12500,
  "amount_paid": 0,
  "amount_remaining": 12500,
  "collection_method": "send_invoice",
  "created": 1764633600,
  "currency": "usd",
  "customer": "cus_123",
  "customer_email": "jane@example.com",
  "customer_name": "Jane Doe",
  "description": "Thanks for your business.",
  "due_date": 1767225600,
  "hosted_invoice_url": "",
  "id": "in_123",
  "invoice_pdf": "",
  "number": "",
  "status": "draft",
  "total": 12500
}

Delete a coupon

Delete a Stripe coupon so no one can use it from now on. Customers who already have its discount keep it.

Inputs

Coupon IDcoupon_idtextRequired
The coupon, by its id, as Create a coupon gives it.

Outputs

deletedtrue/false
True when the coupon was deleted.
idtext
The deleted coupon's id (its code).
objecttext
What was deleted: coupon.
Example output
{
  "deleted": true,
  "id": "SPRING15",
  "object": "coupon"
}

Delete a draft invoice

Delete a Stripe invoice that is still a draft. A finalized invoice can only be voided.

Inputs

Invoice IDinvoice_idtextRequired
The invoice, by its id (in_...), as Create an invoice or List invoices gives it.

Outputs

deletedtrue/false
True when the invoice was deleted.
idtext
The deleted invoice's id (in_...).
objecttext
What was deleted: invoice.
Example output
{
  "deleted": true,
  "id": "in_123",
  "object": "invoice"
}

Finalize an invoice

Turn a draft Stripe invoice into a final one, with a number and a link to pay, without emailing it. It can't be edited after. One set to charge the saved card is then charged by Stripe.

Inputs

Invoice IDinvoice_idtextRequired
The invoice, by its id (in_...), as Create an invoice or List invoices gives it.

Outputs

The invoice.

amount_duenumber
What is due, in cents.
amount_paidnumber
What has been paid, in cents.
amount_remainingnumber
What is still to pay, in cents.
collection_methodtext
send_invoice (emailed to pay) or charge_automatically (their saved card is charged).
creatednumber
When it was made, as a Unix timestamp.
currencytext
The currency, such as usd.
customertext
The customer's id (cus_...).
customer_emailtext
The customer's email address.
customer_nametext
The customer's name.
descriptiontext
The memo on the invoice.
due_datenumber
When payment is due, as a Unix timestamp; blank until finalized.
hosted_invoice_urltext
The page where the customer views and pays the invoice, once finalized.
idtext
The invoice's id (in_...).
invoice_pdftext
A link to the invoice as a PDF, once finalized.
numbertext
The invoice number the customer sees; blank until it is finalized.
statustext
draft, open (sent, waiting to be paid), paid, void or uncollectible.
totalnumber
The invoice's total, in cents.
Example output
{
  "amount_due": 12500,
  "amount_paid": 0,
  "amount_remaining": 12500,
  "collection_method": "send_invoice",
  "created": 1764633600,
  "currency": "usd",
  "customer": "cus_123",
  "customer_email": "jane@example.com",
  "customer_name": "Jane Doe",
  "description": "Thanks for your business.",
  "due_date": 1767225600,
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_123",
  "id": "in_123",
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_123/test_123/pdf",
  "number": "A1B2C3-0001",
  "status": "open",
  "total": 12500
}

Get a customer

Get a customer's details, such as their name and email. The step fails when no customer is given, as for a guest checkout, so use it only for payments that have a customer.

Inputs

Customercustomer_idtextRequired
The customer to get.

Outputs

The customer: their id, email, name, phone number and note, whether a payment of theirs is overdue, and whether they have a payment method on file.

creatednumber
When the customer was added to Stripe, as a Unix timestamp.
delinquenttrue/false
True when their latest invoice is overdue or its payment failed.
descriptiontext
The note your team saved on the customer; blank when there is none.
emailtext
Their email address; blank when Stripe has none.
has_payment_methodtrue/false
Beta. True when the customer has a default card or other payment method on file for Stripe to charge; false when they haven't added one.
idtext
The customer's id in Stripe, which starts with cus_.
metadataobject
Your own key-value data saved on the customer.
nametext
Their full name or business name; blank when Stripe has none.
phonetext
Their phone number; blank when Stripe has none.
Example output
{
  "created": 1767225600,
  "delinquent": false,
  "description": "",
  "email": "customer@example.com",
  "has_payment_method": true,
  "id": "cus_123",
  "metadata": {},
  "name": "Example Customer",
  "phone": "+15550100"
}

Get a payment

Get one payment's amount, status and who paid, such as to check it went through before you ship an order.

Inputs

Paymentpayment_intent_idtextRequired
The payment to get.

Outputs

amountnumber
The amount in cents, not dollars: 5000 is $50.00.
amount_receivednumber
How much has been collected so far, in cents.
creatednumber
When it was made, as a Unix timestamp.
currencytext
The three-letter currency code, such as usd.
customerobject
Who paid: their id, name and email. Empty for a guest checkout; use receipt_email then.
descriptiontext
The note saved on the payment, if any.
idtext
The payment's id (pi_...).
latest_chargetext
The id of the charge that took the money (ch_...).
metadataobject
Your own key-value data saved on the payment.
receipt_emailtext
The email the receipt goes to, if any.
statustext
Where it stands: succeeded once the money is in, processing, requires_payment_method after a failed card, or canceled.
Example output
{
  "amount": 5000,
  "amount_received": 5000,
  "created": 1767225600,
  "currency": "usd",
  "customer": {
    "email": "customer@example.com",
    "id": "cus_123",
    "name": "Example Customer"
  },
  "description": "Order 1042",
  "id": "pi_123",
  "latest_charge": "ch_123",
  "metadata": {},
  "receipt_email": "customer@example.com",
  "status": "succeeded"
}

Get a subscription

Get one Stripe subscription: its status, trial and whether it is set to end.

Inputs

Subscription IDsubscription_idtextRequired
The subscription, by its id (sub_...), as Create a subscription, List subscriptions or a subscription trigger gives it.

Outputs

The subscription.

cancel_atnumber
When it is set to end, as a Unix timestamp; blank if it isn't.
cancel_at_period_endtrue/false
True when it is set to end at the end of the period it has been paid for.
canceled_atnumber
When it was canceled, as a Unix timestamp; blank if it wasn't.
collection_methodtext
charge_automatically (their saved card) or send_invoice (an invoice each period).
customertext
The customer's id (cus_...).
idtext
The subscription's id (sub_...).
latest_invoicetext
The id of its most recent invoice.
start_datenumber
When it started, as a Unix timestamp.
statustext
active, trialing, past_due, unpaid, canceled, incomplete or paused.
trial_endnumber
When its free trial ends, as a Unix timestamp; blank without a trial.
Example output
{
  "cancel_at": null,
  "cancel_at_period_end": false,
  "canceled_at": null,
  "collection_method": "charge_automatically",
  "customer": "cus_123",
  "id": "sub_123",
  "latest_invoice": "in_123",
  "start_date": 1764633600,
  "status": "trialing",
  "trial_end": 1765238400
}

Get an invoice

Get one Stripe invoice: its status, total, what is still owed and the link to pay it.

Inputs

Invoice IDinvoice_idtextRequired
The invoice, by its id (in_...), as Create an invoice or List invoices gives it.

Outputs

The invoice.

amount_duenumber
What is due, in cents.
amount_paidnumber
What has been paid, in cents.
amount_remainingnumber
What is still to pay, in cents.
collection_methodtext
send_invoice (emailed to pay) or charge_automatically (their saved card is charged).
creatednumber
When it was made, as a Unix timestamp.
currencytext
The currency, such as usd.
customertext
The customer's id (cus_...).
customer_emailtext
The customer's email address.
customer_nametext
The customer's name.
descriptiontext
The memo on the invoice.
due_datenumber
When payment is due, as a Unix timestamp; blank until finalized.
hosted_invoice_urltext
The page where the customer views and pays the invoice, once finalized.
idtext
The invoice's id (in_...).
invoice_pdftext
A link to the invoice as a PDF, once finalized.
numbertext
The invoice number the customer sees; blank until it is finalized.
statustext
draft, open (sent, waiting to be paid), paid, void or uncollectible.
totalnumber
The invoice's total, in cents.
Example output
{
  "amount_due": 12500,
  "amount_paid": 0,
  "amount_remaining": 12500,
  "collection_method": "send_invoice",
  "created": 1764633600,
  "currency": "usd",
  "customer": "cus_123",
  "customer_email": "jane@example.com",
  "customer_name": "Jane Doe",
  "description": "Thanks for your business.",
  "due_date": 1767225600,
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_123",
  "id": "in_123",
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_123/test_123/pdf",
  "number": "A1B2C3-0001",
  "status": "open",
  "total": 12500
}

List customers

List your newest customers, most recent first, or find the customers with an email address. To count the customers added in a week or a month, use List new customers.

Inputs

How manylimitnumber
How many customers to list, at most 100.Default: 10.
Emailemailtext
Beta. Only customers with exactly this email address, to find a customer before you update or charge them. Stripe matches capital letters too, so Ana@example.com doesn't find ana@example.com. Leave empty to list every customer.

Outputs

The customers, newest first; an empty list when there are none.

Example output
[
  {
    "created": 1767225600,
    "delinquent": false,
    "description": "",
    "email": "customer@example.com",
    "id": "cus_123",
    "metadata": {},
    "name": "Example Customer",
    "phone": "+15550100"
  },
  {
    "created": 1767225600,
    "delinquent": false,
    "description": "",
    "email": "other@example.com",
    "id": "cus_124",
    "metadata": {},
    "name": "Other Customer",
    "phone": "+15550100"
  }
]

List failed subscription payments

List the subscription invoices Stripe tried to collect in a period and could not, each with the customer, what they owe and why the card was declined, plus how many there are and the total owed. Use it for a weekly list of payments to chase.

Inputs

Calendar monthcalendar_monthtext
Only invoices from the whole of last month or this month so far, for a monthly report that runs on the 1st. The month's name comes back as period (October 2026). Replaces the other dates when chosen.One of: last (Last month), this (This month so far).
In the last dayscreated_in_last_daysnumber
Only invoices from the last this many whole days up to now: 7 for a weekly report, with no dates to work out in an earlier step. On or after wins when given.At least 1.
On or aftercreated_afterdate and time
The start of the period. Needed unless you choose a calendar month or In the last days.
Beforecreated_beforedate and time
The end of the period. Leave empty to run the period up to now.

Outputs

countnumber
How many failed payments.
currencytext
The currency the total is in (the first invoice's).
paymentslist
Each failed payment, with its invoice id and number, customer name and email, amount_owed in dollars and amount_owed_display ($49.00), reason (why the card was declined), attempts and a link the customer can open to pay.
periodtext
The calendar month reported when Calendar month is chosen; blank otherwise.
total_owednumber
Everything owed across them, in dollars.
total_owed_displaytext
The total owed as a person writes it, such as $147.00. Use it in a message.
Example output
{
  "count": 1,
  "currency": "usd",
  "payments": [
    {
      "amount_owed": 49.0,
      "amount_owed_display": "$49.00",
      "attempts": 2,
      "currency": "usd",
      "customer_email": "customer@example.com",
      "customer_name": "Example Customer",
      "invoice_id": "in_123",
      "invoice_url": "https://invoice.stripe.com/i/acct_1/test_1",
      "number": "A1B2-0001",
      "reason": "Your card was declined."
    }
  ],
  "period": "",
  "total_owed": 49.0,
  "total_owed_display": "$49.00"
}

List invoices

List the invoices created in a period, with each invoice's number, customer, amount due and paid in dollars (or your currency), status and due date. Use it for a daily or weekly invoice summary or to chase unpaid invoices.

Inputs

Created on or aftercreated_afterdate and timeRequired
The start of the period.
Created beforecreated_beforedate and time
The end of the period. Leave empty to run the period up to now.
Invoice statusstatustext
Only invoices in this state.One of: all (Any status), draft, open (Sent, waiting to be paid), paid, uncollectible (Written off), void (Voided). Default: all.

Outputs

countnumber
How many invoices.
invoiceslist
Each invoice, with its id, number, status, amount due and amount paid in dollars (or your currency), currency, customer name and email, the day it was created and when it is due (YYYY-MM-DD), and a link the customer can open.
Example output
{
  "count": 1,
  "invoices": [
    {
      "amount_due": 120.0,
      "amount_paid": 0.0,
      "created": "2026-11-04",
      "currency": "usd",
      "customer_email": "customer@example.com",
      "customer_name": "Example Customer",
      "due_date": "2026-11-18",
      "hosted_invoice_url": "https://invoice.stripe.com/i/example",
      "invoice_id": "in_123",
      "number": "INV-0001",
      "status": "open"
    }
  ]
}

List new customers

Beta. List the customers added to Stripe in a period, newest first, with how many there were. Use it for a weekly or monthly report of new customers: count is the whole period's, with nothing to filter or count in a later step.

Inputs

Calendar monthcalendar_monthtext
Only customers added from the whole of last month or this month so far, for a monthly report that runs on the 1st. The month's name comes back as period (October 2026). Replaces the other dates when chosen.One of: last (Last month), this (This month so far).
In the last dayscreated_in_last_daysnumber
Only customers added from the last this many whole days up to now: 7 for a weekly report, with no dates to work out in an earlier step. On or after wins when given.At least 1.
On or aftercreated_afterdate and time
The start of the period. Needed unless you choose a calendar month or In the last days.
Beforecreated_beforedate and time
The end of the period. Leave empty to run the period up to now.

Outputs

countnumber
How many customers were added in the period.
customerslist
The customers added in the period, newest first.
periodtext
The calendar month reported, such as October 2026, when Calendar month is chosen; blank otherwise.
Example output
{
  "count": 1,
  "customers": [
    {
      "created": 1767225600,
      "delinquent": false,
      "description": "",
      "email": "customer@example.com",
      "id": "cus_123",
      "metadata": {},
      "name": "Example Customer",
      "phone": "+15550100"
    }
  ],
  "period": ""
}

List payments

List the payments made in a period, with how many there were, the total in dollars (or your currency) and who paid the most. Use it for a weekly or monthly sales summary.

Inputs

Paid on or aftercreated_afterdate and time
The start of the period. Required unless you use Paid in the last days.
Paid in the last dayscreated_in_last_daysnumber
Beta. Only payments from the last this many whole days up to now: 7 on a Friday at 4pm is the week since last Friday at 4pm, so two weekly reports never count a payment twice. Use it for a daily, weekly or monthly summary instead of working out the dates in earlier steps. Paid on or after wins when given.At least 1.
Calendar monthcalendar_monthtext
Beta. Only payments from the whole of last month or this month so far, for a monthly report that runs on the 1st: no dates to work out in earlier steps, and the month's name comes back as period (October 2026). Replaces the dates above when chosen.One of: last (Last month), this (This month so far).
Paid beforecreated_beforedate and time
The end of the period. Leave empty to run the period up to now.
Payment statusstatustext
Only payments in this state. Succeeded payments are the ones that brought in money. Beta: Failed gives every payment whose card was declined and that was never paid, one-off or subscription, each with failure_reason.One of: succeeded, processing, requires_payment_method (Waiting for a card), requires_confirmation (Waiting to be confirmed), requires_action (Waiting for the customer), requires_capture (Waiting to be captured), canceled, failed (Failed (card declined, not paid)). Default: succeeded.

Outputs

averagenumber
The average payment (the average order size), in dollars; 0 when there are none.
average_displaytext
The average payment as a person writes it, such as $42.50. Use it in a message.
countnumber
How many payments.
currencytext
The currency the total is in (the first payment's).
paymentslist
Each payment, with its id, status, amount in cents (5000 is $50.00), amount_display (Beta, $50.00, ready to show), currency, when it was made, who paid (name and email), its description and failure_reason (Beta: why the card was declined, blank for a payment that went through).
periodtext
The calendar month reported, such as October 2026, when Calendar month is chosen; blank otherwise.
top_customertext
Who paid the most in the period, by name or email.
top_customer_totalnumber
What the top customer paid, in dollars.
top_customer_total_displaytext
What the top customer paid as a person writes it, such as $1,234.50. Use it in a message.
totalnumber
Revenue in the currency's usual units, such as dollars.
total_displaytext
The total as a person writes it, such as $1,234.50. Use it in a message.
Example output
{
  "average": 50.0,
  "average_display": "$50.00",
  "count": 1,
  "currency": "usd",
  "payments": [
    {
      "amount": 5000,
      "amount_display": "$50.00",
      "created": 1767225600,
      "created_display": "Jan 1, 2026",
      "currency": "usd",
      "customer_email": "customer@example.com",
      "customer_name": "Example Customer",
      "description": "",
      "failure_reason": "",
      "payment_intent_id": "pi_123",
      "status": "succeeded"
    }
  ],
  "period": "October 2026",
  "top_customer": "Example Customer",
  "top_customer_total": 50.0,
  "top_customer_total_display": "$50.00",
  "total": 50.0,
  "total_display": "$50.00"
}

List payouts

List the money Stripe sent to your bank in a period, with the day each payout reaches the bank, its amount in dollars (or your currency) and the period's total, to check against your bank statement or add to a finance sheet.

Inputs

Calendar monthcalendar_monthtext
Only payouts reaching the bank in the whole of last month or this month so far, for a monthly report that runs on the 1st. The month's name comes back as period (October 2026). Replaces the dates when chosen.One of: last (Last month), this (This month so far).
Arrives on or afterarrived_afterdate and time
The start of the period, by the day money reaches the bank. Needed unless you choose a calendar month.
Arrives beforearrived_beforedate and time
The end of the period: payouts arriving on this day are left out, so a run on the 1st that passes today covers last month exactly. Leave empty to include every payout from the start on.
Only payouts that reached the bankonly_paidtrue/false
Yes leaves out payouts still on their way, failed or canceled, so the list and total are only money that arrived.Default: false.

Outputs

countnumber
How many payouts.
currencytext
The currency the total is in (the first payout's).
payoutslist
Each payout, oldest last as Stripe lists them.
periodtext
The calendar month reported, such as October 2026, when Calendar month is chosen; blank otherwise.
totalnumber
Total paid out in the currency's usual units, such as dollars.
total_displaytext
The total as a person writes it, such as $1,250.00. Use it in a message.
Example output
{
  "count": 1,
  "currency": "usd",
  "payouts": [
    {
      "amount": 1250.0,
      "amount_display": "$1,250.00",
      "arrival_date": "2026-10-14",
      "arrival_date_display": "Oct 14, 2026",
      "currency": "usd",
      "description": "STRIPE PAYOUT",
      "payout_id": "po_123",
      "status": "paid"
    }
  ],
  "period": "October 2026",
  "total": 1250.0,
  "total_display": "$1,250.00"
}

List refunds

List the refunds made in a period, with how many there were, the total refunded in dollars (or your currency), and each refund's customer and reason. Use it for a monthly revenue report that shows what was given back.

Inputs

Calendar monthcalendar_monthtext
Only refunds from the whole of last month or this month so far, for a monthly report that runs on the 1st. The month's name comes back as period (October 2026). Replaces the other dates when chosen.One of: last (Last month), this (This month so far).
In the last dayscreated_in_last_daysnumber
Only refunds from the last this many whole days up to now: 7 for a weekly report, with no dates to work out in an earlier step. On or after wins when given.At least 1.
On or aftercreated_afterdate and time
The start of the period. Needed unless you choose a calendar month or In the last days.
Beforecreated_beforedate and time
The end of the period. Leave empty to run the period up to now.

Outputs

countnumber
How many refunds.
currencytext
The currency the total is in (the first refund's).
periodtext
The calendar month reported, such as October 2026, when Calendar month is chosen; blank otherwise.
refundslist
Each refund, with its id, amount in cents (amount_display ready to show), currency, reason, when it was made and who it went to (name and email).
totalnumber
Total refunded in the currency's usual units, such as dollars.
total_displaytext
The total as a person writes it, such as $120.00. Use it in a message.
Example output
{
  "count": 1,
  "currency": "usd",
  "period": "October 2026",
  "refunds": [
    {
      "amount": 2500,
      "amount_display": "$25.00",
      "created": 1767225600,
      "created_display": "Jan 1, 2026",
      "currency": "usd",
      "customer_email": "customer@example.com",
      "customer_name": "Example Customer",
      "reason": "requested_by_customer",
      "refund_id": "re_123"
    }
  ],
  "total": 25.0,
  "total_display": "$25.00"
}

List subscriptions

List Stripe subscriptions, newest first, optionally only one customer's, one price's or those in one state. Without a state, canceled ones are left out.

Inputs

Customercustomer_idtext
Only this customer's subscriptions.
Priceprice_idtext
Only subscriptions to this price.
Statusstatustext
Only subscriptions in this state.One of: all (Any, canceled included), active, trialing (On a free trial), past_due (Payment overdue), unpaid, canceled, incomplete (First payment not made), paused.
How manylimitnumber
The most to list, up to 100. Leave empty for 25.From 1 to 100.

Outputs

countnumber
How many were listed.
has_moretrue/false
True when there are more than were listed.
subscriptionslist
The subscriptions, newest first.
Example output
{
  "count": 1,
  "has_more": false,
  "subscriptions": [
    {
      "cancel_at": null,
      "cancel_at_period_end": false,
      "canceled_at": null,
      "collection_method": "charge_automatically",
      "customer": "cus_123",
      "id": "sub_123",
      "latest_invoice": "in_123",
      "start_date": 1764633600,
      "status": "trialing",
      "trial_end": 1765238400
    }
  ]
}

Look up a customer's billing

Beta. Find a customer by their email and get, in one step, the plan they are on and whether their last payment went through, with a summary ready to paste into a ticket note or a message. Use it to answer a billing question. Nobody with that email is an answer too (found is false), not a failure. monthly_amount is what they pay per month as a number, to compare with an amount such as 1000.

Inputs

Emailemailtext
The customer's email address, such as the address a support ticket came from. An address that finds nobody as typed is tried again in lower case. Needed unless you choose a customer.
Customercustomer_idtext
The customer to look up, instead of an email: one picked from the list, or a Stripe customer id from an earlier step, which starts with cus_. Used rather than the email when both are given.

Outputs

customer_idtext
The customer's id in Stripe, which starts with cus_.
customer_urltext
A link that opens the customer in the Stripe dashboard.
customers_foundnumber
How many Stripe customers have this email. When more than one, this step reports the one with a current plan, or else the newest.
emailtext
The customer's email address as Stripe has it.
foundtrue/false
True when Stripe has a customer with this email (or id). When false, summary says nobody was found, the two statuses are none and the rest is blank.
has_active_subscriptiontrue/false
True when their subscription is active or on a free trial.
last_payment_amountnumber
Beta. The amount of that payment as a plain number in the currency's main unit, such as 49.0 for $49.00, to compare with a number; 0 when there is none.
last_payment_amount_displaytext
The amount of that payment as a person writes it, such as $49.00; blank when there is none.
last_payment_datetext
The day that payment was started, as a date other steps can read, such as 2026-11-03 (UTC); blank when there is none.
last_payment_date_displaytext
The same day as a person writes it, such as Nov 3, 2026.
last_payment_failedtrue/false
True when their most recent payment failed. Use it in a condition, such as to raise a ticket's priority.
last_payment_failure_reasontext
Why the payment failed, in Stripe's words, such as Your card was declined; blank unless it failed.
last_payment_statustext
How their most recent payment went, one of: paid, failed (the card or bank refused it), pending (still going through, or waiting for the customer to confirm with their bank) or none (they have never been charged). It covers subscription renewals and one-off payments; a payment that was started and never tried doesn't count.
monthly_amountnumber
Beta. What the customer pays per month, as a plain number in the currency's main unit, such as 1200.0 for $1,200.00: their active subscriptions added up, quantities included, with a yearly price divided by 12 and a weekly one multiplied by 52 and divided by 12. Before discounts and tax. 0 when they have no active subscription. Compare it with a number, such as monthly_amount greater than 1000, to pick out customers who pay more than $1,000 a month.
monthly_amount_displaytext
Beta. The same monthly amount as a person writes it, such as $1,200.00, for a message; blank when they have no active subscription.
nametext
The customer's name; blank when Stripe has none.
plan_nametext
The plan they are on now: the name of the product they subscribe to, such as Pro. Several are separated by commas. Blank when they have no current subscription.
subscription_statustext
Where their subscription stands, one of: active, trialing (on a free trial), past_due (a renewal payment failed and Stripe is still trying), unpaid, paused, incomplete (the first payment hasn't gone through), canceled (they had one and it ended) or none (they never had one).
summarytext
The plan and the last payment in one short paragraph, ready to paste into a note or message: 'Plan: Pro (active). Last payment: $49.00 on Nov 3, 2026, paid.' When nobody is found: 'No Stripe customer with this email.'
Example output
{
  "customer_id": "cus_123",
  "customer_url": "https://dashboard.stripe.com/customers/cus_123",
  "customers_found": 1,
  "email": "customer@example.com",
  "found": true,
  "has_active_subscription": true,
  "last_payment_amount": 49.0,
  "last_payment_amount_display": "$49.00",
  "last_payment_date": "2026-11-03",
  "last_payment_date_display": "Nov 3, 2026",
  "last_payment_failed": false,
  "last_payment_failure_reason": "",
  "last_payment_status": "paid",
  "monthly_amount": 49.0,
  "monthly_amount_display": "$49.00",
  "name": "Example Customer",
  "plan_name": "Pro",
  "subscription_status": "active",
  "summary": "Plan: Pro (active). Last payment: $49.00 on Nov 3, 2026, paid."
}

Refund a payment

Give back all or part of a payment.

Inputs

Paymentpayment_intent_idtextRequired
The payment to refund.
Amount in centsamountnumber
How much to give back, in cents, not dollars: 200 is $2.00. Leave empty to refund the whole payment.
Amount in dollarsamount_in_dollarstext
Beta. How much to give back, written as a person would (25.10, or $1,200.50 from a sheet's cell). It is turned into cents and rounded for you, so no step is needed to multiply by 100 first. If both are given, this one is used; leave both empty to refund the whole payment.

Outputs

The refund: its id, amount in cents and status.

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

Send an invoice

Email a Stripe invoice to the customer with a link to pay it. A draft is finalized first. Only for invoices set to be emailed; in test mode Stripe sends no email.

Inputs

Invoice IDinvoice_idtextRequired
The invoice, by its id (in_...), as Create an invoice or List invoices gives it.

Outputs

The invoice.

amount_duenumber
What is due, in cents.
amount_paidnumber
What has been paid, in cents.
amount_remainingnumber
What is still to pay, in cents.
collection_methodtext
send_invoice (emailed to pay) or charge_automatically (their saved card is charged).
creatednumber
When it was made, as a Unix timestamp.
currencytext
The currency, such as usd.
customertext
The customer's id (cus_...).
customer_emailtext
The customer's email address.
customer_nametext
The customer's name.
descriptiontext
The memo on the invoice.
due_datenumber
When payment is due, as a Unix timestamp; blank until finalized.
hosted_invoice_urltext
The page where the customer views and pays the invoice, once finalized.
idtext
The invoice's id (in_...).
invoice_pdftext
A link to the invoice as a PDF, once finalized.
numbertext
The invoice number the customer sees; blank until it is finalized.
statustext
draft, open (sent, waiting to be paid), paid, void or uncollectible.
totalnumber
The invoice's total, in cents.
Example output
{
  "amount_due": 12500,
  "amount_paid": 0,
  "amount_remaining": 12500,
  "collection_method": "send_invoice",
  "created": 1764633600,
  "currency": "usd",
  "customer": "cus_123",
  "customer_email": "jane@example.com",
  "customer_name": "Jane Doe",
  "description": "Thanks for your business.",
  "due_date": 1767225600,
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_123",
  "id": "in_123",
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_123/test_123/pdf",
  "number": "A1B2C3-0001",
  "status": "open",
  "total": 12500
}

Stop a payment link taking payments, such as when an offer ends or a product sells out. Anyone who opens it is told it's no longer active. You can turn it back on in Stripe.

Inputs

Payment linkpayment_link_idtextRequired
The payment link to turn off.

Outputs

activetrue/false
Whether the link takes payments: false once turned off.
idtext
The payment link's id (plink_...).
urltext
The link's address, which now says it's no longer active.
Example output
{
  "active": false,
  "id": "plink_123",
  "url": "https://buy.stripe.com/test_123"
}

Update a customer

Change a customer's email, name, phone number or note. Only the fields you fill in change.

Inputs

Customercustomer_idtextRequired
The customer to change.
Emailemailtext
A new email address.
Namenametext
A new full name or business name.
Notedescriptiontext
A new note about the customer, replacing the old one. Only your team sees it, in Stripe.
Phonephonetext
A new phone number.

Outputs

The customer as it now stands: their id, email, name and the rest of what Stripe keeps about them.

creatednumber
When the customer was added to Stripe, as a Unix timestamp.
delinquenttrue/false
True when their latest invoice is overdue or its payment failed.
descriptiontext
The note your team saved on the customer; blank when there is none.
emailtext
Their email address; blank when Stripe has none.
idtext
The customer's id in Stripe, which starts with cus_.
metadataobject
Your own key-value data saved on the customer.
nametext
Their full name or business name; blank when Stripe has none.
phonetext
Their phone number; blank when Stripe has none.
Example output
{
  "created": 1767225600,
  "delinquent": false,
  "description": "",
  "email": "customer@example.com",
  "id": "cus_123",
  "metadata": {},
  "name": "Example Customer",
  "phone": "+15550100"
}

Void an invoice

Cancel a finalized Stripe invoice that hasn't been paid, so it can no longer be paid. Stripe keeps it, marked void. A draft is deleted instead.

Inputs

Invoice IDinvoice_idtextRequired
The invoice, by its id (in_...), as Create an invoice or List invoices gives it.

Outputs

The invoice.

amount_duenumber
What is due, in cents.
amount_paidnumber
What has been paid, in cents.
amount_remainingnumber
What is still to pay, in cents.
collection_methodtext
send_invoice (emailed to pay) or charge_automatically (their saved card is charged).
creatednumber
When it was made, as a Unix timestamp.
currencytext
The currency, such as usd.
customertext
The customer's id (cus_...).
customer_emailtext
The customer's email address.
customer_nametext
The customer's name.
descriptiontext
The memo on the invoice.
due_datenumber
When payment is due, as a Unix timestamp; blank until finalized.
hosted_invoice_urltext
The page where the customer views and pays the invoice, once finalized.
idtext
The invoice's id (in_...).
invoice_pdftext
A link to the invoice as a PDF, once finalized.
numbertext
The invoice number the customer sees; blank until it is finalized.
statustext
draft, open (sent, waiting to be paid), paid, void or uncollectible.
totalnumber
The invoice's total, in cents.
Example output
{
  "amount_due": 12500,
  "amount_paid": 0,
  "amount_remaining": 12500,
  "collection_method": "send_invoice",
  "created": 1764633600,
  "currency": "usd",
  "customer": "cus_123",
  "customer_email": "jane@example.com",
  "customer_name": "Jane Doe",
  "description": "Thanks for your business.",
  "due_date": 1767225600,
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_123/test_123",
  "id": "in_123",
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_123/test_123/pdf",
  "number": "A1B2C3-0001",
  "status": "void",
  "total": 12500
}

On this page