Stripe · Arazzo Workflow

Stripe Checkout Session and Line Items

Version 1.0.0

Create a hosted Checkout Session, retrieve it, then list its line items.

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

Provider

stripe

Workflows

checkout-session-and-lineitems
Create a Checkout Session and inspect its line items.
Creates a hosted Checkout Session for the supplied price and quantity, retrieves the session to confirm its URL, then lists the line items on the session.
3 steps inputs: mode, price, quantity, successUrl outputs: lineItems, sessionId, url
1
createSession
Create a hosted Checkout Session for the supplied price.
2
getSession
Retrieve the session to confirm its hosted URL and status.
3
listLineItems
List the line items attached to the checkout session.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Checkout Session and Line Items
  summary: Create a hosted Checkout Session, retrieve it, then list its line items.
  description: >-
    The hosted-checkout provisioning pattern. The workflow creates a Checkout
    Session for a price, retrieves the session to obtain its hosted payment URL,
    then lists the line items attached to the session. 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
sourceDescriptions:
- name: getApi
  url: ../openapi/stripe-get-api-openapi.yml
  type: openapi
- name: postApi
  url: ../openapi/stripe-post-api-openapi.yml
  type: openapi
workflows:
- workflowId: checkout-session-and-lineitems
  summary: Create a Checkout Session and inspect its line items.
  description: >-
    Creates a hosted Checkout Session for the supplied price and quantity,
    retrieves the session to confirm its URL, then lists the line items on the
    session.
  inputs:
    type: object
    required:
    - price
    - successUrl
    properties:
      price:
        type: string
        description: ID of the price to sell through checkout.
      quantity:
        type: integer
        description: Quantity of the line item (defaults to 1 if omitted).
      mode:
        type: string
        description: Checkout mode (payment, subscription, or setup).
      successUrl:
        type: string
        description: URL to redirect to after a successful checkout.
  steps:
  - stepId: createSession
    description: Create a hosted Checkout Session for the supplied price.
    operationId: postCheckoutSessions
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        mode: $inputs.mode
        success_url: $inputs.successUrl
        line_items:
        - price: $inputs.price
          quantity: $inputs.quantity
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      sessionId: $response.body#/id
      url: $response.body#/url
  - stepId: getSession
    description: Retrieve the session to confirm its hosted URL and status.
    operationId: getCheckoutSessionsSession
    parameters:
    - name: session
      in: path
      value: $steps.createSession.outputs.sessionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      paymentStatus: $response.body#/payment_status
  - stepId: listLineItems
    description: List the line items attached to the checkout session.
    operationId: getCheckoutSessionsSessionLineItems
    parameters:
    - name: session
      in: path
      value: $steps.createSession.outputs.sessionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      lineItems: $response.body#/data
  outputs:
    sessionId: $steps.createSession.outputs.sessionId
    url: $steps.createSession.outputs.url
    lineItems: $steps.listLineItems.outputs.lineItems

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-checkout-session-and-lineitems-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.