Skip to main content

Documentation Index

Fetch the complete documentation index at: https://explore.airia.com/llms.txt

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

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

GroupActions
BalanceGet
ChargeCreate, Get, Get All, Update
CustomerCreate, Get, Get All, Update, Delete

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.
InputRequiredDescription
AmountYesAmount to charge in the smallest currency unit, for example 100 for one US dollar.
CurrencyYesThree letter ISO currency code. Defaults to usd.
Customer IDNoThe ID of an existing customer to charge.
SourceNoA payment source to charge, such as a card token or source ID.
DescriptionNoAn arbitrary description for the charge statement.
Receipt EmailNoEmail address to send the receipt to.
MetadataNoA set of key value pairs for additional information.

Stripe Charge Get

Retrieves a charge by ID.
InputRequiredDescription
Charge IDYesThe unique identifier of the charge to retrieve.

Stripe Charge Get All

Lists charges.
InputRequiredDescription
LimitNoMaximum number of charges to return, from 1 to 100.
Starting AfterNoPagination cursor. The charge ID to start after.
Ending BeforeNoPagination cursor. The charge ID to end before.
Customer IDNoReturn only charges that belong to this customer.

Stripe Charge Update

Updates an existing charge.
InputRequiredDescription
Charge IDYesThe unique identifier of the charge to update.
DescriptionNoAn arbitrary description for the charge.
Receipt EmailNoEmail address to send the receipt to.
MetadataNoA set of key value pairs for additional information.

Customer

Stripe Customer Create

Creates a new customer.
InputRequiredDescription
EmailNoThe customer’s email address.
NameNoThe customer’s full or business name.
PhoneNoThe customer’s phone number.
DescriptionNoAn arbitrary description of the customer.
MetadataNoA set of key value pairs for additional information.

Stripe Customer Get

Retrieves a customer by ID.
InputRequiredDescription
Customer IDYesThe unique identifier of the customer to retrieve.

Stripe Customer Get All

Lists customers.
InputRequiredDescription
LimitNoMaximum number of customers to return, from 1 to 100.
Starting AfterNoPagination cursor. The customer ID to start after.
Ending BeforeNoPagination cursor. The customer ID to end before.
EmailNoReturn only customers with this email address.

Stripe Customer Update

Updates an existing customer.
InputRequiredDescription
Customer IDYesThe unique identifier of the customer to update.
EmailNoThe customer’s email address.
NameNoThe customer’s full or business name.
PhoneNoThe customer’s phone number.
DescriptionNoAn arbitrary description of the customer.
MetadataNoA set of key value pairs for additional information.

Stripe Customer Delete

Deletes a customer.
InputRequiredDescription
Customer IDYesThe unique identifier of the customer to delete.

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.