Update Inventory by Id
Legacy Documentation
You are viewing legacy documentation. These APIs are maintained for partners with existing implementations. New projects should use v2.
View the current GraphQL API Reference → | View the current REST API Reference →
PATCH/inventory/id/:id
This endpoint enables updating inventory record by it's unique id.
Available update fields
| Name | Required |
|---|---|
quantity (integer) | no |
costPrice (integer) | no |
nextDeliveryDate (date) | no |
notes (string) | no |
dateModified is always updated with the current date and time.
warehouseId and location cannot be updated.
If product stock is moved to a different warehouse or location, old inventory record should be updated with 0 quantity, then create a new record with the new warehouseId and/or location
Request
Responses
- 200
- 404
Update Inventory by Id - 200
Response Headers
Connection
Content-Length
Date
Keep-Alive
Return-Format
Update Inventory by Id - 404
Response Headers
Alt-Svc
Via
alt-svc
content-length
date
return-format
server
x-request-id