Stripe · Arazzo Workflow

Stripe Refund Payment Intent

Version 1.0.0

Confirm a PaymentIntent charge, then refund it via the Refunds API.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub CommerceFinancial-ServicesFintechPaymentsT1ArazzoWorkflows

Provider

stripe

Workflows

refund-payment-intent
Take a payment via a PaymentIntent and then refund it.
Creates and confirms a PaymentIntent to collect funds, then creates a Refund referencing that PaymentIntent for an optional partial amount.
3 steps inputs: amount, currency, paymentMethod, refundAmount outputs: paymentIntentId, refundId, refundStatus
1
createPaymentIntent
Open a PaymentIntent for the requested amount and payment method.
2
confirmPaymentIntent
Confirm the PaymentIntent to collect the funds.
3
refundPayment
Refund the collected PaymentIntent via the Refunds API.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Refund Payment Intent
  summary: Confirm a PaymentIntent charge, then refund it via the Refunds API.
  description: >-
    The modern refund pattern keyed off a PaymentIntent rather than a legacy
    charge. The workflow opens and confirms a PaymentIntent to collect funds,
    then issues a Refund that references the PaymentIntent. Every step spells out
    its form-encoded request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-1340.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-1340.10
      capability_name: Payment Initiation Management
      spec: stripe-intents-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: confirmApi
  url: ../openapi/stripe-confirm-api-openapi.yml
  type: openapi
- name: intentsApi
  url: ../openapi/stripe-intents-api-openapi.yml
  type: openapi
- name: refundsApi
  url: ../openapi/stripe-refunds-api-openapi.yml
  type: openapi
workflows:
- workflowId: refund-payment-intent
  summary: Take a payment via a PaymentIntent and then refund it.
  description: >-
    Creates and confirms a PaymentIntent to collect funds, then creates a Refund
    referencing that PaymentIntent for an optional partial amount.
  inputs:
    type: object
    required:
    - amount
    - currency
    - paymentMethod
    properties:
      amount:
        type: integer
        description: Amount to charge in the smallest currency unit.
      currency:
        type: string
        description: Three-letter ISO currency code.
      paymentMethod:
        type: string
        description: ID of the PaymentMethod to charge.
      refundAmount:
        type: integer
        description: Optional amount to refund; omit to refund the full payment.
  steps:
  - stepId: createPaymentIntent
    description: Open a PaymentIntent for the requested amount and payment method.
    operationId: postPaymentIntents
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        amount: $inputs.amount
        currency: $inputs.currency
        payment_method: $inputs.paymentMethod
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      paymentIntentId: $response.body#/id
  - stepId: confirmPaymentIntent
    description: Confirm the PaymentIntent to collect the funds.
    operationId: postPaymentIntentsIntentConfirm
    parameters:
    - name: intent
      in: path
      value: $steps.createPaymentIntent.outputs.paymentIntentId
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        payment_method: $inputs.paymentMethod
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
  - stepId: refundPayment
    description: Refund the collected PaymentIntent via the Refunds API.
    operationId: PostRefunds
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        payment_intent: $steps.createPaymentIntent.outputs.paymentIntentId
        amount: $inputs.refundAmount
        reason: requested_by_customer
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      refundId: $response.body#/id
      refundStatus: $response.body#/status
  outputs:
    paymentIntentId: $steps.createPaymentIntent.outputs.paymentIntentId
    refundId: $steps.refundPayment.outputs.refundId
    refundStatus: $steps.refundPayment.outputs.refundStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/stripe-refund-payment-intent-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.