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 ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-stripe |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | Org-scoped Stripe connection (customer's own account) |
amount | integer | Yes | — | Amount in smallest currency unit (e.g. cents) |
currency | string | Yes | — | Three-letter ISO currency code, e.g. usd |
customer_id | string | No | — | Stripe customer ID |
payment_method_id | string | No | — | Payment method ID to attach |
description | string | No | — | Internal description |
metadata | json | No | — | Arbitrary key-value metadata |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
client_secret | string | No | — | — |
payment_intent_id | string | No | — | — |
status | string | No | — | — |
cloud_connection_uuid | uuid | No | — | — |
amount | integer | No | — | — |
currency | string | No | — | — |
customer_id | string | No | — | — |
description | string | No | — | — |
metadata | json | No | — | — |
payment_method_id | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
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"
}
}