Update Product Supplier Inventory
PATCH/products/:lookupkey/:key/inventory/supplier
This endpoint allows updating supplier inventory data for a product based on a lookup key.
Available fields
Name | Required |
---|---|
quantity (integer) | no |
supplier (string) | no Default value is product supplier |
warehouseId (integer) | no Default value is 0 |
company (InventoryCompanyUsergroupResource) | no |
usergroup (InventoryCompanyUsergroupResource) | no |
location (string) | no Default value is empty |
costPrice (integer) | no Default value is product costprice |
nextDeliveryDate (date) | no |
notes (string) | no |
dateModified
is always updated with the current date and time.
Inventory will be updated if record is found, matching on: product supplierCode, supplier, warehouseId and location. Error is thrown if record can't be found.
Fields supplier, warehouseId and location can't be updated, used only to find the correct inventory record.
Request
Responses
- 200
- 404
Update Product Supplier Inventory - 200 / Update Product Supplier Inventory for a usergroup - 200
Response Headers
Connection
Content-Length
Date
Keep-Alive
Return-Format
Update Product Supplier Inventory - 404 / Update Product Supplier Inventory - 404
Response Headers
Alt-Svc
Via
alt-svc
content-length
date
return-format
server
x-request-id