Skip to main content

Stripe Operations Reference

Orkes Conductor integrates with Stripe to let you manage balances, customers, coupons, payment intents, charges, refunds, payment methods, tokens, and meter events directly from your workflows. Once you configure the Stripe integration, you can use the following operations to create, retrieve, and update data in Stripe without leaving your workflow.

This page covers the parameters and expected output for each operation available in the Stripe integration.

Get Balance

Retrieves the current balance for your Stripe account, including available and pending amounts across all currencies.

This operation has no input parameters.

List Customers

Retrieves a list of customers from your Stripe account.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of customers to return. Defaults to 10.integerRequired.
EmailThe email address to filter customers by.stringOptional.

Create Customer

Creates a new customer record in Stripe.

ParameterDescriptionTypeRequired/Optional
EmailThe customer's email address.stringRequired.
NameThe customer's full name.stringRequired.
Phone NumberThe customer's phone number.stringOptional.
DescriptionA description of the customer.stringOptional.

Get Customer

Retrieves the details of an existing Stripe customer.

ParameterDescriptionTypeRequired/Optional
Customer IDThe Stripe customer ID (e.g., cus_xxxxx) to retrieve.

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringRequired.

Update Customer

Updates an existing customer record in Stripe.

ParameterDescriptionTypeRequired/Optional
Customer IDThe Stripe customer ID (e.g., cus_xxxxx) to update.

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringRequired.
EmailThe updated email address for the customer.stringOptional.
NameThe updated name for the customer.stringOptional.
Phone NumberThe updated phone number for the customer.stringOptional.
DescriptionThe updated description for the customer.stringOptional.

Delete Customer

Deletes an existing customer record from Stripe.

ParameterDescriptionTypeRequired/Optional
Customer IDThe Stripe customer ID (e.g., cus_xxxxx) to delete.

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringRequired.

Create Coupon

Creates a new coupon in Stripe.

ParameterDescriptionTypeRequired/Optional
IDThe arbitrary unique coupon ID or code (e.g., SUMMER2024).stringRequired.
Percent OffThe percentage discount to apply, between 0 and 100. Required if Amount Off is not provided.integerOptional.
Amount OffThe discount amount in cents. Required if Percent Off is not provided.integerOptional.
CurrencyThe currency for the discount. Required if Amount Off is provided.stringOptional.
DurationHow long the coupon applies. Supported values:
  • forever
  • once
  • repeating
stringOptional.
Duration in MonthsThe number of months the coupon applies. Required if Duration is set to repeating.stringOptional.
NameA display name for the coupon.stringOptional.

List Coupons

Retrieves a list of coupons from your Stripe account.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of coupons to return. Defaults to 10.integerRequired.

Create Payment Intent

Creates a new payment intent in Stripe.

ParameterDescriptionTypeRequired/Optional
AmountThe payment amount in cents (e.g., 1000 = $10.00).integerRequired.
CurrencyThe three-letter ISO currency code (e.g., usd, eur, gbp).stringRequired.
Customer IDThe Stripe customer ID (e.g., cus_xxxxx) to associate with payment.

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringOptional.
DescriptionA description of the payment.stringOptional.

Get Payment Intent

Retrieves the details of an existing Stripe payment intent.

ParameterDescriptionTypeRequired/Optional
Payment Intent IDThe Stripe payment intent ID (e.g., pi_xxxxx) to retrieve.

To get the payment intent ID, go to the Transactions > Payments page in the Stripe dashboard. The ID appears in the Description column. Alternatively, use Create Payment Intent and copy the id from the response.
stringRequired.

Cancel Payment Intent

Cancels an existing Stripe payment intent.

ParameterDescriptionTypeRequired/Optional
Payment Intent IDThe Stripe payment intent ID (e.g., pi_xxxxx) to cancel.

To get the payment intent ID, go to the Transactions > Payments page in the Stripe dashboard. The ID appears in the Description column. Alternatively, use Create Payment Intent and copy the id from the response.
stringRequired.

List Charges

Retrieves a list of charges from your Stripe account.

ParameterDescriptionTypeRequired/Optional
LimitThe maximum number of charges to return. Defaults to 10.integerRequired.
Customer IDThe Stripe customer ID (e.g., cus_xxxxx) to list charges for.

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringOptional.

Create Charge

Creates a new charge in Stripe.

ParameterDescriptionTypeRequired/Optional
AmountThe charge amount in cents.integerRequired.
CurrencyThe three-letter ISO currency code (e.g., usd, eur, gbp).stringRequired.
SourceThe payment source. Accepts a one-time token (tok_…), a saved card (card_…), or a saved bank account (ba_…) attached to a customer.
  • In test mode, use Stripe's built-in test tokens (e.g., tok_visa, tok_mastercard, tok_chargeDeclined). No frontend needed.
  • In production, pass the token (tok_...) generated by Stripe.js when a customer enters their card details on your frontend.
  • Saved card/bank (card_… / ba_…): Must be used together with the Customer parameter.
At least one of the parameters (Source or Customer) is required.
stringOptional.
CustomerThe Stripe Customer ID (cus_…) to charge.
  • Use alone if the customer has a default payment method saved in Stripe.
  • Required when Source is a saved card (card_…) or bank account (ba_…).
  • To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
At least one of the parameters (Source or Customer) is required.
stringOptional.
DescriptionA description of the charge.stringOptional.

Update Charge

Updates an existing charge in Stripe.

ParameterDescriptionTypeRequired/Optional
Charge IDThe Stripe charge ID (e.g., ch_xxxxx) to update.

To get the charge ID, go to the Transactions > Payments page in the Stripe dashboard. The ID appears in the Description column. Alternatively, use List Charges and copy the id from the response.
stringRequired.
DescriptionThe updated description for the charge.stringOptional.

Get Charge

Retrieves the details of an existing Stripe charge.

ParameterDescriptionTypeRequired/Optional
Charge IDThe Stripe charge ID (e.g., ch_xxxxx) to retrieve.

To get the charge ID, go to the Transactions > Payments page in the Stripe dashboard. The ID appears in the Description column. Alternatively, use List Charges and copy the id from the response.
stringRequired.

Create Refund

Creates a refund for an existing Stripe charge.

ParameterDescriptionTypeRequired/Optional
Charge IDThe Stripe charge ID (e.g., ch_xxxxx) to refund.

To get the charge ID, go to the Transactions > Payments page in the Stripe dashboard. The ID appears in the Description column. Alternatively, use List Charges and copy the id from the response.
stringRequired.
AmountThe refund amount in cents. Defaults to the full charge amount.integerOptional.
ReasonThe reason for the refund. Supported values:
  • duplicate
  • fraudulent
  • requested_by_customer
stringOptional.

Get Refund

Retrieves the details of an existing Stripe refund.

ParameterDescriptionTypeRequired/Optional
Refund IDThe Stripe refund ID (e.g., re_xxxxx). To get this value, use Create Refund and copy the id from the response.stringRequired.

Attach Payment Method

Attaches a payment method to an existing Stripe customer.

ParameterDescriptionTypeRequired/Optional
Payment Method IDThe Stripe payment method ID (e.g., pm_xxxxx).

To get the payment method ID, go to the Customers page, and select the customer, in the Stripe dashboard. Scroll to the Payment methods section, and click on the payment method; the ID is listed in the ID field.
stringRequired.
Customer IDThe Stripe customer ID (e.g., cus_xxxxx) to attach the payment method to.

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringRequired.

Get Payment Method

Retrieves the details of an existing Stripe payment method.

ParameterDescriptionTypeRequired/Optional
Payment Method IDThe Stripe payment method ID (e.g., pm_xxxxx).

To get the payment method ID, go to the Customers page, and select the customer, in the Stripe dashboard. Scroll to the Payment methods section, and click on the payment method; the ID is listed in the ID field.
stringRequired.

Detach Payment Method

Detaches a payment method from a Stripe customer.

ParameterDescriptionTypeRequired/Optional
Payment Method IDThe Stripe payment method ID (e.g., pm_xxxxx).

To get the payment method ID, go to the Customers page, and select the customer, in the Stripe dashboard. Scroll to the Payment methods section, and click on the payment method; the ID is listed in the ID field.
stringRequired.

Create Meter Event

Creates a meter event to record usage in Stripe.

ParameterDescriptionTypeRequired/Optional
Event NameThe event name configured for your meter in Stripe.

To get the event name, go to Billing > Usage-based > Meters, in the Stripe dashboard. The event name is listed in the Event name column.
stringRequired.
Customer IDThe Stripe customer ID (e.g., cus_xxxxx).

To get the customer ID, go to the customer page in the Stripe dashboard. The ID appears after /customers/ in the URL (e.g., https://dashboard.stripe.com/acctxxxx/test/customers/cus_UfjdzVYlGjM4Rg). Or to get this value programmatically, use List Customers and copy the id from the response.
stringRequired.
IdentifierA unique idempotency key for the event. Re-submitting the same identifier will not double-count usage.stringOptional.
ValueThe usage value to record (e.g., 1, 10). Required for sum, max, or average meters. Defaults to 1 for count meters.stringOptional.
TimestampThe Unix timestamp of the event. Defaults to the current time if not provided.integerOptional.