---
agentTools:
  projectIndex: https://sellerapis.snapdeal.com/llms.txt
---

# Post update Inventory for the Product

To change inventory levels of upto 1000 SUPCs

[block:html]
{
  "html": "<div></div>\n<h4>Request</h4>\n<style></style>"
}
[/block]

[block:callout]
{
  "type": "info",
  "body": "In the request body for each update record either send **supc** or **sku**​ not both.",
  "title": "Note"
}
[/block]

List of InventoryFeed objects in the body

InventoryFeed :

[block:parameters]
{
  "data": {
    "h-0": "ParameterName",
    "h-1": "DataType",
    "h-2": "ParameterType",
    "h-3": "Requirement",
    "h-4": "Description",
    "0-0": "supc",
    "0-4": "supc",
    "0-3": "Either supc or sku is Mandatory",
    "0-2": "Body",
    "0-1": "String",
    "1-0": "sku",
    "1-1": "String",
    "1-2": "Body",
    "1-3": "Either supc or sku is Mandatory",
    "1-4": "Seller sku(stock keeping unit)",
    "2-0": "availableInventory",
    "2-1": "Integer",
    "2-2": "Body",
    "2-3": "Mandatory",
    "2-4": "availableInventory"
  },
  "cols": 5,
  "rows": 3
}
[/block]

[block:html]
{
  "html": "<div></div>\n<h4>Response</h4>\n<style></style>"
}
[/block]

metadata :

[block:parameters]
{
  "data": {
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description",
    "0-0": "requestId",
    "0-2": "Unique ID for the request",
    "1-0": "clientId",
    "1-2": "Partner Id",
    "2-0": "responseTime",
    "2-2": "Response Time",
    "3-0": "requestedURI",
    "3-2": "Requested URI",
    "4-0": "message",
    "4-2": "Error message",
    "0-1": "String",
    "1-1": "String",
    "3-1": "String",
    "4-1": "String",
    "2-1": "Long"
  },
  "cols": 3,
  "rows": 5
}
[/block]

payload :

[block:parameters]
{
  "data": {
    "h-0": "FieldName",
    "h-1": "DataType",
    "h-2": "Description",
    "0-0": "uploadId",
    "0-1": "String",
    "0-2": "Upload Id"
  },
  "cols": 3,
  "rows": 1
}
[/block]

[block:callout]
{
  "type": "info",
  "body": "Use above uploadId in <a href=\"/docs/get-result2\" data-sidebar=\"get-result2\" class=\"sidebar-link active link-color\"><span> Get feed result api</span></a> to get the products update status in chronological order.",
  "title": "Note"
}
[/block]

[block:html]
{
  "html": "<div class=\"threes-nav\"><a href=\"http://sandbox-sellerapi.snapdeal.com/apidocs/index.html#!/Inventory_Management/postInventoryUpdate\" target=\"_blank\" class=\"btn btn-default\"><div class=\"fa fa-compass fa-right\"></div>Test in the&nbsp;<strong>API Explorer</strong></a></div>\n"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API Settings",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "http://staging-apigateway.snapdeal.com/seller-api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Auth-Token",
        "in": "header",
        "x-default": ""
      },
      "sec1": {
        "type": "apiKey",
        "name": "clientId",
        "in": "header",
        "x-default": "SellerAPITesting"
      },
      "sec2": {
        "type": "apiKey",
        "name": "x-seller-authz-token",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": [],
      "sec2": []
    }
  ],
  "paths": {
    "/products/inventory": {
      "post": {
        "summary": "Post update Inventory for the Product",
        "description": "To change inventory levels of upto 1000 SUPCs",
        "operationId": "post-update-inventory-for-the-product",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"901c8cb3-0145-4d62-bd1e-f32d19860e9b\",\n    \"clientId\": \"partnerName\",\n    \"responseTime\": 368,\n    \"requestedURI\": \"POST /products/inventory\"\n  },\n  \"payload\": {\n    \"uploadId\": \"UUID0a82ecc5-9ed7-4267-9288-ca860d125d7f\"\n  }\n}\n}\n  "
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"55d1dc6c-eedc-4535-9f23-08598556a844\",\n    \"message\": \"Missing client identifier in headers\",\n    \"responseTime\": 0,\n    \"requestedURI\": \"POST /products/inventory\"\n  }\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string",
                              "example": "55d1dc6c-eedc-4535-9f23-08598556a844"
                            },
                            "clientId": {
                              "type": "string",
                              "example": "partnerName"
                            },
                            "message": {
                              "type": "string",
                              "example": "Invalid inventory information"
                            },
                            "responseTime": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "requestedURI": {
                              "type": "string",
                              "example": "POST /products/inventory"
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string",
                              "example": "55d1dc6c-eedc-4535-9f23-08598556a844"
                            },
                            "clientId": {
                              "type": "string",
                              "example": "partnerName"
                            },
                            "message": {
                              "type": "string",
                              "example": "Unable to identify the seller"
                            },
                            "responseTime": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "requestedURI": {
                              "type": "string",
                              "example": "POST /products/inventory"
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string",
                              "example": "55d1dc6c-eedc-4535-9f23-08598556a844"
                            },
                            "clientId": {
                              "type": "string",
                              "example": "partnerName"
                            },
                            "message": {
                              "type": "string",
                              "example": "Empty inventory updates request"
                            },
                            "responseTime": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "requestedURI": {
                              "type": "string",
                              "example": "POST /products/inventory"
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "requestId": {
                              "type": "string",
                              "example": "55d1dc6c-eedc-4535-9f23-08598556a844"
                            },
                            "message": {
                              "type": "string",
                              "example": "Missing client identifier in headers"
                            },
                            "responseTime": {
                              "type": "integer",
                              "example": 0,
                              "default": 0
                            },
                            "requestedURI": {
                              "type": "string",
                              "example": "POST /products/inventory"
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"metadata\": {\n    \"requestId\": \"55d1dc6c-eedc-4535-9f23-08598556a844\",\n    \"clientId\": \"partnerName\",\n    \"message\": \"Inventory updates can't be more than\",\n    \"responseTime\": 0,\n    \"requestedURI\": \"POST /products/inventory\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "string",
                          "example": "55d1dc6c-eedc-4535-9f23-08598556a844"
                        },
                        "clientId": {
                          "type": "string",
                          "example": "partnerName"
                        },
                        "message": {
                          "type": "string",
                          "example": "Inventory updates can't be more than"
                        },
                        "responseTime": {
                          "type": "integer",
                          "example": 0,
                          "default": 0
                        },
                        "requestedURI": {
                          "type": "string",
                          "example": "POST /products/inventory"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "630541309807941f67a93276:5b576c4ac6af890003de64c5"
}
```