Swell · Arazzo Workflow

Swell Create and Verify Product

Version 1.0.0

Create a product in the catalog and immediately retrieve it to confirm it was stored.

1 workflow 1 source API 1 provider
View Spec View on GitHub CommerceHeadless CommerceAPI-FirstB2CB2BSubscriptionMarketplacesWholesaleStorefrontCheckoutPaymentsCartOrderCatalogInternationalizationArazzoWorkflows

Provider

swell-io

Workflows

create-and-verify-product
Create a product, then fetch it back by id.
Posts a new product to the catalog and reads it back by the returned id so the caller can confirm the stored representation.
2 steps inputs: active, description, name, price, sku, stock_level outputs: name, productId, productSlug, sku
1
createProductStep
Create the product in the catalog with the supplied name, sku, price and stock attributes.
2
getProductStep
Read the newly created product back by its generated id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Swell Create and Verify Product
  summary: Create a product in the catalog and immediately retrieve it to confirm it was stored.
  description: >-
    The foundational catalog write pattern for a Swell store. The workflow
    creates a product with the required name and sku fields plus pricing and
    stock attributes, captures the generated object id, and then reads the
    product back by that id to confirm it persisted exactly as written. Each
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: productsApi
  url: ../openapi/swell-io-products-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-and-verify-product
  summary: Create a product, then fetch it back by id.
  description: >-
    Posts a new product to the catalog and reads it back by the returned id so
    the caller can confirm the stored representation.
  inputs:
    type: object
    required:
    - name
    - sku
    properties:
      name:
        type: string
        description: Display name of the product.
      sku:
        type: string
        description: Stock keeping unit, unique per product.
      price:
        type: number
        description: List price in store currency.
      description:
        type: string
        description: Long-form product description.
      active:
        type: boolean
        description: Whether the product is available for sale.
      stock_level:
        type: integer
        description: Initial on-hand stock quantity.
  steps:
  - stepId: createProductStep
    description: >-
      Create the product in the catalog with the supplied name, sku, price and
      stock attributes.
    operationId: createProduct
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.name
        sku: $inputs.sku
        price: $inputs.price
        description: $inputs.description
        active: $inputs.active
        stock_level: $inputs.stock_level
        stock_tracking: true
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      productId: $response.body#/id
      productSlug: $response.body#/slug
  - stepId: getProductStep
    description: Read the newly created product back by its generated id.
    operationId: getProduct
    parameters:
    - name: id
      in: path
      value: $steps.createProductStep.outputs.productId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      productId: $response.body#/id
      name: $response.body#/name
      sku: $response.body#/sku
      price: $response.body#/price
  outputs:
    productId: $steps.getProductStep.outputs.productId
    productSlug: $steps.createProductStep.outputs.productSlug
    name: $steps.getProductStep.outputs.name
    sku: $steps.getProductStep.outputs.sku

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/swell-io-create-product-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.