Skip to main content

Stripe

Actions in the category "Stripe".

Get customer​

Reads a Stripe customer by ID.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Customer IDIDYesThe customer ID, starting with cus_. Maximum length: 255 characters.

Outputs

NameTypeDetails
FoundYes/NoWhether the customer exists and is not deleted. When not, everything else is empty.
EmailTextThe email address. May be empty.
NameTextThe name. May be empty.
DescriptionTextThe description. May be empty.
CurrencyTextThe currency the customer pays in. May be empty.
BalanceWhole numberThe customer balance in the smallest unit; below 0 is credit. May be empty.
Payment overdueYes/NoWhether the last invoice payment failed. May be empty.
Created atDate and timeWhen the customer was created. May be empty.

Get charges​

Lists charges, newest first, of all customers or one.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Customer IDIDNoOnly for this customer (cus_...). Empty: all customers. Maximum length: 255 characters.
How manyWhole numberNoHow many to get, 1 to 100. Empty: 10. Value: 1 to 100. Default: 10.
After IDIDNoContinue after this ID, the last one of the previous page. Empty: the newest first. Maximum length: 255 characters.

Outputs

NameTypeDetails
ChargesList of Stripe chargeThe charges, newest first.
Has moreYes/NoWhether there are more after this page.

Get payments​

Lists payment intents, newest first, of all customers or one.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Customer IDIDNoOnly for this customer (cus_...). Empty: all customers. Maximum length: 255 characters.
How manyWhole numberNoHow many to get, 1 to 100. Empty: 10. Value: 1 to 100. Default: 10.
After IDIDNoContinue after this ID, the last one of the previous page. Empty: the newest first. Maximum length: 255 characters.

Outputs

NameTypeDetails
PaymentsList of Stripe paymentThe payments, newest first.
Has moreYes/NoWhether there are more after this page.

Get balance​

Reads the balance of your Stripe account, per currency.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.

Outputs

NameTypeDetails
AvailableList of Stripe amountMoney you can pay out now.
PendingList of Stripe amountMoney that is not available yet.

Create Checkout session​

Creates a Stripe page where one customer pays for one item. Sending the same inputs again returns the same session.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Product nameTextYesWhat the customer pays for, shown on the Stripe page. For several products, send one total with a descriptive name. Maximum length: 250 characters.
PriceWhole numberYesThe amount in the smallest unit of the currency, for example cents: 1000 is 10.00. Value: 0 to 99999999.
QuantityWhole numberNoHow many of it, 1 to 999. Empty: 1. Value: 1 to 999. Default: 1.
CurrencyTextYesThe three-letter currency code, for example eur. Length: 3 to 3 characters.
Success linkTextYesWhere the customer lands after paying. Maximum length: 2048 characters.
Cancel linkTextNoWhere the customer lands when they go back. Empty: no back button. Maximum length: 2048 characters.
ReferenceTextYesYour own ID for this order, for example an order number. Use it to find the order again. Maximum length: 200 characters.
Customer emailTextNoFills in the email on the Stripe page. Empty: the customer types it. Maximum length: 800 characters.
MetadataLookup table of Text to TextNoNotes Stripe stores with it, as name and value pairs, for example an order number. Empty: none.
Expires atDate and timeNoWhen the page stops working. Stripe needs a time between 30 minutes and 24 hours from now. Work it out once and keep it with the order. Empty: 24 hours.

Outputs

NameTypeDetails
IDIDThe ID, starting with cs_.
Payment pageURLThe Stripe page where the customer pays. Empty once the session expired. May be empty.
StatusTextopen, complete or expired.
Payment statusTextpaid, unpaid or no_payment_required.
Expires atDate and timeWhen the session expires.
TotalWhole numberThe amount in the smallest unit of the currency, for example cents: 1000 is 10.00. May be empty.
CurrencyTextThe currency, for example eur. May be empty.
ReferenceTextThe reference you gave when creating the session. May be empty.
Payment IDIDThe payment (pi_...), once the customer started paying. May be empty.

Get Checkout session​

Reads a Checkout session by ID.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Session IDIDYesThe Checkout session ID, starting with cs_. Maximum length: 255 characters.

Outputs

NameTypeDetails
FoundYes/NoWhether the session exists. When not, everything else is empty.
IDIDThe ID, starting with cs_. May be empty.
Payment pageURLThe Stripe page where the customer pays. Empty once the session expired. May be empty.
StatusTextopen, complete or expired. May be empty.
Payment statusTextpaid, unpaid or no_payment_required. May be empty.
Expires atDate and timeWhen the session expires. May be empty.
TotalWhole numberThe amount in the smallest unit of the currency, for example cents: 1000 is 10.00. May be empty.
CurrencyTextThe currency, for example eur. May be empty.
ReferenceTextThe reference you gave when creating the session. May be empty.
Payment IDIDThe payment (pi_...), once the customer started paying. May be empty.

Expire Checkout session​

Closes an open Checkout session so nobody can pay with it anymore.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Session IDIDYesThe Checkout session ID, starting with cs_. Maximum length: 255 characters.

Outputs

NameTypeDetails
IDIDThe ID, starting with cs_.
Payment pageURLThe Stripe page where the customer pays. Empty once the session expired. May be empty.
StatusTextopen, complete or expired.
Payment statusTextpaid, unpaid or no_payment_required.
Expires atDate and timeWhen the session expires.
TotalWhole numberThe amount in the smallest unit of the currency, for example cents: 1000 is 10.00. May be empty.
CurrencyTextThe currency, for example eur. May be empty.
ReferenceTextThe reference you gave when creating the session. May be empty.
Payment IDIDThe payment (pi_...), once the customer started paying. May be empty.

Creates a link where anyone can pay for one item. Stripe shows its own confirmation page afterwards. Payments through this link also fire the Checkout completed trigger.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Product nameTextYesWhat the customer pays for, shown on the Stripe page. For several products, send one total with a descriptive name. Maximum length: 250 characters.
PriceWhole numberYesThe amount in the smallest unit of the currency, for example cents: 1000 is 10.00. Value: 0 to 99999999.
QuantityWhole numberNoHow many of it, 1 to 999. Empty: 1. Value: 1 to 999. Default: 1.
CurrencyTextYesThe three-letter currency code, for example eur. Length: 3 to 3 characters.
MetadataLookup table of Text to TextNoNotes Stripe stores with it, as name and value pairs, for example an order number. Empty: none.

Outputs

NameTypeDetails
IDIDThe ID, starting with plink_.
LinkURLThe link to pay.
ActiveYes/NoWhether the link can be used.

Create refund​

Refunds a payment, in full or in part. Give the payment ID or the charge ID. Sending the same refund again right away returns the first refund and refunds nothing more. To refund the same amount twice on purpose, change an input.

Inputs

NameTypeRequiredDetails
ConnectionTextNoThe Stripe connection from the Integrations page that this action uses. Maximum length: 64 characters.
Payment IDIDNoThe payment to refund (pi_...). Give this or the charge ID. Maximum length: 255 characters.
Charge IDIDNoThe charge to refund (ch_...). Give this or the payment ID. Maximum length: 255 characters.
AmountWhole numberNoHow much to refund, in the smallest unit of the currency, for example cents. Empty: everything that is left. Value: 1 to 99999999.
ReasonTextNoduplicate, fraudulent or requested_by_customer. Empty: none. Allowed values: duplicate, fraudulent, requested_by_customer.
MetadataLookup table of Text to TextNoNotes Stripe stores with it, as name and value pairs, for example an order number. Empty: none.

Outputs

NameTypeDetails
IDIDThe ID, starting with re_.
StatusTextsucceeded, pending, requires_action, failed or canceled.
AmountWhole numberThe amount in the smallest unit of the currency, for example cents: 1000 is 10.00.
CurrencyTextThe currency, for example eur.
Charge IDIDThe charge that was refunded. May be empty.
Payment IDIDThe payment that was refunded. May be empty.
Need more help?
Can't find what you're looking for? Our team is happy to help.