Integration library
Integration

Stripe

Connect approved Stripe payment, customer, and subscription actions to calls.

Description

AIM AI can be configured to retrieve or initiate selected Stripe operations after defined verification and consent steps. Accounts, amounts, currencies, customer matching, payment handling, refunds, and subscription rules are confirmed before implementation.

Authentication

  • A Stripe secret or restricted API key is required.
  • Exact account access, verification controls, and approved actions are confirmed during workflow scoping.

Supported Actions (18)

These are the operations this integration can perform after the required credentials and permissions are approved.

  • Retrieve Checkout Session
  • Create Customer
  • List Customers
  • Retrieve Customer
  • Attach Payment Method
  • Create Payment Method
  • Detach Payment Method
  • Cancel Payment Intent
  • Create Payment Intent
  • Retrieve Payment Intent
  • Create Price
  • Retrieve Price
  • List Products
  • Create Refund
  • Cancel Subscription
  • Create Subscription
  • List Subscriptions
  • Retrieve Subscription

Examples

Use these representative payloads as a technical starting point, then replace the sample values with the approved workflow data.

Subscriptions

Representative workflow configuration for Subscriptions.

JSON
{
  "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"
    }
  }
}
Stripe - Create Checkout Session

Representative workflow configuration for Stripe - Create Checkout Session.

JSON
{
  "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"
    }
  }
}
Stripe - Create Customer

Representative workflow configuration for Stripe - Create Customer.

JSON
{
  "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"
      }
    }
  }
}
Stripe - Retrieve Subscription

Representative workflow configuration for Stripe - Retrieve Subscription.

JSON
{
  "automationType": "stripe",
  "nodeId": "stripe-retrieve-sub-001",
  "nodeParams": {
    "action": "retrieve_subscription",
    "params": {
      "subscriptionId": "sub_...xxx"
    }
  }
}
Stripe - Update Product

Representative workflow configuration for Stripe - Update Product.

JSON
{
  "automationType": "stripe",
  "nodeId": "stripe-update-prod-001",
  "nodeParams": {
    "action": "update_product",
    "params": {
      "productId": "prod_...xxx",
      "name": "Premium Plan Updated"
    }
  }
}
Stripe - Create Price

Representative workflow configuration for Stripe - Create Price.

JSON
{
  "automationType": "stripe",
  "nodeId": "stripe-create-price-001",
  "nodeParams": {
    "action": "create_price",
    "params": {
      "productId": "prod_...xxx",
      "currency": "usd",
      "unitAmount": 1000
    }
  }
}
Stripe - List Prices

Representative workflow configuration for Stripe - List Prices.

JSON
{
  "automationType": "stripe",
  "nodeId": "stripe-list-prices-001",
  "nodeParams": {
    "action": "list_prices",
    "params": {
      "productId": "prod_...xxx",
      "limit": 10
    }
  }
}
Detach Payment Method

Representative workflow configuration for Detach Payment Method.

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