---
title: Puts the catalog entry warehouse inventory.
slug: commerce-connect-15/service-api/ddFV-puts-the-catalog-entry-warehouse-inventory
docTags: 
createdAt: 2026-10-09T17:33:31.916Z
---

{
  "id": "s1D9F_NmgIltrokzjhmEw",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "/episerverapi/commerce/entries/{entryCode}/inventories/{warehouseCode}",
    "servers": [],
    "name": "Puts the catalog entry warehouse inventory.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "warehouseCode",
          "type": "string",
          "description": "The warehouse code."
        },
        {
          "kind": "required",
          "name": "entryCode",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "entryCode",
          "type": "string",
          "description": "The entry code."
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "The warehouse inventory.",
          "customType": "WarehouseInventory",
          "schema": [
            {
              "name": "catalogEntryCode",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets the catalog entry key."
            },
            {
              "name": "warehouseCode",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Represents the unique warehouse code."
            },
            {
              "name": "warehouseLink",
              "kind": "optional",
              "type": "object",
              "description": "Class that represents linkage and more information about models.",
              "modelRef": "#/components/schemas/ResourceLink",
              "customType": "ResourceLink",
              "schema": [
                {
                  "name": "title",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the title."
                },
                {
                  "name": "type",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the type."
                },
                {
                  "name": "href",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the uri."
                },
                {
                  "name": "properties",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Gets or sets the properties.",
                  "modelRef": "#/components/schemas/NameValue",
                  "customType": "NameValue[]",
                  "schema": [
                    {
                      "name": "name",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the name."
                    },
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the type."
                    }
                  ]
                }
              ]
            },
            {
              "name": "inStockQuantity",
              "kind": "optional",
              "type": "number<double>",
              "description": "<p>Represents the inventory's in-stock quantity.</p>",
              "format": "double"
            },
            {
              "name": "reservedQuantity",
              "kind": "optional",
              "type": "number<double>",
              "description": "Represents the inventory's reserved quantity.",
              "format": "double"
            },
            {
              "name": "reorderMinQuantity",
              "kind": "optional",
              "type": "number<double>",
              "description": "<p>Represents the inventory's minimum re-order quantity.</p>",
              "format": "double"
            },
            {
              "name": "preorderQuantity",
              "kind": "optional",
              "type": "number<double>",
              "description": "<p>Represents the inventory's pre-order quantity.</p>",
              "format": "double"
            },
            {
              "name": "backorderQuantity",
              "kind": "optional",
              "type": "number<double>",
              "description": "Represents the inventory's backorder quantity.",
              "format": "double"
            },
            {
              "name": "allowBackorder",
              "kind": "optional",
              "type": "boolean",
              "description": "Represents whether to allow backorders."
            },
            {
              "name": "allowPreorder",
              "kind": "optional",
              "type": "boolean",
              "description": "<p>Represents whether to allow pre-orders.</p>"
            },
            {
              "name": "inventoryStatus",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Indicates whether or not current inventory amount is used in determining if an order can be completed."
            },
            {
              "name": "preorderAvailabilityDate",
              "kind": "optional",
              "type": "string<date-time>",
              "nullable": true,
              "description": "<p>Represents the availability date for the inventory's pre-orders.</p>",
              "format": "date-time"
            },
            {
              "name": "backorderAvailabilityDate",
              "kind": "optional",
              "type": "string<date-time>",
              "nullable": true,
              "description": "Represents the availability date for the inventory's backorders.",
              "format": "date-time"
            },
            {
              "name": "purchaseAvailableDate",
              "kind": "optional",
              "type": "string<date-time>",
              "nullable": true,
              "description": "Represents the availability date for the inventory's purchase.",
              "format": "date-time"
            }
          ],
          "modelRef": "#/components/schemas/WarehouseInventory",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "204",
        "description": "The warehouse inventory is saved.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "If the catalog entry warehouse inventory model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If entry or warehouse inventory does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "jD5iIoh_hpW1tYMCbktVg",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url /episerverapi/commerce/entries/{entryCode}/inventories/{warehouseCode} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "lGMZh3VCBIp1SNpY0jlE8",
          "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: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/episerverapi/commerce/entries/{entryCode}/inventories/{warehouseCode}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "irPrnzQtYlXb9oGYY896M",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/entries/{entryCode}/inventories/{warehouseCode}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "0sY7I_a6TvV1ccX9kgbza",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/entries/{entryCode}/inventories/{warehouseCode}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "jD5iIoh_hpW1tYMCbktVg"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success\n"
        },
        {
          "id": "response-1-204",
          "language": "204",
          "code": "// The warehouse inventory is saved.\n"
        },
        {
          "id": "response-2-400",
          "language": "400",
          "code": "// If the catalog entry warehouse inventory model is not valid.\n"
        },
        {
          "id": "response-3-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// If entry or warehouse inventory does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}