Product Stock Sync
Synchronize product stock levels between WCS and WMS.
Direction WCS → WMS
HTTP Method POST
Path /product-stock-sync/sync
Request Body
Section titled “Request Body”{ "syncId": "SYNC-2024-001", "syncType": "FULL_SYNC", "syncTime": "2024-12-01T16:00:00Z", "products": [ { "productId": "ABC123", "stockOwner": "THG", "batchId": "BATCH-2024-11", "expiry": "2025-06-01", "availableQuantity": 485, "allocatedQuantity": 23, "reservedQuantity": 12, "lastUpdated": "2024-12-01T15:45:00Z" }, { "productId": "DEF456", "stockOwner": "THG", "availableQuantity": 127, "allocatedQuantity": 5, "reservedQuantity": 0, "lastUpdated": "2024-12-01T15:30:00Z" } ], "totalProducts": 2, "warehouse": "AutoStore_Main"}Responses
Section titled “Responses”200: Stock sync request accepted
400: Invalid request data
401: Authentication failed
Success Response (200)
Section titled “Success Response (200)”{ "message": "Product stock sync processed", "syncId": "SYNC-2024-001", "productsProcessed": 2, "status": "SUCCESS"}Error Response (400)
Section titled “Error Response (400)”{ "message": "Validation failed", "errors": [ "syncId is required", "products array cannot be empty" ]}