When nothing could be saved the answer is HTTP 422, "The product could not be saved".
A new product beyond your plan's product limit is refused with HTTP 402. Updates to existing products always go through.
Set stock and prices in bulk: /stock-update
No switch is needed.
Field
Required
Meaning
products_info
Yes
A list, one entry per product
products_info[].ID
Yes
A string. Matched to the product's external id first, then to its shop id
products_info[].qty
No
New stock quantity. 0 is valid; the product goes out of stock when its total reaches 0
products_info[].price
No
New selling price
products_info[].package_price
No
New "before discount" price
products_info[].package_name
No
New product name
products_info[].branch_id
No
The reference of one of your locations, up to 100 characters
A price or package_price of 0 is ignored. Leave a key out to keep its value.
Shops with more than one location: branch_id must match a location's ERP / webhook reference. See Location integrations. An unknown or switched-off one fails that row.
The answer lists updated_products, total_updated and errors:
Result
Status
Message
At least one product updated
200
"Products updated successfully"
Every row failed
400
"All product updates failed"
A product is not found
row error
"Product with ID '…' not found in shop"
One bad row does not stop the others.
Deduct stock for a Zoho sales order: /stock-update-by-order
Field
Required
Meaning
order_id
Yes
A Zoho Inventory sales order id, as a string
Stock is reduced only for a sales order whose sub-status is confirmed, and once per order.