Overview
This endpoint allows you to adjust the stock level of a product. Use positive values to increase stock (e.g., receiving inventory) and negative values to decrease stock (e.g., sales or shrinkage).Path Parameters
The product’s CzUid
Request Body
The stock adjustment amount. Positive values increase stock, negative values decrease stock.
Optional reason for the stock adjustment (e.g., “Inventory recount”, “Damaged goods”, “New shipment”)
Optional reference number (e.g., purchase order number, invoice number)
Response
Indicates if the request was successful
Error Responses
400 Bad Request
- Invalid adjustment value (not a number)
- Stock would go negative (if negative stock not allowed)
404 Not Found
- Product not found
422 Unprocessable Entity
- Product doesn’t track stock
- Adjustment would exceed maximum stock level
Notes
- Stock adjustments are logged for audit purposes
- If your product doesn’t track stock, this endpoint will return an error
- Some accounts may have restrictions on negative stock levels
- Stock adjustments may trigger notifications if stock falls below minimum levels
- Consider using webhooks to track stock changes in real-time