Creates a new inventory batch for the specified SKU. Merchants can use this to create batches before announcing restocking shipments.
Security
BearerAuth
- Mock serverhttps://hive-merchant-api.redocly.app/_mock/merchant-api-v2/mapi_v2_oas31/skus/{sku_id}/inventory_batches
- Production APIhttps://app.hive.app/merchant_api/v2/skus/{sku_id}/inventory_batches
- Staging APIhttps://staging.app.hive.app/merchant_api/v2/skus/{sku_id}/inventory_batches
curl -i -X POST \
'https://hive-merchant-api.redocly.app/_mock/merchant-api-v2/mapi_v2_oas31/skus/{sku_id}/inventory_batches' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"lot_number": "LOT-2024-001",
"production_date": "2024-01-15",
"expiry_date": "2025-12-31"
}'Inventory batch created successfully
Response
{ "blocked": false, "expiry_date": "2024-12-31", "id": 1, "lot_number": "LOT-001", "name": "Batch-001", "production_date": "2024-01-15", "status": "active", "tracking_code": "BATCH-TRACK-001" }