Skip to content
Proud to collaborate with Microsoft for Startups

stripe.payment_intents.create_intent ​

Create a Stripe PaymentIntent for one-time payment

Create a Stripe PaymentIntent to collect a one-time payment.

Acts on the CUSTOMER'S OWN Stripe account, authenticated via the org-scoped Stripe connection selected by cloud_connection_uuid.

The PaymentIntent must be confirmed on the client side (e.g. via Stripe.js) or server-side if a payment method is attached.

Inputs:

  • cloud_connection_uuid: Org-scoped Stripe connection UUID (required).
  • amount: Amount in the smallest currency unit, e.g. cents (required).
  • currency: Three-letter ISO currency code, e.g. usd (required).
  • customer_id: Stripe customer ID to attach the intent to (optional).
  • payment_method_id: Payment method ID to attach (optional).
  • description: Internal description (optional).
  • metadata: Arbitrary key-value metadata (optional).

Outputs (terminal state_data):

  • payment_intent_id: str — Stripe PaymentIntent ID (pi_...)
  • client_secret: str — client secret for front-end confirmation
  • status: str — PaymentIntent status

Connection required: cloud_connection_uuid — the organization's own Stripe account credentials; there is no platform-key fallback.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-stripe
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuiduuidYes—Org-scoped Stripe connection (customer's own account)
amountintegerYes—Amount in smallest currency unit (e.g. cents)
currencystringYes—Three-letter ISO currency code, e.g. usd
customer_idstringNo—Stripe customer ID
payment_method_idstringNo—Payment method ID to attach
descriptionstringNo—Internal description
metadatajsonNo—Arbitrary key-value metadata

Output Schema ​

FieldTypeRequiredDefaultDescription
client_secretstringNo——
payment_intent_idstringNo——
statusstringNo——
cloud_connection_uuiduuidNo——
amountintegerNo——
currencystringNo——
customer_idstringNo——
descriptionstringNo——
metadatajsonNo——
payment_method_idstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "stripe.payment_intents.create_intent",
  "initial_data": {
    "cloud_connection_uuid": "value",
    "amount": 123,
    "currency": "value"
  }
}