Shopify Sets API

The Sets API from Shopify — 12 operation(s) for sets.

Operations 12

PUT /admin/api/2020-01/customers/{customer_id}/addresses/{address_id}/default.json Shopify Sets The Default Address For A Customer #
PUT /admin/api/2020-04/customers/{customer_id}/addresses/{address_id}/default.json Shopify Sets The Default Address For A Customer #
PUT /admin/api/2020-07/customers/{customer_id}/addresses/{address_id}/default.json Shopify Sets The Default Address For A Customer #
PUT /admin/api/2020-10/customers/{customer_id}/addresses/{address_id}/default.json Shopify Sets The Default Address For A Customer #
PUT /admin/api/2021-01/customers/{customer_id}/addresses/{address_id}/default.json Shopify Sets The Default Address For A Customer #
PUT /admin/api/unstable/customers/{customer_id}/addresses/{address_id}/default.json Shopify Sets The Default Address For A Customer #
POST /admin/api/2020-01/inventory_levels/set.json Shopify Sets The Inventory Level For An Inventory Item At A Location #
POST /admin/api/2020-04/inventory_levels/set.json Shopify Sets The Inventory Level For An Inventory Item At A Location #
POST /admin/api/2020-07/inventory_levels/set.json Shopify Sets The Inventory Level For An Inventory Item At A Location #
POST /admin/api/2020-10/inventory_levels/set.json Shopify Sets The Inventory Level For An Inventory Item At A Location #
POST /admin/api/2021-01/inventory_levels/set.json Shopify Sets The Inventory Level For An Inventory Item At A Location #
POST /admin/api/unstable/inventory_levels/set.json Shopify Sets The Inventory Level For An Inventory Item At A Location #

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-sets-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-sets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shopify Admin REST About Sets API
  description: The Shopify Admin REST API lets you build apps and integrations that extend and enhance the Shopify admin. Access products, customers, orders, inventory, fulfillment, and more. Endpoints are organized by resource type and versioned by release date.
  version: 2025-01
  contact:
    name: Shopify
    url: https://shopify.dev/docs/api/admin-rest
    email: api@shopify.com
  license:
    name: Shopify API Terms
    url: https://www.shopify.com/legal/api-terms
  x-date: '2026-03-04'
servers:
- url: https://{store}.myshopify.com/admin/api/2025-01
  description: Shopify Admin REST API
  variables:
    store:
      default: my-store
      description: The Shopify store subdomain
security:
- AccessToken: []
tags:
- name: Sets
paths:
  /admin/api/2020-01/customers/{customer_id}/addresses/{address_id}/default.json:
    put:
      summary: Shopify Sets The Default Address For A Customer
      description: https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address#default-2020-01
      parameters:
      - in: path
        name: customer_id
        required: true
        schema:
          type: string
        description: customer_id
      - in: path
        name: address_id
        required: true
        schema:
          type: string
        description: address_id
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202001_update_customers_param_customer_id_addresses_param_address_id_default
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-04/customers/{customer_id}/addresses/{address_id}/default.json:
    put:
      summary: Shopify Sets The Default Address For A Customer
      description: https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address#default-2020-04
      parameters:
      - in: path
        name: customer_id
        required: true
        schema:
          type: string
        description: customer_id
      - in: path
        name: address_id
        required: true
        schema:
          type: string
        description: address_id
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202004_update_customers_param_customer_id_addresses_param_address_id_default
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-07/customers/{customer_id}/addresses/{address_id}/default.json:
    put:
      summary: Shopify Sets The Default Address For A Customer
      description: https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address#default-2020-07
      parameters:
      - in: path
        name: customer_id
        required: true
        schema:
          type: string
        description: customer_id
      - in: path
        name: address_id
        required: true
        schema:
          type: string
        description: address_id
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202007_update_customers_param_customer_id_addresses_param_address_id_default
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-10/customers/{customer_id}/addresses/{address_id}/default.json:
    put:
      summary: Shopify Sets The Default Address For A Customer
      description: https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address#default-2020-10
      parameters:
      - in: path
        name: customer_id
        required: true
        schema:
          type: string
        description: customer_id
      - in: path
        name: address_id
        required: true
        schema:
          type: string
        description: address_id
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: update_customers_param_customer_id_addresses_param_address_id_default
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2021-01/customers/{customer_id}/addresses/{address_id}/default.json:
    put:
      summary: Shopify Sets The Default Address For A Customer
      description: https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address#default-2021-01
      parameters:
      - in: path
        name: customer_id
        required: true
        schema:
          type: string
        description: customer_id
      - in: path
        name: address_id
        required: true
        schema:
          type: string
        description: address_id
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202101_update_customers_param_customer_id_addresses_param_address_id_default
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/unstable/customers/{customer_id}/addresses/{address_id}/default.json:
    put:
      summary: Shopify Sets The Default Address For A Customer
      description: https://shopify.dev/docs/admin-api/rest/reference/customers/customer-address#default-unstable
      parameters:
      - in: path
        name: customer_id
        required: true
        schema:
          type: string
        description: customer_id
      - in: path
        name: address_id
        required: true
        schema:
          type: string
        description: address_id
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_unstable_update_customers_param_customer_id_addresses_param_address_id_default
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-01/inventory_levels/set.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 905684977
                  inventory_item_id: 808950810
                  available: 42
                summary: Set the available inventory at a location
              example2:
                value:
                  location_id: 61629186
                  inventory_item_id: 808950810
                  available: 42
                summary: 'Setting an inventory item to a fulfillment service without "disconnect_if_necessary": true fails with a 422 error'
      summary: Shopify Sets The Inventory Level For An Inventory Item At A Location
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-2020-01
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID for 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: "available\n                  required"
        description: Sets the available inventory quantity.
        schema: {}
        required: false
      - in: query
        name: disconnect_if_necessary
        description: "Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service  is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202001_create_inventory_levels_set
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-04/inventory_levels/set.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 905684977
                  inventory_item_id: 808950810
                  available: 42
                summary: Set the available inventory at a location
              example2:
                value:
                  location_id: 61629186
                  inventory_item_id: 808950810
                  available: 42
                summary: 'Setting an inventory item to a fulfillment service without "disconnect_if_necessary": true fails with a 422 error'
      summary: Shopify Sets The Inventory Level For An Inventory Item At A Location
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-2020-04
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID for 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: "available\n                  required"
        description: Sets the available inventory quantity.
        schema: {}
        required: false
      - in: query
        name: disconnect_if_necessary
        description: "Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service  is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202004_create_inventory_levels_set
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-07/inventory_levels/set.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 905684977
                  inventory_item_id: 808950810
                  available: 42
                summary: Set the available inventory at a location
              example2:
                value:
                  location_id: 61629186
                  inventory_item_id: 808950810
                  available: 42
                summary: 'Setting an inventory item to a fulfillment service without "disconnect_if_necessary": true fails with a 422 error'
      summary: Shopify Sets The Inventory Level For An Inventory Item At A Location
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-2020-07
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID for 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: "available\n                  required"
        description: Sets the available inventory quantity.
        schema: {}
        required: false
      - in: query
        name: disconnect_if_necessary
        description: "Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service  is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202007_create_inventory_levels_set
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2020-10/inventory_levels/set.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 905684977
                  inventory_item_id: 808950810
                  available: 42
                summary: Set the available inventory at a location
              example2:
                value:
                  location_id: 61629186
                  inventory_item_id: 808950810
                  available: 42
                summary: 'Setting an inventory item to a fulfillment service without "disconnect_if_necessary": true fails with a 422 error'
      summary: Shopify Sets The Inventory Level For An Inventory Item At A Location
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-2020-10
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID for 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: "available\n                  required"
        description: Sets the available inventory quantity.
        schema: {}
        required: false
      - in: query
        name: disconnect_if_necessary
        description: "Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service  is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: create_inventory_levels_set
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/2021-01/inventory_levels/set.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 905684977
                  inventory_item_id: 808950810
                  available: 42
                summary: Set the available inventory at a location
              example2:
                value:
                  location_id: 61629186
                  inventory_item_id: 808950810
                  available: 42
                summary: 'Setting an inventory item to a fulfillment service without "disconnect_if_necessary": true fails with a 422 error'
      summary: Shopify Sets The Inventory Level For An Inventory Item At A Location
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-2021-01
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID for 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: "available\n                  required"
        description: Sets the available inventory quantity.
        schema: {}
        required: false
      - in: query
        name: disconnect_if_necessary
        description: "Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service  is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_202101_create_inventory_levels_set
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
  /admin/api/unstable/inventory_levels/set.json:
    post:
      requestBody:
        content:
          application/json:
            schema: {}
            examples:
              example1:
                value:
                  location_id: 905684977
                  inventory_item_id: 808950810
                  available: 42
                summary: Set the available inventory at a location
              example2:
                value:
                  location_id: 61629186
                  inventory_item_id: 808950810
                  available: 42
                summary: 'Setting an inventory item to a fulfillment service without "disconnect_if_necessary": true fails with a 422 error'
      summary: Shopify Sets The Inventory Level For An Inventory Item At A Location
      description: https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel#set-unstable
      parameters:
      - in: query
        name: "inventory_item_id\n                  required"
        description: The ID for 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: "available\n                  required"
        description: Sets the available inventory quantity.
        schema: {}
        required: false
      - in: query
        name: disconnect_if_necessary
        description: "Whether inventory for any previously connected locations will be set to 0 and the locations disconnected. This property is ignored when no fulfillment service  is involved. For more information, see Inventory levels and fulfillment service locations.\n                  (default: false)"
        schema: {}
        required: false
      tags:
      - Sets
      responses:
        '200':
          description: ''
      operationId: deprecated_unstable_create_inventory_levels_set
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
components:
  securitySchemes:
    AccessToken:
      type: apiKey
      name: X-Shopify-Access-Token
      in: header
      description: Access token obtained via OAuth