Skip to content
Proud to collaborate with Microsoft for Startups

stripe.refunds.create_refund ​

Issue a refund for a Stripe charge or PaymentIntent

Issue a refund for a Stripe charge or PaymentIntent.

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

Supply either charge_id or payment_intent_id. If amount is omitted the full charge is refunded.

Inputs:

  • cloud_connection_uuid: Org-scoped Stripe connection UUID (required).
  • charge_id: Stripe charge ID to refund (optional, e.g. ch_ABC123).
  • payment_intent_id: PaymentIntent ID to refund (optional, e.g. pi_ABC123).
  • amount: Amount to refund in smallest currency unit (optional, default: full refund).
  • reason: duplicate | fraudulent | requested_by_customer (optional).
  • metadata: Arbitrary key-value metadata (optional).

Outputs (terminal state_data):

  • refund_id: str — Stripe refund ID (re_...)
  • amount: int — refunded amount in smallest currency unit
  • status: str — pending | succeeded | failed | cancelled
  • currency: str

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)
charge_idstringNo—Stripe charge ID, e.g. ch_ABC123
payment_intent_idstringNo—Stripe PaymentIntent ID, e.g. pi_ABC123
amountintegerNo—Amount in smallest currency unit (default: full refund)
reasonstringNo—duplicate
metadatajsonNo—Arbitrary key-value metadata

Output Schema ​

FieldTypeRequiredDefaultDescription
amountintegerNo——
currencystringNo——
refund_idstringNo——
statusstringNo——
cloud_connection_uuiduuidNo——
charge_idstringNo——
metadatajsonNo——
payment_intent_idstringNo——
reasonstringNo——
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.refunds.create_refund",
  "initial_data": {
    "cloud_connection_uuid": "value"
  }
}