Skip to main content
Stripe actions let an agent work with payments data directly in a flow. An agent can look up the account balance, create and update charges, and manage customer records, then pass the results to later steps.

Supported actions

Prerequisites

Generate a secret API key in your Stripe dashboard under Developers, API keys, then store it as a Stripe API key credential in Credential Management. Select that credential on every Stripe action.

How to use these actions

  • Amounts are in the smallest currency unit. A charge of one US dollar is an Amount of 100, not 1.00.
  • Map text inputs from earlier steps. Inputs such as Customer ID, Currency, and Description accept a value mapped from a previous step. Numeric inputs such as Amount and Limit, and the Metadata key value set, take fixed values.
  • Pagination uses cursors. The Get All actions return a page of results. To page through more, pass the ID of the last item you saw into Starting After on the next call, or use Ending Before to page backward.
  • Reading output. Each action returns the Stripe object it acted on, including its generated ID. Map that ID into a later step, for example to charge a customer you just created.

Actions

Balance

Stripe Balance Get

Retrieves the current Stripe account balance. This action takes no inputs beyond the credential.

Charge

Stripe Charge Create

Creates a new charge.

Stripe Charge Get

Retrieves a charge by ID.

Stripe Charge Get All

Lists charges.

Stripe Charge Update

Updates an existing charge.

Customer

Stripe Customer Create

Creates a new customer.

Stripe Customer Get

Retrieves a customer by ID.

Stripe Customer Get All

Lists customers.

Stripe Customer Update

Updates an existing customer.

Stripe Customer Delete

Deletes a customer.

Example

An agent that bills a customer for an approved invoice:
1

Find or create the customer

A Stripe Customer Get All action filters by the buyer’s Email. A later branch creates the customer with Stripe Customer Create if none was found.
2

Create the charge

A Stripe Charge Create action maps Customer ID to the customer from the previous step, sets Amount and Currency, and adds a Description that references the invoice number.
3

Confirm

A model step summarizes the charge result, including the returned charge ID, for the activity log.

Troubleshooting

Amount is in the smallest currency unit and must be 1 or greater. Send 100 for one US dollar, not 1.00.
Confirm the stored key is a valid Stripe secret key and has not been rolled. A restricted key must include permission for the resource you are calling.
The ID you passed does not exist in the environment the key belongs to. A key from test mode cannot read live objects and the reverse is also true.
For issues common to every vendor, see the Actions overview.