Skip to content

Product Stock Sync

Synchronize product stock levels between WCS and WMS.

Direction WCS → WMS

HTTP Method POST

Path /product-stock-sync/sync

{
"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"
}

200: Stock sync request accepted

400: Invalid request data

401: Authentication failed

{
"message": "Product stock sync processed",
"syncId": "SYNC-2024-001",
"productsProcessed": 2,
"status": "SUCCESS"
}
{
"message": "Validation failed",
"errors": [
"syncId is required",
"products array cannot be empty"
]
}