Shopify · Arazzo Workflow

Shopify Update an Inventory Item Cost

Version 1.0.0

Read an inventory item, update its unit cost and tracking flag, then read it back.

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

Provider

shopify

Workflows

update-inventory-item-cost
Update an inventory item's unit cost and tracking flag, confirming the result.
Confirms the inventory item, updates its cost and tracked flag, and reads it back to confirm.
3 steps inputs: cost, inventoryItemId, tracked outputs: cost, inventoryItem, inventoryItemId
1
getItem
Read the inventory item to confirm it exists before updating.
2
updateItem
Update the inventory item's unit cost and tracking flag.
3
confirmItem
Read the inventory item back to confirm the updated cost.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Shopify Update an Inventory Item Cost
  summary: Read an inventory item, update its unit cost and tracking flag, then read it back.
  description: >-
    Keeps cost-of-goods data accurate for an inventory item. The workflow reads
    the inventory item to confirm it exists, updates its unit cost and whether it
    is inventory-tracked, and reads it back so the caller can confirm the change.
    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-530
  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-530
      capability_name: Inventory Management
      spec: shopify-inventory-items-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: inventoryItemsApi
  url: ../openapi/shopify-inventory-items-api-openapi.yml
  type: openapi
workflows:
- workflowId: update-inventory-item-cost
  summary: Update an inventory item's unit cost and tracking flag, confirming the result.
  description: >-
    Confirms the inventory item, updates its cost and tracked flag, and reads it
    back to confirm.
  inputs:
    type: object
    required:
    - inventoryItemId
    - cost
    properties:
      inventoryItemId:
        type: integer
        description: The inventory item ID to update.
      cost:
        type: string
        description: The unit cost as a decimal string (e.g. "12.50").
      tracked:
        type: boolean
        description: Whether Shopify should track inventory for this item.
        default: true
  steps:
  - stepId: getItem
    description: Read the inventory item to confirm it exists before updating.
    operationId: getInventoryItem
    parameters:
    - name: inventory_item_id
      in: path
      value: $inputs.inventoryItemId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      inventoryItemId: $response.body#/inventory_item/id
  - stepId: updateItem
    description: Update the inventory item's unit cost and tracking flag.
    operationId: updateInventoryItem
    parameters:
    - name: inventory_item_id
      in: path
      value: $steps.getItem.outputs.inventoryItemId
    requestBody:
      contentType: application/json
      payload:
        inventory_item:
          cost: $inputs.cost
          tracked: $inputs.tracked
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      cost: $response.body#/inventory_item/cost
  - stepId: confirmItem
    description: Read the inventory item back to confirm the updated cost.
    operationId: getInventoryItem
    parameters:
    - name: inventory_item_id
      in: path
      value: $inputs.inventoryItemId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      cost: $response.body#/inventory_item/cost
      tracked: $response.body#/inventory_item/tracked
      inventoryItem: $response.body#/inventory_item
  outputs:
    inventoryItemId: $steps.getItem.outputs.inventoryItemId
    cost: $steps.confirmItem.outputs.cost
    inventoryItem: $steps.confirmItem.outputs.inventoryItem

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-update-inventory-item-cost-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.