> For the complete documentation index, see [llms.txt](https://tech.x2bee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tech.x2bee.com/api/api-en/store-front-api-reference/goods-api/product-detail.md).

# Product Detail

## Increase/Decrease Item Inventory

> \## Function Description\
> \* This is the API for increasing/decreasing inventory by item.\
> \---\
> \## Detailed Description\
> \* Returns an error if the deducted item quantity exceeds the inventory quantity (negative inventory).\
> \* If the increased item quantity exceeds the safety stock quantity, changes the item sales status code to On Sale.\
> \---\
> \## Notes\
> \* Processes only items with inventory management status Y.\
> \---\
> \## Code Reference\
> \* \`\`\` Inventory Increase/Decrease Code \`\`\` : plus, minus<br>

````json
{"openapi":"3.1.0","info":{"title":"X2BEE Goods API","version":"v1"},"servers":[{"url":"https://api-goods.x2bee.com/api/goods/","description":"prd"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/order/stockUpdate":{"put":{"tags":["Product Detail"],"summary":"Increase/Decrease Item Inventory","description":"## Function Description\n* This is the API for increasing/decreasing inventory by item.\n---\n## Detailed Description\n* Returns an error if the deducted item quantity exceeds the inventory quantity (negative inventory).\n* If the increased item quantity exceeds the safety stock quantity, changes the item sales status code to On Sale.\n---\n## Notes\n* Processes only items with inventory management status Y.\n---\n## Code Reference\n* ``` Inventory Increase/Decrease Code ``` : plus, minus\n","operationId":"setStockUpdate","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":false}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StockUpdateRequest"}}}},"required":true},"responses":{"200":{"description":"Item Inventory Increase/Decrease Success","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ResponseCommonResponseModelObject"}}}},"900":{"description":"Item Inventory Increase/Decrease Failure","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorCode"}}}}}}}}}
````
