---
title: Gets all the warehouses.
slug: commerce-connect-15/service-api/Ialb-gets-all-the-warehouses
docTags: 
createdAt: 2026-10-09T17:33:31.916Z
---

{
  "id": "X0XaEiPdB5NsbinWETy18",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "http://localhost:64424/episerverapi/commerce/warehouses",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/warehouses"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/warehouses"
      }
    ],
    "name": "Gets all the warehouses.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Return the warehouses.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.Warehouse[]",
            "schema": [
              {
                "name": "Name",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the name."
              },
              {
                "name": "IsActive",
                "kind": "optional",
                "type": "boolean",
                "description": "Gets or sets a value indicating whether this instance is active."
              },
              {
                "name": "IsPrimary",
                "kind": "optional",
                "type": "boolean",
                "description": "Gets or sets a value indicating whether this instance is primary."
              },
              {
                "name": "SortOrder",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the sort order.",
                "format": "int32"
              },
              {
                "name": "Code",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the code."
              },
              {
                "name": "FulfillmentPriorityOrder",
                "kind": "optional",
                "type": "integer<int32>",
                "description": "Gets or sets the fulfillment priority order.",
                "format": "int32"
              },
              {
                "name": "IsFulfillmentCenter",
                "kind": "optional",
                "type": "boolean",
                "description": "Gets or sets a value indicating whether this instance is fulfillment center."
              },
              {
                "name": "IsPickupLocation",
                "kind": "optional",
                "type": "boolean",
                "description": "Gets or sets a value indicating whether this instance is pickup location."
              },
              {
                "name": "IsDeliveryLocation",
                "kind": "optional",
                "type": "boolean",
                "description": "Gets or sets a value indicating whether this instance is delivery location."
              },
              {
                "name": "FirstName",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the first name."
              },
              {
                "name": "LastName",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the last name."
              },
              {
                "name": "Organization",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the organization."
              },
              {
                "name": "Line1",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the line1."
              },
              {
                "name": "Line2",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the line2."
              },
              {
                "name": "City",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the city."
              },
              {
                "name": "State",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the state."
              },
              {
                "name": "CountryCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the country code."
              },
              {
                "name": "CountryName",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the name of the country."
              },
              {
                "name": "PostalCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the postal code."
              },
              {
                "name": "RegionCode",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the region code."
              },
              {
                "name": "RegionName",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the name of the region."
              },
              {
                "name": "DaytimePhoneNumber",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the daytime phone number."
              },
              {
                "name": "EveningPhoneNumber",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the evening phone number."
              },
              {
                "name": "FaxNumber",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the fax number."
              },
              {
                "name": "Email",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the email."
              }
            ],
            "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.Warehouse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "Sk9Ef2p9uszqvig5mvbY8",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url http://localhost:64424/episerverapi/commerce/warehouses \\\n     --header 'accept: application/json'"
        },
        {
          "id": "QarZKzgAu7vLg1iQbqPqP",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/warehouses\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "onhUgy-0jNf-0452OsTtN",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/warehouses\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "9yVHm_vT-H9-J0nW7t8Ln",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/warehouses\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "Sk9Ef2p9uszqvig5mvbY8"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Return the warehouses.\n[\n  {\n    \"Name\": \"\",\n    \"IsActive\": false,\n    \"IsPrimary\": false,\n    \"SortOrder\": \"\",\n    \"Code\": \"\",\n    \"FulfillmentPriorityOrder\": \"\",\n    \"IsFulfillmentCenter\": false,\n    \"IsPickupLocation\": false,\n    \"IsDeliveryLocation\": false,\n    \"FirstName\": \"\",\n    \"LastName\": \"\",\n    \"Organization\": \"\",\n    \"Line1\": \"\",\n    \"Line2\": \"\",\n    \"City\": \"\",\n    \"State\": \"\",\n    \"CountryCode\": \"\",\n    \"CountryName\": \"\",\n    \"PostalCode\": \"\",\n    \"RegionCode\": \"\",\n    \"RegionName\": \"\",\n    \"DaytimePhoneNumber\": \"\",\n    \"EveningPhoneNumber\": \"\",\n    \"FaxNumber\": \"\",\n    \"Email\": \"\"\n  }\n]"
        },
        {
          "id": "response-1-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}