Stock Lots V2

Bulk update stock lots

Bulk update stock lots

Performs bulk operations on multiple stock lots in a single transaction. Validates ownership for all lots before applying any updates. Returns summary of successful and failed operations.

Requirements:

  • 22.1: POST /api/v2/stock-lots/bulk-update endpoint
  • 22.2: Accept array of stock_lot_id values with updates
  • 22.3: Support bulk quantity updates
  • 22.4: Support bulk listing/unlisting operations
  • 22.5: Support bulk location transfers
  • 22.6: Use database transaction for atomicity
  • 22.7: Return summary of successful and failed operations
  • 22.8: Validate ownership for all stock lots in batch
  • 22.9: Log all bulk operations to audit trail
  • 22.10: Trigger quantity_available recalculation for affected listings
post/stock-lots/bulk-update

Request

  • Base URL: /api/v2 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v2/stock-lots/bulk-update
  • Auth: loggedin (a scheme the document does not define)

Request body

Response

Bulk update results with success/failure counts

success_countnumber double required

Number of successful updates

failure_countnumber double required

Number of failed updates

Changes

No recorded changes to this operation across all 50 revisions of this API.