Stripe · Arazzo Workflow

Stripe Create Customer and Pay

Version 1.0.0

Create a customer, open a PaymentIntent for them, then confirm it to take payment.

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

Provider

stripe

Workflows

create-customer-and-pay
Create a customer and immediately charge them via a confirmed PaymentIntent.
Creates a Customer, opens a PaymentIntent bound to that customer for the requested amount and currency, then confirms the PaymentIntent with the supplied payment method to attempt collection.
3 steps inputs: amount, currency, email, name, paymentMethod outputs: customerId, paymentIntentId, status
1
createCustomer
Create the Customer that the payment will be associated with.
2
createPaymentIntent
Open a PaymentIntent attached to the new customer and payment method for the requested amount.
3
confirmPaymentIntent
Confirm the PaymentIntent to attempt the charge.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Create Customer and Pay
  summary: Create a customer, open a PaymentIntent for them, then confirm it to take payment.
  description: >-
    The canonical Stripe one-off payment pattern for a brand new customer. The
    workflow first creates a Customer record, then opens a PaymentIntent that is
    attached to that customer and a supplied payment method, and finally confirms
    the PaymentIntent to attempt the charge. 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.85
    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: postApi
  url: ../openapi/stripe-post-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-customer-and-pay
  summary: Create a customer and immediately charge them via a confirmed PaymentIntent.
  description: >-
    Creates a Customer, opens a PaymentIntent bound to that customer for the
    requested amount and currency, then confirms the PaymentIntent with the
    supplied payment method to attempt collection.
  inputs:
    type: object
    required:
    - email
    - amount
    - currency
    - paymentMethod
    properties:
      email:
        type: string
        description: Email address for the new customer.
      name:
        type: string
        description: Display name for the new customer.
      amount:
        type: integer
        description: Amount to charge in the smallest currency unit (e.g. cents).
      currency:
        type: string
        description: Three-letter ISO currency code (e.g. usd).
      paymentMethod:
        type: string
        description: ID of an existing PaymentMethod to charge (e.g. pm_card_visa).
  steps:
  - stepId: createCustomer
    description: Create the Customer that the payment will be associated with.
    operationId: postCustomers
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        email: $inputs.email
        name: $inputs.name
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customerId: $response.body#/id
  - stepId: createPaymentIntent
    description: >-
      Open a PaymentIntent attached to the new customer and payment method for
      the requested amount.
    operationId: postPaymentIntents
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        amount: $inputs.amount
        currency: $inputs.currency
        customer: $steps.createCustomer.outputs.customerId
        payment_method: $inputs.paymentMethod
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      paymentIntentId: $response.body#/id
      status: $response.body#/status
  - stepId: confirmPaymentIntent
    description: Confirm the PaymentIntent to attempt the charge.
    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
      amountReceived: $response.body#/amount_received
  outputs:
    customerId: $steps.createCustomer.outputs.customerId
    paymentIntentId: $steps.createPaymentIntent.outputs.paymentIntentId
    status: $steps.confirmPaymentIntent.outputs.status

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-create-customer-and-pay-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.