Shopify Connects API

The Connects API from Shopify — 6 operation(s) for connects.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /admin/api/2020-01/inventory_levels/connect.json Stock an inventory item at a location (2020-01) · Shopify Connects An Inventory Item To A Location By Creating An Inventory Level… #
Ask an LLM
“How do I start tracking an inventory item at a new location on the 2020-01 API?”
“Can connecting an item to a location relocate stock from a fulfillment service location in 2020-01?”
Tell an agent
Connect inventory item {item} to location {location} using the 2020-01 API.
Link item {item} to location {location} with relocate_if_necessary set to {relocate}, version 2020-01.
POST /admin/api/2020-04/inventory_levels/connect.json Stock an inventory item at a location (2020-04) · Shopify Connects An Inventory Item To A Location By Creating An Inventory Level… #
Ask an LLM
“Which 2020-04 call creates an inventory level so an item can be stocked at a location?”
“Is connecting an inventory item to a location supported in the 2020-04 release?”
Tell an agent
Create an inventory level for item {item} at location {location} on 2020-04.
Connect item {item} to location {location} and relocate if needed ({relocate}) via the 2020-04 release.
POST /admin/api/2020-07/inventory_levels/connect.json Stock an inventory item at a location (2020-07) · Shopify Connects An Inventory Item To A Location By Creating An Inventory Level… #
Ask an LLM
“Where do I connect an inventory item to a location in version 2020-07?”
“When does the relocate option matter for connecting stock in 2020-07?”
Tell an agent
Attach inventory item {item} to location {location} through the 2020-07 version.
Connect {item} at location {location}, relocate_if_necessary {relocate}, with 2020-07.
POST /admin/api/2020-10/inventory_levels/connect.json Stock an inventory item at a location (2020-10) · Shopify Connects An Inventory Item To A Location By Creating An Inventory Level… #
Ask an LLM
“How can I make a product variant stockable at another warehouse using the 2020-10 API?”
“Does the 2020-10 Admin API let me connect an inventory item to a location?”
Tell an agent
Connect inventory item {item} to location {location} with the 2020-10 Admin API.
Start stocking item {item} at location {location}, relocating if necessary: {relocate}, API 2020-10.
POST /admin/api/2021-01/inventory_levels/connect.json Stock an inventory item at a location (2021-01) · Shopify Connects An Inventory Item To A Location By Creating An Inventory Level… #
Ask an LLM
“Can I connect an inventory item to a location using the 2021-01 release?”
“Which 2021-01 endpoint creates an inventory level for an item and location?”
Tell an agent
Using 2021-01, connect item {item} to location {location}.
On the 2021-01 release, create inventory level for {item} at {location} with relocate {relocate}.
POST /admin/api/unstable/inventory_levels/connect.json Stock an inventory item at a location (unstable) · Shopify Connects An Inventory Item To A Location By Creating An Inventory Level… #
Ask an LLM
“Is connecting an inventory item to a location available on the unstable API?”
“How would I create an inventory level against the unstable version?”
Tell an agent
Connect inventory item {item} to location {location} on the unstable API.
On the unstable version, link {item} to location {location} with relocation {relocate}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/shopify-connects-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

shopify-connects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shopify Connects API
  description: Explore Shopify's API reference and templating documentation. Shopify provides a range of software tools, app templates, example apps, and libraries to accelerate your development process. The Admin API lets you build apps and integrations that extend and enhance the Shopify admin.
  version: 2020-10
tags:
- name: Connects
paths:
  /admin/api/2020-01/inventory_levels/connect.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connect an inventory item to a location
              example2:
                value:
                  location_id: 123
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a non-existent location fails and returns an error
              example3:
                value:
                  location_id: 48752903
                  inventory_item_id: 808950810
                summary: 'Connecting an inventory item to a fulfillment service location without "relocate_if_necessary": true fails with a 422 error'
              example4:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a location when the store hasn't enabled multiple locations fails with a 403 error
      summary: Shopify Connects An Inventory Item To A Location By Creating An Inventory Level…
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-2020-01
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID of the inventory item.
        schema: {}
        required: false
      - in: query
        name: "location_id\n                  required"
        description: The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
        schema: {}
        required: false
      - in: query
        name: relocate_if_necessary
        description: "Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Connects
      responses:
        '200':
          description: ''
      operationId: deprecated_202001_create_inventory_levels_connect
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-04/inventory_levels/connect.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connect an inventory item to a location
              example2:
                value:
                  location_id: 123
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a non-existent location fails and returns an error
              example3:
                value:
                  location_id: 48752903
                  inventory_item_id: 808950810
                summary: 'Connecting an inventory item to a fulfillment service location without "relocate_if_necessary": true fails with a 422 error'
              example4:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a location when the store hasn't enabled multiple locations fails with a 403 error
      summary: Shopify Connects An Inventory Item To A Location By Creating An Inventory Level…
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-2020-04
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID of the inventory item.
        schema: {}
        required: false
      - in: query
        name: "location_id\n                  required"
        description: The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
        schema: {}
        required: false
      - in: query
        name: relocate_if_necessary
        description: "Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Connects
      responses:
        '200':
          description: ''
      operationId: deprecated_202004_create_inventory_levels_connect
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-07/inventory_levels/connect.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connect an inventory item to a location
              example2:
                value:
                  location_id: 123
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a non-existent location fails and returns an error
              example3:
                value:
                  location_id: 48752903
                  inventory_item_id: 808950810
                summary: 'Connecting an inventory item to a fulfillment service location without "relocate_if_necessary": true fails with a 422 error'
              example4:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a location when the store hasn't enabled multiple locations fails with a 403 error
      summary: Shopify Connects An Inventory Item To A Location By Creating An Inventory Level…
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-2020-07
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID of the inventory item.
        schema: {}
        required: false
      - in: query
        name: "location_id\n                  required"
        description: The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
        schema: {}
        required: false
      - in: query
        name: relocate_if_necessary
        description: "Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Connects
      responses:
        '200':
          description: ''
      operationId: deprecated_202007_create_inventory_levels_connect
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-10/inventory_levels/connect.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connect an inventory item to a location
              example2:
                value:
                  location_id: 123
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a non-existent location fails and returns an error
              example3:
                value:
                  location_id: 48752903
                  inventory_item_id: 808950810
                summary: 'Connecting an inventory item to a fulfillment service location without "relocate_if_necessary": true fails with a 422 error'
              example4:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a location when the store hasn't enabled multiple locations fails with a 403 error
      summary: Shopify Connects An Inventory Item To A Location By Creating An Inventory Level…
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-2020-10
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID of the inventory item.
        schema: {}
        required: false
      - in: query
        name: "location_id\n                  required"
        description: The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
        schema: {}
        required: false
      - in: query
        name: relocate_if_necessary
        description: "Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Connects
      responses:
        '200':
          description: ''
      operationId: create_inventory_levels_connect
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2021-01/inventory_levels/connect.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connect an inventory item to a location
              example2:
                value:
                  location_id: 123
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a non-existent location fails and returns an error
              example3:
                value:
                  location_id: 48752903
                  inventory_item_id: 808950810
                summary: 'Connecting an inventory item to a fulfillment service location without "relocate_if_necessary": true fails with a 422 error'
              example4:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a location when the store hasn't enabled multiple locations fails with a 403 error
      summary: Shopify Connects An Inventory Item To A Location By Creating An Inventory Level…
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-2021-01
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID of the inventory item.
        schema: {}
        required: false
      - in: query
        name: "location_id\n                  required"
        description: The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
        schema: {}
        required: false
      - in: query
        name: relocate_if_necessary
        description: "Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Connects
      responses:
        '200':
          description: ''
      operationId: deprecated_202101_create_inventory_levels_connect
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/unstable/inventory_levels/connect.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connect an inventory item to a location
              example2:
                value:
                  location_id: 123
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a non-existent location fails and returns an error
              example3:
                value:
                  location_id: 48752903
                  inventory_item_id: 808950810
                summary: 'Connecting an inventory item to a fulfillment service location without "relocate_if_necessary": true fails with a 422 error'
              example4:
                value:
                  location_id: 192722535
                  inventory_item_id: 457924702
                summary: Connecting an inventory item to a location when the store hasn't enabled multiple locations fails with a 403 error
      summary: Shopify Connects An Inventory Item To A Location By Creating An Inventory Level…
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#connect-unstable
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID of the inventory item.
        schema: {}
        required: false
      - in: query
        name: "location_id\n                  required"
        description: The ID of the location that the inventory level belongs to. To find the ID of the location, use the Location resource.
        schema: {}
        required: false
      - in: query
        name: relocate_if_necessary
        description: "Whether inventory for any previously connected locations will be relocated. This property is ignored when no fulfillment service location is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Connects
      responses:
        '200':
          description: ''
      operationId: deprecated_unstable_create_inventory_levels_connect
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true