stripe.prices.create_price ​
Create a Stripe price (one-time or recurring)
Create a price for an existing product.
Omit recurring_interval for a one-time price; set it to day | week | month | year for a subscription price. unit_amount is in the currency's smallest unit — 4990 is R$ 49,90 when currency is "brl".
Acts on the CUSTOMER'S OWN Stripe account, authenticated via the org-scoped Stripe connection selected by cloud_connection_uuid.
Inputs:
- cloud_connection_uuid: Org-scoped Stripe connection (customer's own account).
- product_id: Product this price belongs to.
- unit_amount: Amount in the currency's smallest unit (4990 = R$ 49,90).
- currency: Three-letter ISO currency, e.g. brl or usd.
- recurring_interval: day | week | month | year — omit for one-time (optional).
- recurring_interval_count: Intervals between charges (default: 1) (optional).
- nickname: Internal label for the price (optional).
- metadata: Arbitrary key-value metadata (optional).
Outputs (terminal state_data):
- price_id: str
- product_id: str
- unit_amount: int
- currency: str
- recurring_interval: str
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) |
product_id | string | Yes | — | Product this price belongs to |
unit_amount | integer | Yes | — | Amount in the currency's smallest unit (4990 = R$ 49,90) |
currency | string | Yes | — | Three-letter ISO currency, e.g. brl or usd |
recurring_interval | string | No | — | day |
recurring_interval_count | integer | No | — | Intervals between charges (default: 1) |
nickname | string | No | — | Internal label for the price |
metadata | json | No | — | Arbitrary key-value metadata |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
price_id | string | No | — | — |
product_id | string | No | — | — |
unit_amount | integer | No | — | — |
currency | string | No | — | — |
recurring_interval | string | No | — | — |
cloud_connection_uuid | uuid | No | — | — |
recurring_interval_count | integer | No | — | — |
nickname | string | No | — | — |
metadata | json | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_layer | integer | 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.prices.create_price",
"initial_data": {
"cloud_connection_uuid": "value",
"product_id": "value",
"unit_amount": 123,
"currency": "value"
}
}