Shopify · Arazzo Workflow

Shopify Create Collection With a Product

Version 1.0.0

Create a custom collection, confirm a product, then read the collection back.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub CommerceE-CommercePaymentsRetailShopping CartT1ArazzoWorkflows

Provider

shopify

Workflows

create-collection-with-product
Create a custom collection and confirm the product intended for it.
Creates a custom collection, confirms the target product exists, and reads the collection back for its identifier and handle.
3 steps inputs: bodyHtml, productId, published, title outputs: collection, collectionId, handle, productId
1
createCollection
Create the custom (manual) collection with its title and description.
2
confirmProduct
Confirm the product intended for the collection exists before the collection is reported as ready.
3
getCollection
Read the collection back so callers receive its full record.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Shopify Create Collection With a Product
  summary: Create a custom collection, confirm a product, then read the collection back.
  description: >-
    Stands up a manual (custom) collection for merchandising. The workflow
    creates the custom collection, confirms that the product intended for it
    exists, and reads the collection back so the caller receives its identifier
    and handle. Because the published REST description used here does not expose
    a write endpoint for adding a product to a custom collection, the product is
    confirmed rather than attached, and that adaptation is noted. Every step
    spells out its 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-2370.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-2370.10
      capability_name: Item Master Data Management
      spec: shopify-products-api-openapi.yml
      confidence: 0.82
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: collectionsApi
  url: ../openapi/shopify-collections-api-openapi.yml
  type: openapi
- name: customCollectionsApi
  url: ../openapi/shopify-custom-collections-api-openapi.yml
  type: openapi
- name: productsApi
  url: ../openapi/shopify-products-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-collection-with-product
  summary: Create a custom collection and confirm the product intended for it.
  description: >-
    Creates a custom collection, confirms the target product exists, and reads
    the collection back for its identifier and handle.
  inputs:
    type: object
    required:
    - title
    - productId
    properties:
      title:
        type: string
        description: The collection title.
      bodyHtml:
        type: string
        description: The collection description in HTML.
      productId:
        type: integer
        description: The product intended to be merchandised in the collection.
      published:
        type: boolean
        description: Whether the collection is published to the online store.
        default: true
  steps:
  - stepId: createCollection
    description: Create the custom (manual) collection with its title and description.
    operationId: createCustomCollection
    requestBody:
      contentType: application/json
      payload:
        custom_collection:
          title: $inputs.title
          body_html: $inputs.bodyHtml
          published: $inputs.published
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      collectionId: $response.body#/custom_collection/id
      handle: $response.body#/custom_collection/handle
  - stepId: confirmProduct
    description: >-
      Confirm the product intended for the collection exists before the
      collection is reported as ready.
    operationId: getProduct
    parameters:
    - name: product_id
      in: path
      value: $inputs.productId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      productId: $response.body#/product/id
  - stepId: getCollection
    description: Read the collection back so callers receive its full record.
    operationId: getCollection
    parameters:
    - name: collection_id
      in: path
      value: $steps.createCollection.outputs.collectionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      collection: $response.body#/collection
  outputs:
    collectionId: $steps.createCollection.outputs.collectionId
    handle: $steps.createCollection.outputs.handle
    productId: $steps.confirmProduct.outputs.productId
    collection: $steps.getCollection.outputs.collection

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/shopify-create-collection-with-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.