Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.plura.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Accept payments, manage customers, and handle subscriptions with Stripe. Call actions with automationType, action, and params from any workflow node that supports automations.

Authentication

  • Stripe Secret API Key (per-account); restricted keys supported.

Available Actions

Click any action to jump to its example payload. Checkout Customers Payment Methods Payments Prices Products Refunds Subscriptions

Examples

Example 1: Stripe - Create Payment Intent

Create a payment intent for $10.00
{
  "automationType": "stripe",
  "nodeId": "stripe-create-pi-001",
  "nodeParams": {
    "action": "create_payment_intent",
    "params": {
      "amount": 1000,
      "currency": "usd",
      "description": "Test Payment Intent from Automation",
      "metadata": {
        "order_id": "12345"
      },
      "webhookUrl": "https://webhook.site/test-callback"
    }
  }
}

Example 2: Stripe - Confirm Payment Intent

Confirm an existing payment intent with a payment method
{
  "automationType": "stripe",
  "nodeId": "stripe-confirm-pi-001",
  "nodeParams": {
    "action": "confirm_payment_intent",
    "params": {
      "paymentIntentId": "pi_3L...xxx",
      "paymentMethodId": "pm_card_visa",
      "returnUrl": "https://example.com/checkout/complete"
    }
  }
}

Example 3: Stripe - Retrieve Payment Intent

Get details of a payment intent by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-pi-001",
  "nodeParams": {
    "action": "retrieve_payment_intent",
    "params": {
      "paymentIntentId": "pi_3L...xxx"
    }
  }
}

Example 4: Stripe - Cancel Payment Intent

Cancel a payment intent by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-cancel-pi-001",
  "nodeParams": {
    "action": "cancel_payment_intent",
    "params": {
      "paymentIntentId": "pi_3L...xxx"
    }
  }
}

Example 5: Stripe - Create Checkout Session

Create a checkout session for a one-time payment product
{
  "automationType": "stripe",
  "nodeId": "stripe-create-cs-001",
  "nodeParams": {
    "action": "create_checkout_session",
    "params": {
      "mode": "payment",
      "successUrl": "https://example.com/success",
      "cancelUrl": "https://example.com/cancel",
      "lineItems": [
        {
          "price_data": {
            "currency": "usd",
            "product_data": {
              "name": "Premium Plan"
            },
            "unit_amount": 5000
          },
          "quantity": 1
        }
      ],
      "customer_email": "customer@example.com",
      "webhookUrl": "https://webhook.site/test-callback"
    }
  }
}

Example 6: Stripe - Retrieve Checkout Session

Get details of a checkout session by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-cs-001",
  "nodeParams": {
    "action": "retrieve_checkout_session",
    "params": {
      "sessionId": "cs_test_...xxx"
    }
  }
}

Example 7: Stripe - Create Refund

Refund a payment intent
{
  "automationType": "stripe",
  "nodeId": "stripe-create-refund-001",
  "nodeParams": {
    "action": "create_refund",
    "params": {
      "paymentIntentId": "pi_3L...xxx",
      "amount": 500,
      "reason": "requested_by_customer"
    }
  }
}

Example 8: Stripe - Create Customer

Create a new customer in Stripe
{
  "automationType": "stripe",
  "nodeId": "stripe-create-cust-001",
  "nodeParams": {
    "action": "create_customer",
    "params": {
      "email": "newuser@example.com",
      "name": "New User",
      "phone": "+15550001234",
      "metadata": {
        "internal_id": "u_123"
      }
    }
  }
}

Example 9: Stripe - Retrieve Customer

Get details of a customer by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-cust-001",
  "nodeParams": {
    "action": "retrieve_customer",
    "params": {
      "customerId": "cus_...xxx"
    }
  }
}

Example 10: Stripe - Create Subscription

Create a new subscription for a customer
{
  "automationType": "stripe",
  "nodeId": "stripe-create-sub-001",
  "nodeParams": {
    "action": "create_subscription",
    "params": {
      "customerId": "cus_...xxx",
      "items": [
        {
          "price": "price_...xxx",
          "quantity": 1
        }
      ],
      "metadata": {
        "plan": "premium"
      }
    }
  }
}

Example 11: Stripe - Update Subscription

Update an existing subscription
{
  "automationType": "stripe",
  "nodeId": "stripe-update-sub-001",
  "nodeParams": {
    "action": "update_subscription",
    "params": {
      "subscriptionId": "sub_...xxx",
      "cancelAtPeriodEnd": true
    }
  }
}

Example 12: Stripe - Retrieve Subscription

Get details of a subscription by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-sub-001",
  "nodeParams": {
    "action": "retrieve_subscription",
    "params": {
      "subscriptionId": "sub_...xxx"
    }
  }
}

Example 13: Stripe - Cancel Subscription

Cancel a subscription immediately or at period end
{
  "automationType": "stripe",
  "nodeId": "stripe-cancel-sub-001",
  "nodeParams": {
    "action": "cancel_subscription",
    "params": {
      "subscriptionId": "sub_...xxx",
      "invoiceNow": false,
      "prorate": true
    }
  }
}

Example 14: Stripe - List Subscriptions

List subscriptions with optional filters
{
  "automationType": "stripe",
  "nodeId": "stripe-list-subs-001",
  "nodeParams": {
    "action": "list_subscriptions",
    "params": {
      "customerId": "cus_...xxx",
      "status": "active",
      "limit": 10
    }
  }
}

Example 15: Stripe - Create Product

Create a new product in Stripe
{
  "automationType": "stripe",
  "nodeId": "stripe-create-prod-001",
  "nodeParams": {
    "action": "create_product",
    "params": {
      "name": "Premium Plan",
      "description": "Access to all premium features"
    }
  }
}

Example 16: Stripe - Update Product

Update product details
{
  "automationType": "stripe",
  "nodeId": "stripe-update-prod-001",
  "nodeParams": {
    "action": "update_product",
    "params": {
      "productId": "prod_...xxx",
      "name": "Premium Plan Updated"
    }
  }
}

Example 17: Stripe - Retrieve Product

Get product details by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-prod-001",
  "nodeParams": {
    "action": "retrieve_product",
    "params": {
      "productId": "prod_...xxx"
    }
  }
}

Example 18: Stripe - List Products

List all products
{
  "automationType": "stripe",
  "nodeId": "stripe-list-prods-001",
  "nodeParams": {
    "action": "list_products",
    "params": {
      "limit": 10
    }
  }
}

Example 19: Stripe - Delete Product

Archive a product
{
  "automationType": "stripe",
  "nodeId": "stripe-delete-prod-001",
  "nodeParams": {
    "action": "delete_product",
    "params": {
      "productId": "prod_...xxx"
    }
  }
}

Example 20: Stripe - Create Price

Create a price for a product
{
  "automationType": "stripe",
  "nodeId": "stripe-create-price-001",
  "nodeParams": {
    "action": "create_price",
    "params": {
      "productId": "prod_...xxx",
      "currency": "usd",
      "unitAmount": 1000
    }
  }
}

Example 21: Stripe - Update Price

Update price metadata
{
  "automationType": "stripe",
  "nodeId": "stripe-update-price-001",
  "nodeParams": {
    "action": "update_price",
    "params": {
      "priceId": "price_...xxx",
      "metadata": {
        "tier": "premium"
      }
    }
  }
}

Example 22: Stripe - Retrieve Price

Get price details by ID
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-price-001",
  "nodeParams": {
    "action": "retrieve_price",
    "params": {
      "priceId": "price_...xxx"
    }
  }
}

Example 23: Stripe - List Prices

List all prices
{
  "automationType": "stripe",
  "nodeId": "stripe-list-prices-001",
  "nodeParams": {
    "action": "list_prices",
    "params": {
      "productId": "prod_...xxx",
      "limit": 10
    }
  }
}

Example 24: Stripe - List Customers

List all customers with optional filters
{
  "automationType": "stripe",
  "nodeId": "stripe-list-customers-001",
  "nodeParams": {
    "action": "list_customers",
    "params": {
      "limit": 10
    }
  }
}

Example 25: Stripe - Create Subscription with Free Trial

Create subscription with 14-day trial and coupon
{
  "automationType": "stripe",
  "nodeId": "stripe-sub-trial-001",
  "nodeParams": {
    "action": "create_subscription",
    "params": {
      "customerId": "cus_...xxx",
      "items": [
        {
          "price": "price_...xxx",
          "quantity": 1
        }
      ],
      "trialPeriodDays": 14,
      "coupon": "WELCOME20"
    }
  }
}

Example 26: Stripe - Create Tiered Price (Volume Discounts)

Create graduated tiered pricing for volume discounts
{
  "automationType": "stripe",
  "nodeId": "stripe-tiered-price-001",
  "nodeParams": {
    "action": "create_price",
    "params": {
      "productId": "prod_...xxx",
      "currency": "usd",
      "billingScheme": "tiered",
      "tiersMode": "graduated",
      "tiers": [
        {
          "up_to": 100,
          "unit_amount": 1000
        },
        {
          "up_to": 1000,
          "unit_amount": 800
        },
        {
          "up_to": "inf",
          "unit_amount": 600
        }
      ],
      "recurring": {
        "interval": "month"
      }
    }
  }
}

Example 27: Stripe - Checkout Session with Shipping

Create checkout session with shipping address collection
{
  "automationType": "stripe",
  "nodeId": "stripe-checkout-shipping-001",
  "nodeParams": {
    "action": "create_checkout_session",
    "params": {
      "lineItems": [
        {
          "price": "price_...xxx",
          "quantity": 1
        }
      ],
      "mode": "payment",
      "successUrl": "https://example.com/success",
      "cancelUrl": "https://example.com/cancel",
      "allowPromotionCodes": true,
      "billingAddressCollection": "required",
      "shippingAddressCollection": {
        "allowed_countries": [
          "US",
          "CA",
          "GB"
        ]
      }
    }
  }
}

Example 28: Stripe - Payment Intent with Shipping

Create payment intent with shipping address
{
  "automationType": "stripe",
  "nodeId": "stripe-payment-shipping-001",
  "nodeParams": {
    "action": "create_payment_intent",
    "params": {
      "amount": 2000,
      "currency": "usd",
      "receiptEmail": "customer@example.com",
      "shipping": {
        "name": "John Doe",
        "address": {
          "line1": "123 Main St",
          "city": "San Francisco",
          "state": "CA",
          "postal_code": "94102",
          "country": "US"
        }
      }
    }
  }
}

Example 29: Create Payment Method

{
  "automationType": "stripe",
  "nodeParams": {
    "action": "create_payment_method",
    "params": {
      "type": "card",
      "card": {
        "number": "4242424242424242",
        "exp_month": 12,
        "exp_year": 2025,
        "cvc": "123"
      },
      "billingDetails": {
        "name": "John Doe",
        "email": "john@example.com"
      }
    }
  }
}

Example 30: Attach Payment Method

{
  "automationType": "stripe",
  "nodeParams": {
    "action": "attach_payment_method",
    "params": {
      "paymentMethodId": "pm_1234567890",
      "customerId": "cus_1234567890"
    }
  }
}

Example 31: Detach Payment Method

{
  "automationType": "stripe",
  "nodeParams": {
    "action": "detach_payment_method",
    "params": {
      "paymentMethodId": "pm_1234567890"
    }
  }
}

Third-Party Documentation