# Stripe

Automate operations of Stripe resources.

---

Stripe is a payment processing platform that allows businesses to accept payments from customers.

The Stripe integration must be configured before using this node. See [Stripe Integration](/integrations/stripe) for more details.

## Balance Operations

These operations are based on the [Stripe API for Balance](https://docs.stripe.com/api/balance).

### Get

Retrieves the balance of the connected account.

## Coupon Operations

These operations are based on the [Stripe API for Coupon](https://docs.stripe.com/api/coupons).

### Create

Creates a new coupon.

#### Fields

- **Apply**: How long the discount will be in effect. Forever or Once.
- **Discount Type**: The type of discount. Fixed Amount or Percent.
- **Amount Off**: The amount of discount.
- **Currency Name or ID**: The currency of the discount.
- **Percent Off**: The percentage of discount.

### Get Many

Retrieves a list of coupons.

#### Parameters

- **Return All**: Whether to return all items.
- **Limit**: The maximum number of items to return.

## Customer Operations

These operations are based on the [Stripe API for Customer](https://docs.stripe.com/api/customers).

### Create

Creates a new customer.

#### Fields

- **Name**: Required.
- **Address**
- **Description**
- **Email**
- **Metadata**
- **Phone**
- **Shipping**

### Delete

Deletes a customer by ID.

### Get

Retrieves a customer by ID.

### Get Many

Lists all customers.

#### Parameters

- **Return All**: Whether to return all items.
- **Limit**: The maximum number of items to return.
- **Filters**: Only supports `email` filter for now.

## Payment Method Operations

These operations are based on the [Stripe API for Payment Method](https://docs.stripe.com/api/payment_methods).

### Create

Creates a new payment method, only supports `card` for now.

#### Fields

- **Customer ID**: The ID of the customer to create the payment method for.
- **Card Number**: The card number.
- **CVC**: The CVC of the card.
- **Expiry Month**: The expiry month.
- **Expiry Year**: The expiry year.

### Get

Retrieves a payment method by ID.

### Delete

Deletes a payment method by ID.

## Payment Intent Operations

These operations are based on the [Stripe API for Payment Intent](https://docs.stripe.com/api/payment_intents).

### Create

Creates a new payment intent.

#### Fields

- **Customer ID**: The ID of the customer to create the payment intent for. Required.
- **Amount**: The amount to charge. Required.
- **Currency Name or ID**: The currency to charge in. Required.
- **Payment Method ID**: The payment method to use. Required.

#### Additional Fields

- **Description**: The description of the payment intent.
- **Metadata**: The metadata of the payment intent.
- **Receipt Email**: The email address to send the receipt to.
- **Shipping**: The shipping address of the payment intent.

### Get

Retrieves a payment intent by ID.

### Get Many

Lists all payment intents.

#### Parameters

- **Return All**: Whether to return all items.
- **Limit**: The maximum number of items to return.

### Update

Updates a payment intent by ID.

#### Fields

- **Description**: The description of the payment intent.
- **Metadata**: The metadata of the payment intent.
- **Receipt Email**: The email address to send the receipt to.
- **Shipping**: The shipping address of the payment intent.

## Subscription Operations

These operations are based on the [Stripe API for Subscription](https://docs.stripe.com/api/subscriptions).

### Create

Creates a new subscription.

#### Fields

- **Customer ID**: The ID of the customer to create the subscription for. Required.
- **Currency Name or ID**: The currency to charge in. Required.
- **Subscription Items**: The items to add to the subscription.
  - **Price ID**: The price of the item to add to the subscription. Required.
  - **Quantity**: The quantity of the item to add to the subscription.

#### Additional Fields

- **Default Payment Method**: The payment method to use for the subscription.
- **Description**: The description of the subscription.
- **Metadata**: The metadata of the subscription.
- **Collection Method**: The method to collect the payment. Charge Automatically or Send Invoice.

### Get

Retrieves a subscription by ID.

### Get Many

Lists all subscriptions.

#### Parameters

- **Return All**: Whether to return all items.
- **Limit**: The maximum number of items to return.
- **Filters**:
  - **Customer ID**: The ID of the customer to filter by.
  - **Price ID**: The ID of the price to filter by.
  - **Status**: The status of the subscription to filter by.
  - **Created After Date**: The date to filter by.

### Cancel

Cancels a subscription by ID.
