Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Actions reference ​

All Actions ​

This integration provides actions for managing Stripe resources from your WeWeb backend.

ActionDescription
List ProductsList products
Retrieve ProductRetrieve a product by ID
Create ProductCreate a product
Update ProductUpdate a product
Delete ProductDelete a product
List PricesList prices
Retrieve PriceRetrieve a price by ID
Create PriceCreate a price
Update PriceUpdate a price
Deactivate PriceDeactivate a price
List CustomersList customers
Retrieve CustomerRetrieve a customer by ID
Create CustomerCreate a customer
Update CustomerUpdate a customer
Delete CustomerDelete a customer
List InvoicesList invoices
Retrieve InvoiceRetrieve an invoice by ID
Create InvoiceCreate an invoice
Update InvoiceUpdate an invoice
Delete InvoiceDelete a draft invoice
List SubscriptionsList subscriptions
Retrieve SubscriptionRetrieve a subscription by ID
Create SubscriptionCreate a subscription
Update SubscriptionUpdate a subscription
Cancel SubscriptionCancel a subscription
List Payment IntentsList payment intents
Retrieve Payment IntentRetrieve a payment intent by ID
Create Payment IntentCreate a payment intent
Update Payment IntentUpdate a payment intent
Cancel Payment IntentCancel a payment intent
Refund PaymentRefund a charge or payment intent
Create Checkout SessionCreate a Stripe Checkout session (hosted payment page)
Update Checkout SessionUpdate a checkout session
Retrieve Checkout SessionRetrieve a checkout session by ID
List Checkout SessionsList checkout sessions
List Checkout Session Line ItemsList line items for a checkout session
Expire Checkout SessionExpire a checkout session
Create Invoice ItemAdd a line item to a customer (or to a draft invoice)

Action details ​

List Products ​

List products from your Stripe account.

Inputs

Display KeyExample InputDescriptionRestrictions
Active
Optional
trueFilter by active statustrue, false, or empty for all
Limit
Optional
10Number of results to return1–100
Starting After
Optional
"prod_123"Pagination cursor (start after this ID)Use an ID from the previous result
Ending Before
Optional
"prod_456"Pagination cursor (end before this ID)Use an ID from the previous result

Example output

json
{ "object": "list", "data": [{ "id": "prod_123", "object": "product" }], "has_more": false }

Documentation of API endpoint that powers action: Stripe API – List products (GET /v1/products)

Retrieve Product ​

Retrieve a product by its ID.

Inputs

Display KeyExample InputDescriptionRestrictions
Product ID"prod_123"Product ID to retrieveRequired

Example output

json
{ "id": "prod_123", "object": "product", "name": "Premium Plan" }

Documentation of API endpoint that powers action: Stripe API – Retrieve a product (GET /v1/products/{id})

Create Product ​

Create a product.

Inputs

Display KeyExample InputDescriptionRestrictions
Name"Premium Plan"Product nameRequired
Active
Optional
trueWhether the product is activetrue or false
Description
Optional
"Premium subscription plan"Product description—
Images
Optional
["https://example.com/img.jpg"]Image URLsMax 8 URLs
URL
Optional
"https://example.com/product"Product URL—
Metadata
Optional
{"internal_id":"123"}Extra values you want to storeObject

Example output

json
{ "id": "prod_123", "object": "product", "name": "Premium Plan" }

Documentation of API endpoint that powers action: Stripe API – Create a product (POST /v1/products)

Update Product ​

Update a product.

Inputs

Display KeyExample InputDescriptionRestrictions
Product ID"prod_123"Product ID to updateRequired
Name
Optional
"Premium Plan Updated"Product name—
Active
Optional
falseWhether the product is activetrue or false
Description
Optional
"Updated description"Product description—
Images
Optional
["https://example.com/new.jpg"]Image URLsMax 8 URLs
URL
Optional
"https://example.com/new-product"Product URL—
Default Price
Optional
"price_123"Default price ID—
Metadata
Optional
{"internal_id":"456"}Extra values you want to storeObject

Example output

json
{ "id": "prod_123", "object": "product", "name": "Premium Plan Updated" }

Documentation of API endpoint that powers action: Stripe API – Update a product (POST /v1/products/{id})

Delete Product ​

Delete a product.

Inputs

Display KeyExample InputDescriptionRestrictions
Product ID"prod_123"Product ID to deleteRequired

Example output

json
{ "id": "prod_123", "object": "product", "deleted": true }

Documentation of API endpoint that powers action: Stripe API – Delete a product (DELETE /v1/products/{id})

List Prices ​

List prices from your Stripe account.

Inputs

Display KeyExample InputDescriptionRestrictions
Product
Optional
"prod_123"Filter by product ID—
Active
Optional
trueFilter by active statustrue, false, or empty for all
Currency
Optional
"usd"Filter by currencyISO code
Limit
Optional
10Number of results to return1–100
Starting After
Optional
"price_123"Pagination cursor—
Ending Before
Optional
"price_456"Pagination cursor—

Example output

json
{ "object": "list", "data": [{ "id": "price_123", "object": "price" }], "has_more": false }

Documentation of API endpoint that powers action: Stripe API – List prices (GET /v1/prices)

Retrieve Price ​

Retrieve a price by its ID.

Inputs

Display KeyExample InputDescriptionRestrictions
Price ID"price_123"Price ID to retrieveRequired

Example output

json
{ "id": "price_123", "object": "price", "currency": "usd" }

Documentation of API endpoint that powers action: Stripe API – Retrieve a price (GET /v1/prices/{id})

Create Price ​

Create a price.

Inputs

Display KeyExample InputDescriptionRestrictions
Currency"usd"CurrencyRequired
Product"prod_123"Product IDRequired if Product Data is empty
Unit Amount
Optional
1000Price in cents—
Recurring
Optional
{"interval":"month"}Recurring billing settingsObject
Nickname
Optional
"Monthly Premium"Short label—
Metadata
Optional
{"internal_id":"123"}Extra values you want to storeObject
Product Data
Optional
{"name":"New Product"}Create a product inlineRequired if Product is empty

Example output

json
{ "id": "price_123", "object": "price", "currency": "usd" }

Documentation of API endpoint that powers action: Stripe API – Create a price (POST /v1/prices)

Update Price ​

Update a price.

Inputs

Display KeyExample InputDescriptionRestrictions
Price ID"price_123"Price ID to updateRequired
Active
Optional
falseWhether the price is activetrue or false
Nickname
Optional
"Updated Monthly"Short label—
Lookup Key
Optional
"premium_monthly_v2"Lookup key—
Tax Behavior
Optional
"inclusive"Tax behaviorexclusive, inclusive, unspecified
Metadata
Optional
{"internal_id":"456"}Extra values you want to storeObject

Example output

json
{ "id": "price_123", "object": "price", "active": false }

Documentation of API endpoint that powers action: Stripe API – Update a price (POST /v1/prices/{id})

Deactivate Price ​

Deactivate a price by setting Active to false.

Inputs

Display KeyExample InputDescriptionRestrictions
Price ID"price_123"Price ID to deactivateRequired

Example output

json
{ "id": "price_123", "object": "price", "active": false }

Documentation of API endpoint that powers action: Stripe API – Update a price (POST /v1/prices/{id})

List Customers ​

List customers.

Inputs

Display KeyExample InputDescriptionRestrictions
Email
Optional
"customer@example.com"Filter by email—
Limit
Optional
10Number of results to return1–100
Starting After
Optional
"cus_123"Pagination cursor—
Ending Before
Optional
"cus_456"Pagination cursor—

Example output

json
{ "object": "list", "data": [{ "id": "cus_123", "object": "customer" }], "has_more": false }

Documentation of API endpoint that powers action: Stripe API – List customers (GET /v1/customers)

Retrieve Customer ​

Retrieve a customer by its ID.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer ID"cus_123"Customer ID to retrieveRequired

Example output

json
{ "id": "cus_123", "object": "customer", "email": "customer@example.com" }

Documentation of API endpoint that powers action: Stripe API – Retrieve a customer (GET /v1/customers/{id})

Create Customer ​

Create a customer.

Inputs

Display KeyExample InputDescriptionRestrictions
Email
Optional
"customer@example.com"Customer email address—
Name
Optional
"John Doe"Customer name—
Phone
Optional
"+1234567890"Customer phone number—
Description
Optional
"Premium customer"Description—
Address
Optional
{"line1":"123 Main St","city":"NYC","country":"US"}Address objectObject
Metadata
Optional
{"internal_id":"123"}Extra values you want to storeObject

Example output

json
{ "id": "cus_123", "object": "customer", "name": "John Doe" }

Documentation of API endpoint that powers action: Stripe API – Create a customer (POST /v1/customers)

Update Customer ​

Update a customer.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer ID"cus_123"Customer ID to updateRequired
Email
Optional
"newemail@example.com"Customer email address—
Name
Optional
"Jane Doe"Customer name—
Phone
Optional
"+1987654321"Customer phone number—
Address
Optional
{"line1":"456 Oak St","city":"LA","country":"US"}Address objectObject
Metadata
Optional
{"internal_id":"456"}Extra values you want to storeObject

Example output

json
{ "id": "cus_123", "object": "customer", "email": "newemail@example.com" }

Documentation of API endpoint that powers action: Stripe API – Update a customer (POST /v1/customers/{id})

Delete Customer ​

Delete a customer.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer ID"cus_123"Customer ID to deleteRequired

Example output

json
{ "id": "cus_123", "object": "customer", "deleted": true }

Documentation of API endpoint that powers action: Stripe API – Delete a customer (DELETE /v1/customers/{id})

List Invoices ​

List invoices.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer
Optional
"cus_123"Filter by customer ID—
Status
Optional
"open"Filter by invoice statusStripe invoice status
Subscription
Optional
"sub_123"Filter by subscription ID—
Limit
Optional
10Number of results to return1–100
Starting After
Optional
"in_123"Pagination cursor—
Ending Before
Optional
"in_456"Pagination cursor—

Example output

json
{ "object": "list", "data": [{ "id": "in_123", "object": "invoice" }], "has_more": false }

Documentation of API endpoint that powers action: Stripe API – List invoices (GET /v1/invoices)

Retrieve Invoice ​

Retrieve an invoice by its ID.

Inputs

Display KeyExample InputDescriptionRestrictions
Invoice ID"in_123"Invoice ID to retrieveRequired

Example output

json
{ "id": "in_123", "object": "invoice", "status": "draft" }

Documentation of API endpoint that powers action: Stripe API – Retrieve an invoice (GET /v1/invoices/{id})

Create Invoice ​

Create an invoice for a customer.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer"cus_123"Customer IDRequired
Auto Advance
Optional
trueAutomatically finalize invoicetrue or false
Collection Method
Optional
"charge_automatically"How the invoice is collectedcharge_automatically or send_invoice
Description
Optional
"Monthly invoice"Description—
Days Until Due
Optional
30Days until duePositive integer
Due Date
Optional
1672531200Due dateUnix timestamp
Metadata
Optional
{"internal_id":"123"}Extra values you want to storeObject

Example output

json
{ "id": "in_123", "object": "invoice", "customer": "cus_123" }

Documentation of API endpoint that powers action: Stripe API – Create an invoice (POST /v1/invoices)

Update Invoice ​

Update an invoice.

Inputs

Display KeyExample InputDescriptionRestrictions
Invoice ID"in_123"Invoice ID to updateRequired
Auto Advance
Optional
falseAutomatically finalize invoicetrue or false
Collection Method
Optional
"send_invoice"How the invoice is collectedcharge_automatically or send_invoice
Description
Optional
"Updated invoice"Description—
Metadata
Optional
{"internal_id":"456"}Extra values you want to storeObject

Example output

json
{ "id": "in_123", "object": "invoice", "status": "draft" }

Documentation of API endpoint that powers action: Stripe API – Update an invoice (POST /v1/invoices/{id})

Delete Invoice ​

Delete a draft invoice.

Inputs

Display KeyExample InputDescriptionRestrictions
Invoice ID"in_123"Invoice ID to deleteRequired

Example output

json
{ "id": "in_123", "object": "invoice", "deleted": true }

Documentation of API endpoint that powers action: Stripe API – Delete a draft invoice (DELETE /v1/invoices/{id})

List Subscriptions ​

List subscriptions.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer
Optional
"cus_123"Filter by customer ID—
Price
Optional
"price_123"Filter by price ID—
Status
Optional
"active"Filter by statusStripe subscription status
Limit
Optional
10Number of results to return1–100
Starting After
Optional
"sub_123"Pagination cursor—
Ending Before
Optional
"sub_456"Pagination cursor—

Example output

json
{ "object": "list", "data": [{ "id": "sub_123", "object": "subscription" }], "has_more": false }

Documentation of API endpoint that powers action: Stripe API – List subscriptions (GET /v1/subscriptions)

Retrieve Subscription ​

Retrieve a subscription by its ID.

Inputs

Display KeyExample InputDescriptionRestrictions
Subscription ID"sub_123"Subscription ID to retrieveRequired

Example output

json
{ "id": "sub_123", "object": "subscription", "status": "active" }

Documentation of API endpoint that powers action: Stripe API – Retrieve a subscription (GET /v1/subscriptions/{id})

Create Subscription ​

Create a subscription.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer"cus_123"Customer IDRequired
Items[{"price":"price_123","quantity":1}]Subscription itemsRequired; Price ID required in each item
Cancel at Period End
Optional
falseCancel at end of current periodtrue or false
Default Payment Method
Optional
"pm_123"Payment method ID—
Description
Optional
"Premium subscription"Description—
Collection Method
Optional
"charge_automatically"How the invoice is collectedcharge_automatically or send_invoice
Metadata
Optional
{"internal_id":"123"}Extra values you want to storeObject

Example output

json
{ "id": "sub_123", "object": "subscription", "customer": "cus_123" }

Documentation of API endpoint that powers action: Stripe API – Create a subscription (POST /v1/subscriptions)

Update Subscription ​

Update a subscription.

Inputs

Display KeyExample InputDescriptionRestrictions
Subscription ID"sub_123"Subscription ID to updateRequired
Cancel at Period End
Optional
trueCancel at end of current periodtrue or false
Default Payment Method
Optional
"pm_456"Payment method ID—
Description
Optional
"Updated subscription"Description—
Items
Optional
[{"id":"si_123","price":"price_456"}]Items to updateItem ID or Price ID
Metadata
Optional
{"internal_id":"456"}Extra values you want to storeObject
Proration Behavior
Optional
"create_prorations"How changes are proratedcreate_prorations, none, always_invoice

Example output

json
{ "id": "sub_123", "object": "subscription", "status": "active" }

Documentation of API endpoint that powers action: Stripe API – Update a subscription (POST /v1/subscriptions/{id})

Cancel Subscription ​

Cancel a subscription.

Inputs

Display KeyExample InputDescriptionRestrictions
Subscription ID"sub_123"Subscription ID to cancelRequired

Example output

json
{ "id": "sub_123", "object": "subscription", "status": "canceled" }

Documentation of API endpoint that powers action: Stripe API – Cancel a subscription (DELETE /v1/subscriptions/{id})

List Payment Intents ​

List payment intents.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer
Optional
"cus_123"Filter by customer ID—
Limit
Optional
10Number of results to return1–100
Starting After
Optional
"pi_123"Pagination cursor—
Ending Before
Optional
"pi_456"Pagination cursor—

Example output

json
{ "object": "list", "data": [{ "id": "pi_123", "object": "payment_intent" }], "has_more": false }

Documentation of API endpoint that powers action: Stripe API – List payment intents (GET /v1/payment_intents)

Retrieve Payment Intent ​

Retrieve a payment intent by its ID.

Inputs

Display KeyExample InputDescriptionRestrictions
Payment Intent ID"pi_123"Payment intent ID to retrieveRequired

Example output

json
{ "id": "pi_123", "object": "payment_intent", "status": "requires_payment_method" }

Documentation of API endpoint that powers action: Stripe API – Retrieve a payment intent (GET /v1/payment_intents/{id})

Create Payment Intent ​

Create a payment intent.

Inputs

Display KeyExample InputDescriptionRestrictions
Amount1000Amount in centsRequired
Currency"usd"CurrencyRequired
Customer
Optional
"cus_123"Customer ID—
Payment Method
Optional
"pm_123"Payment method ID—
Description
Optional
"Payment for order #123"Description—
Receipt Email
Optional
"customer@example.com"Receipt email—
Automatic Payment Methods
Optional
{"enabled":true}Let Stripe choose available payment methodsObject
Metadata
Optional
{"order_id":"123"}Extra values you want to storeObject

Example output

json
{ "id": "pi_123", "object": "payment_intent", "amount": 1000, "currency": "usd" }

Documentation of API endpoint that powers action: Stripe API – Create a payment intent (POST /v1/payment_intents)

Update Payment Intent ​

Update a payment intent.

Inputs

Display KeyExample InputDescriptionRestrictions
Payment Intent ID"pi_123"Payment intent ID to updateRequired
Amount
Optional
1200Amount in cents—
Description
Optional
"Updated order"Description—
Payment Method
Optional
"pm_456"Payment method ID—
Receipt Email
Optional
"customer@example.com"Receipt email—
Metadata
Optional
{"order_id":"456"}Extra values you want to storeObject

Example output

json
{ "id": "pi_123", "object": "payment_intent", "amount": 1200 }

Documentation of API endpoint that powers action: Stripe API – Update a payment intent (POST /v1/payment_intents/{id})

Cancel Payment Intent ​

Cancel a payment intent.

Inputs

Display KeyExample InputDescriptionRestrictions
Payment Intent ID"pi_123"Payment intent ID to cancelRequired
Cancellation Reason
Optional
"requested_by_customer"Reason for cancellationduplicate, fraudulent, requested_by_customer, abandoned

Example output

json
{ "id": "pi_123", "object": "payment_intent", "status": "canceled" }

Documentation of API endpoint that powers action: Stripe API – Cancel a payment intent (POST /v1/payment_intents/{id}/cancel)

Refund Payment ​

Refund a charge or a payment intent.

Inputs

Display KeyExample InputDescriptionRestrictions
Charge ID
Optional
"ch_123"Charge to refundRequired when refund type is Charge
Payment Intent ID
Optional
"pi_123"Payment intent to refundRequired when refund type is Payment Intent
Amount
Optional
1000Amount to refund in centsEmpty refunds the full amount
Reason
Optional
"requested_by_customer"Refund reasonduplicate, fraudulent, requested_by_customer
Metadata
Optional
{"order_id":"12345"}Extra values you want to storeObject

Example output

json
{ "id": "re_123", "object": "refund", "status": "succeeded" }

Documentation of API endpoint that powers action: Stripe API – Create a refund (POST /v1/refunds)

Create Checkout Session ​

Create a Stripe Checkout session. Returns a session object with a url; redirect the customer to that URL to complete payment or subscription on Stripe’s hosted page.

Inputs

Display KeyExample InputDescriptionRestrictions
Mode"payment"Session modeRequired: payment, subscription, or setup
Line Items[{"price":"price_123","quantity":1}]Line items to purchaseRequired for payment and subscription
Success URL"https://yoursite.com/success?session_id={CHECKOUT_SESSION_ID}"Redirect URL after successRequired; may include {CHECKOUT_SESSION_ID}
Cancel URL"https://yoursite.com/cancel"Redirect URL if customer cancelsRequired
Customer
Optional
"cus_123"Existing Stripe customer ID—
Customer Email
Optional
"user@example.com"Customer email (if no Customer)—
Payment Method Types
Optional
["card"]Allowed payment methods—
Allow Promotion Codes
Optional
trueAllow promo codes on CheckoutBoolean
Metadata
Optional
{"order_id":"123"}Key-value pairsObject
Subscription Data
Optional
{"trial_period_days":14}Options for subscription modeObject

Example output

json
{ "id": "cs_123", "object": "checkout.session", "url": "https://checkout.stripe.com/...", "status": "open" }

Documentation of API endpoint that powers action: Stripe API – Create a checkout session (POST /v1/checkout/sessions)

Update Checkout Session ​

Update a checkout session (e.g. metadata, line items). Only sessions in open status can be updated.

Inputs

Display KeyExample InputDescriptionRestrictions
ID"cs_123"Checkout session IDRequired
Metadata
Optional
{"order_id":"456"}Key-value pairsObject
Line Items
Optional
[...]Replace line items—
Shipping Options
Optional
[...]Shipping options—

Documentation of API endpoint that powers action: Stripe API – Update a checkout session (POST /v1/checkout/sessions/{id})

Retrieve Checkout Session ​

Retrieve a checkout session by ID (e.g. on your success page to show order details).

Inputs

Display KeyExample InputDescriptionRestrictions
ID"cs_123"Checkout session IDRequired
Expand
Optional
["line_items"]Fields to expandArray

Example output

json
{ "id": "cs_123", "object": "checkout.session", "payment_status": "paid", "customer": "cus_123", "amount_total": 2000 }

Documentation of API endpoint that powers action: Stripe API – Retrieve a checkout session (GET /v1/checkout/sessions/{id})

List Checkout Sessions ​

List checkout sessions, optionally filtered by customer, subscription, status, etc.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer
Optional
"cus_123"Filter by customer—
Status
Optional
"complete"Filter by statusopen, complete, expired
Limit
Optional
10Number of results1–100
Starting After
Optional
"cs_123"Pagination cursor—
Ending Before
Optional
"cs_456"Pagination cursor—

Documentation of API endpoint that powers action: Stripe API – List checkout sessions (GET /v1/checkout/sessions)

List Checkout Session Line Items ​

List line items for a checkout session.

Inputs

Display KeyExample InputDescriptionRestrictions
ID"cs_123"Checkout session IDRequired
Limit
Optional
10Number of results1–100
Starting After
Optional
"li_123"Pagination cursor—
Ending Before
Optional
"li_456"Pagination cursor—

Documentation of API endpoint that powers action: Stripe API – List line items (GET /v1/checkout/sessions/{id}/line_items)

Expire Checkout Session ​

Expire an open checkout session so it can no longer be used.

Inputs

Display KeyExample InputDescriptionRestrictions
ID"cs_123"Checkout session IDRequired

Documentation of API endpoint that powers action: Stripe API – Expire a session (POST /v1/checkout/sessions/{id}/expire)

Create Invoice Item ​

Add a line item to a customer (for their next invoice) or to a specific draft invoice. Use this to add one-off charges, usage-based lines, or credits.

Inputs

Display KeyExample InputDescriptionRestrictions
Customer"cus_123"Customer IDRequired (unless attaching to an invoice)
Invoice
Optional
"in_123"Draft invoice ID to add the line to—
Price
Optional
"price_123"Price IDUse Price or Amount + Currency
Amount
Optional
1000Amount in cents—
Currency
Optional
"usd"CurrencyRequired if using Amount
Quantity
Optional
1QuantityDefault 1
Description
Optional
"One-time setup fee"Line description—
Metadata
Optional
{"ref":"123"}Key-value pairsObject

Example output

json
{ "id": "ii_123", "object": "line_item", "customer": "cus_123", "amount": 1000 }

Documentation of API endpoint that powers action: Stripe API – Create an invoice item (POST /v1/invoiceitems)